PDA

View Full Version : [AJAX] Websites who have referred today (in the last 24 hours)


Shawn
01-30-2007, 02:40 AM
Original Creator: RedTyger

Modified a few lines of fixes

Description:
Lists all websites who have sent you visitors in the last day.

Each time a person arrives at your forum by clicking on a link from another website, the website URL they arrived from is listed on the index page of your forum in the same manner as members who are logged in. Each entry is shortened for display purposes but clicking on the link sends you to the exact page they arrived from, so if the referring page was a search engine you will visit the page and search terms they used to bring up your link. The list is cleared at midnight every day.

Options: (AdminCP > vBulletin Options > Websites who have referred today)
Turn it on or off
Mod goes on, mod goes off. Mod goes on, mod goes off.

Trim URL variables?
Choose Yes to remove variables from the end of URLs to shrink listing repeats. (i.e. Set to No, every different search from Google will add a new www.google.com (http://vbcoderz.com/redirector.php?url=%68%74%74%70%3a%2f%2f%77%77%77% 2e%67%6f%6f%67%6c%65%2e%63%6f%6d) referral to the listings. Set to yes, all will be compressed into one listing but the search terms will be lost.)

Blockword List:
Enter character strings to be prevented from being added to the URL database, separated by commas (,). You may use any part of domains (www.xxx (http://vbcoderz.com/redirector.php?url=%68%74%74%70%3a%2f%2f%77%77%77% 2e%78%78%78) or xxx or www.xxx.com (http://vbcoderz.com/redirector.php?url=%68%74%74%70%3a%2f%2f%77%77%77% 2e%78%78%78.com) or .com).

Installation Instructions:
1. Go to AdminCP > Plugins & Products > Manage Products > Add/Import Product.
2. Upload the websites_who_have_referred_today.xml file.
3. Upload the wwhrt.php file to the includes/cron folder of your forum directory.
4. Open AdminCP > Styles & Templates > (Your Theme) Edit Templates > Forumhome templates > FORUMHOME.
5. FIND:
<!-- end logged-in users -->
</if>BELOW, ADD:
<!-- websites who have referred today -->
<thead>
<tr>
<td class="thead" colspan="2"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('referrers_today')"><img id="collapseimg_referrers_today" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_referrers_today].gif" alt="" border="0" /></a>
$vbphrase[referrers_today]: $url_count <if condition="$bbuserinfo['usergroupid'] == '6'"> (<a href="index.php?$session[sessionurl]do=kill_all_referrers">$vbphrase[referrers_kill_all]</a>)</if>
</td>
</tr>
</thead>
<tbody id="collapseobj_referrers_today" style="$vbcollapse[collapseobj_referrers_today]">
<tr>
<td class="alt2">
<img src="$stylevar[imgdir_misc]/stats.gif" alt="$vbphrase[referrers_today]" border="0" />
</td>
<td class="alt1 smallfont">
$referrers
</td>
</tr>
</tbody>
<!-- end websites who have referred today -->
</if>And save the template. Done!

Queries:
This modification adds one very small query for every arrival from an external link. One additional larger query is used on the index page to construct the list.

wenchupover
01-30-2007, 03:33 AM
This will come in very handy indeed. Thank you for posting.

Question though as I am still learning. What type and for what reason would you use the blockword list.

Also, I have just installed this. I love it. This may seem a silly question but I need to know. For anyone that knows this mod, when you click on say.....google.com as a referrer and it takes you to the page where it shows the phrase/keywords that were typed in. The position that is showing that you are indexed in for that particular phrase/keywords, say first or second; Is that the actual position you are indexed in, or is one only appearing to be at the top of the list for ease of this hack in showing keywords. Hope that makes sense lol

n!tro
02-03-2007, 12:25 PM
Thank you :)

This is really nice

KinGo
02-03-2007, 12:30 PM
very nice site hack
thanks i was looking for something like this.
thanks again

Roxy
07-02-2007, 04:01 AM
Is there any way I can make that viewable only by admins?

Shawn
07-02-2007, 04:55 AM
Is there any way I can make that viewable only by admins?
I use the <if condition usergroup code

JPL
07-27-2007, 05:51 AM
great mod have test it and works fine

Roxy
07-27-2007, 07:09 AM
Any chance you could give me more help with the if usergroup code?

Shawn
10-30-2007, 06:40 PM
Any chance you could give me more help with the if usergroup code?

<if condition="$bbuserinfo[usergroupid] == XX">
<br />$FNB_HTML<br /><else /></if>

Replace XX with the usergroup you would like it to display too

joeeleven
06-09-2008, 02:25 AM
hey shawn, are u upgrading this mod to work on 3.7?

syrcafe
06-11-2008, 03:28 AM
thnks man

but why i can not download ?

lucyfer
06-28-2008, 04:54 PM
is this works on vbulletin 3.7.0 beta 4?