tips and tricks for movable type

top referrers
March 24, 2002

I need to add the popup for my Top Referrers list.

Here's the code, courtesy of Kiffin from this Community Forum topic.

Javascript function:

<script language="javascript" type="text/javascript">
<!--
function OpenTopReferers()
{
window.open('/cgi/topreferer/displayreferers.cgi',
'topreferers',
'width=600,height=500,scrollbars=yes,resizable=yes,status=no');
}
// -->
</script>

Link to popup:

<a href="javascript:void(0)" onclick="OpenTopReferers()">top referers</a><img src="/cgi/topreferer/referers.cgi?<!--#echo var="HTTP_REFERER"-->" width=1 height=1 border=0><br />

Note: your server must support Server Side Includes for this to work! And of course, you must be using the Top Referers script.

Update 08.25.02: Done!

I modified the popup code to mimic that of MT's OpenComments function (to make it more friendly to those not using Javascript when browsing):

Javascript function:

function OpenTopReferers (c) {
window.open(c,
'topreferers',
'width=575,height=480,scrollbars=yes,resizable=yes,status=no');
}

Link to popup:

<a href="/cgi/topreferer/displayreferers.cgi" onclick="OpenTopReferers(this.href); return false">top 100 referrals</a><br />

I put this code elsewhere on my main page (because I use template modules for my sidebar stuff):

<img src="/cgi/topreferer/referers.cgi?<!--#echo var="HTTP_REFERER"-->" width=1 height=1 border=0>

I also just used full paths everywhere; for some reason, that seems to work better for my brain.

Comments

http://solutionscripts.com/

is not well.

The script linked above is not working there (confidence-builder, non?) and cannot be downloaded either

Since it's given on the site as" is free to download and use" on the site could you possibly post it here?

many thanks

Plux

by Plux | 01.07.03 09:10 AM

I just tested the link I posted, and downloaded the script again with no problems. You might want to try again.

by girlie | 01.09.03 07:20 PM

I was looking at your top 100 referrers list and was wondering how you made it say "hidden-referrer". I just have a blank space on mine. By the way, your site is super helpful for a beginner like me! Thanks again!

by beej | 09.19.03 02:26 PM

Hmmm. I don't think I'm doing anything to make it show that - I think the referrer has blocked it themself?

by girlie | 09.20.03 11:11 AM

hmm, ok thanks. maybe it's blank because there is no referrer...ha. got it. thanks again!

by beej | 09.20.03 11:24 AM

I want to thank you for the referer scripts above. The Top Referer works great. However, I would like to know if there is a way t make my "Top 100 Referral" pop-up look just like my comments pop-up (i.e., make it look like the rest of my weblog). Thanks for your help in advance.

by Jeremy Kissel | 10.16.03 01:18 PM

Hey Girlie! Thank you so much for this Lil'bit of help in setting up a top refers,

However is there a way to make a CCS sheet from blog/MT/ also Be used with top refers pop up Window that you know off?

I'd love it to blend with that look I currently have for my MT domain.

by Vix | 03.02.04 06:55 PM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack: 1
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/9)

» Faithjean dot com's photolog is up!
Excerpt: Thanks to Gabriel for helping me:-) 2 do list: *The comment on this page doesn't work right now! Hopefully I'll figure it out soon...:-) Scripts: *Add: Most commented - entries & Most commented - visitors script *Last 50 referrers(pop up)...
Weblog: .::faithjean.com::.
Tracked: 01.06.04 05:30 PM