The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[AJAX] Websites who have referred today (in the last 24 hours) Details »» | |||||||||||||||||||||||||||
[AJAX] Websites who have referred today (in the last 24 hours)
Developer Last Online: Nov 2022
Websites who have referred today (in the last 24 hours)
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. Screenshots at the foot of this post. 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. Enable display for UsergroupIDs Enter the IDs of the usergroups you wish to be able to view referring links, separated by commas (,). (i.e 1,2,3). Leave blank to display referring links to everyone. Enable referrer page title? (https://vborg.vbsupport.ru/attachmen...0&d=1170326535) Choose Yes to store the page title of the referrer, which will be used as the link text. If this is not enabled or not available, a trimmed version of the URL will be used. This may incur a slight penalty on page-load time when a visitor first arrives from a referrer or possibly be problematic where referring pages time out or redirect. 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). Highlight arrivals from a referrid link? Choose Yes to highlight in italics referrers using a forum member's referral link. For this to work, you must have "Trim URL variables" to No. Highlight domain list Enter domains to be highlighted using the markup belowe, separated by commas (,). You must use the format domain.ext, exclude the http://(www.) part. (i.e. redtyger.co.uk) Opening tag for highlighted domain markup Enter HTML and/or text that will be placed before the domain name. Closing tag for highlighted domain markup Enter HTML and/or text that will be placed after the domain name. Additional Features: AJAX inline moderation (https://vborg.vbsupport.ru/attachmen...2&d=1170095586) Click on the X next to any domain to remove it from the database. No page loads, no waiting. Scheduled Task (Cron) All domains are cleared at midnight daily. You can edit the Scheduled task to have the database cleared when and as often as you like. All scheduled clearances are logged and phrased. Like any other vBulletin Scheduled task you must have activity or the scheduled task will not run. Manual database clearance As well as removing any individual domain, you can clear the referral database at any time using a link from the index page. 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. 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: Code:
<!-- end logged-in users --> </if> BELOW, ADD: Code:
<if condition="$vboptions[referrers_onoff] AND is_member_of($bbuserinfo, $referrers_usergroupids) OR !$vboptions[referrers_usergroupids]"> <!-- 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="$url_count >= $vboptions[referrers_last_x_referrers] AND $vboptions[referrers_last_x_referrers]"><phrase 1="$vboptions[referrers_last_x_referrers]"> ($vbphrase[referrers_last_x_count])</phrase></if> <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! Donations If you have a pressing wish to donate money to me (and of course, you do) to say thank you and to possibly encourage more future work then you can do via the link below. Also, you will go to heaven. http://redtyger.co.uk/donations.php Don't panic! The donations link is only hosted on my website so it can be encrypted and not open my email address to spammers. Changelog v1.1 Added AJAX inline moderation (Yay!) and ability to clear the list via a link on the index page without waiting from the Scheduled Task to do it. Admins only may do either task. v1.1 Changed the screenshot to show the inline deletion links. v1.1 Fixed incorrect cron timing (Scheduled Task) and phrased it. v1.1 Fixed issue with domains that sometimes had www. and sometimes did not. This also now shortens any URL which I was meaning to do anyway, so www.google.com will appear in the list as google.com. Smartens things up and gives a bit more room too. v1.1 Changed URL encoding to avoid problems with domains that contained hypens. v1.1 Fixed blockwords not working. They are still only checked when a domain is first added, but inline moderation means you can now take care of it yourself afterwards if necessary.. v1.1 Minor optimisations. v1.5 Added Archive referral recording. v1.5 Added Usergroup display controls. v1.5 Added option to record and use referring page title as link text instead of trimmed domain. (https://vborg.vbsupport.ru/attachmen...0&d=1170326535) v1.5 Added option to highlight referrals that have arrived from a forum member's referral link. v1.5 Added option to highlight with custom markup any domains of your choice. v1.5 Fixed workaround for apparent PHP bug where a letter would occasionally be removed from the beginning of URLs v1.5 Fixed issue with multiple blockwords, I swear to God it's fixed this time. Probably. v1.5 Fixed issue with AJAX inline moderation only deleting the last URL in the list. v1.5 Changed minor optimisations. v1.51 Fixed bug where multiple versions of the same forum URL were used for access. v1.6 Added option to limit number of recent URLs displayed v1.6 Added option to trim referrer additions to the domain name only to further limit repeat listings v1.6 Added URL sorting, referrers are now listed in reverse order (last addition first) v1.6 Fixed catch for https and ftp URLS. v1.6 Fixed bug where a w would be trimmed off the beginning of URLS. v1.6 Fixed blockwords not working (Oh please, oh please, oh please) v1.6 Minor optimisations v1.61 Added compatiblity with vBulletin 3.5.x v1.61 Probably fix to possible referrer text exploit. v1.62 Added securing of HTML tags as a security measure. Show Your Support
|
Comments |
#92
|
||||
|
||||
Has anyone been able to successfully get this working on 3.5?
I got everything working, was just too lazy to "wait for referrers" and uninstalled it after seeing a post in this thread about it being incompatible with 3.5. I know there is a way to make it work, any ideas? Is it just the cron that wont work? EDIT: Disregard, reinstalled and working like a champ on 3.5. If the cron dont work, ill just fdo it manually. |
#93
|
|||
|
|||
I am getting a huge string of listings from our site...looks like this:
https: (2), https: (3), https:, https:, https:, google.se, https: (3), https: (2), https: (8), https:, https:, https:, https: (2), https: the first link for instance looks like this: http://https//www.mydomain.com/newre...wreply&p=52255 we have both http:// and https:// users, and there are both http:// and https:// links throughout the forums that folks are clicking on, some users will logon as an http:// and follow https:// links for instance is it possible that I set something wrong, or is there a way for it to ignore referrals coming from our own site? thanks in advance |
#94
|
|||
|
|||
None will ever show up Any ideas why? Or what I might have to change in any of the files, say put my forum's link???
|
#95
|
||||
|
||||
Quote:
Ah. That would be my fault, it never occurred to me that anyone would be using https:// in their URL. I'll have to fix that in an update. Quote:
It should work fine, I just suspect that the timings wouldn't be set up and you'd have to do it yourself via Scheduled Tasks. Um. No, I'm afraid I don't know. There's nothing you have to do to get them showing up. |
#96
|
|||
|
|||
Quote:
Quote:
This is the result: Quote:
|
#97
|
|||
|
|||
Yeah the blocklist doesn't seem to work at all, and I would really like to be able to limit the amount of referrers, I had about 800 yesterday lol...it was a bit long!
|
#98
|
|||
|
|||
Quote:
Excellent thank you! I am also having another minor problem, getting these mysql errors in my email -> Quote:
thank you for your time |
#99
|
|||
|
|||
I am up to 1400 references, it seems to be collecting references from when I first installed the plugin
|
#100
|
||||
|
||||
is there a way to unblock the letters t and l ??
|
#101
|
|||
|
|||
I just gave it a try. I set the viewable to id:1 and logged out but it still shows for all guest users.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|