Facebook Twitter Pinterest Share

vBulletin 3.X Add-ons & Template Modifications All the latest vBulletin 3.X Add-ons & Template Modifications.


New Thread  Post Reply
pmt's Avatar
pmt : 50+
pmt will become famous soon enough
offline Joined: Sep 2007 Posts: 63 Thanked: 8
  #1  
Thread Starter Unread 01-10-08
[AJAX] Websites who have referred today (in the last 24 hours)

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 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 or xxx or www.xxx.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.
Attached Files Click the thanks button to view this attachment.

Last edited by pmt; 01-11-08 at 05:39 PM.
Quote
The Following User Says Thank You to pmt For This Useful Post:
welcome's Avatar
welcome : 50+
welcome is on a distinguished road
offline Joined: Jan 2008 Posts: 56 Thanked: 1
  #2  
Unread 01-10-08
this work for 3.6.8?
PitBullGermany1978's Avatar
PitBullGermany1978 : Newbie +
PitBullGermany1978 is on a distinguished road
offline Joined: Nov 2007 Location: Karlsruhe Posts: 16 Thanked: 4
  #3  
Unread 01-10-08
Originally Posted by pmt View Post
Hover to view full quote
Original Creator: RedTyger

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.
Where are the files.????
Danger's Avatar
Danger : Member
Danger is on a distinguished road
offline Joined: Oct 2007 Posts: 30 Thanked: 4
  #4  
Unread 01-11-08
The files are below.. Enjoy!
Attached Files Click the thanks button to view this attachment.
Notam's Avatar
Notam : 50+
Notam is on a distinguished road
offline Joined: Oct 2007 Posts: 51 Thanked: 2
  #5  
Unread 01-11-08
Worked Perfectly.Thnx
Notam's Avatar
Notam : 50+
Notam is on a distinguished road
offline Joined: Oct 2007 Posts: 51 Thanked: 2
  #6  
Unread 01-18-08
Can we have the updated Version

http://www.vbulletin.org/forum/showthread.php?t=137792
baby_blue_6_4's Avatar
baby_blue_6_4 : Newbie
baby_blue_6_4 is on a distinguished road
offline Joined: Jan 2008 Posts: 4 Thanked: 1
  #7  
Unread 01-19-08
here's the update
Attached Files Click the thanks button to view this attachment.
welcome's Avatar
welcome : 50+
welcome is on a distinguished road
offline Joined: Jan 2008 Posts: 56 Thanked: 1
  #8  
Unread 03-15-08
it seems to lose the www. and first letter in the refferal domain????

any reasons why?
Hanneman_213's Avatar
Hanneman_213 : Newbie +
Hanneman_213 is on a distinguished road
offline Joined: Dec 2007 Location: Chile Posts: 11 Thanked: 0
  #9  
Unread 03-16-08
If I have vBa installed... it works when a guest arrive to the homepage of the vBa?
welcome's Avatar
welcome : 50+
welcome is on a distinguished road
offline Joined: Jan 2008 Posts: 56 Thanked: 1
  #10  
Unread 03-16-08
yeah. doesn't work on reg vb
New Thread  Post Reply

Thread Tools

Bookmarks
  • Submit Thread to Facebook
  • Submit Thread to Twitter
  • Submit Thread to Pinterest
  • Submit Thread to LinkedIn
  • Submit Thread to Reddit
Tags
ajax, today, hours, websites, referred, [ajax]
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Powered by GYSN Underground 2021