![]() |
Just made a minor modification to the query on this plugin. I wanted to see referrals as they happened (newest first), so I changed the ordering:
PHP Code:
|
I don't get it, which .php file do I edit to add it?
|
Quote:
|
Thanks for the feature!
I was looking over the code and have a few comments and an offer: 1) I noticed a define for 'THIS_SCRIPT' and yet I didn't see it referenced in the code. It appears that the var was put in there to make it easier to change the name of the page -- which is great, but since it isn't used it didn't work. I updated the script to use the DEFINE (I'm sure it was just an oversite). So could that be incorporated into the next release? 2) Related to #1 above, I thought it would make sense to add another phrase in which would be something like 'referral_links_linkTitle' or 'referral_links_pagename' and then the DEFINE could get it's value from that phrase so no code changes would be necessary to rename the file. All one would have to do is rename the referrals.php file and then update the phrase... 3) While I was in the code, I noticed a few potential changes that I believe to be optimizations: a) default $insert to true b) change the first if statement so it will set $insert to false when appropriate (these first two changes are more about clarity than anything) c) check $insert as first part of all the rest of the if statements (for the other options loops) to prevent those checks from running if $insert is already false d) use the break; command to exit loops as soon as $insert = false 4) My host has various aliases (as many do) and therefore I need the system to not record referrals from those various aliases in addition to the standard server name. I have already coded all of these updates into a new xml and referrals.php file if you (or anyone else) would like to make these changes. Thanks again for the feature -- great work!! |
Quote:
Would love to use this hack.. Is there a fix? |
it seems u must set TablePrefix manually...
|
Hmn. Looks like TABLE_PREFIX is in the script before the table name in every query... Looks like it should work to me...odd.
|
Quote:
|
Installed aok, but all i get is 10 referalls, all are the same domain name the forum is hosted on?
|
installed
|
Yeah, I've got like 39 pages of referrals, but most are all from within my own forums.
|
Clicked Install.
Is there any way to get this to show like maybe 3 columns of 5 referrals, instead of just one column? |
<font color="SeaGreen">* christianb clicks install</font>
|
My update allows you to specify additional hostnames/IPs to ignore. The problem some of you are getting is likely caused because the script is only checking against the field $_SERVER['SERVER_NAME']...which may not be sufficient if your host has several names.
I would post my updates but I don't want to step on any toes...if payamix wants to incorporate my updates this plug-in, great, otherwise I'm not sure what to do about it. |
It's definatly a great hack, I blocked my own domain name, so it doesn't add that to the list now, I also cleaned out the database table of all UOforums.com entries and it no longer shows in the list
But, 'im getting multiple Google.com entries now Is there anyway this can be fine tuned to only show the referring domain ONCE? |
Quote:
|
Any idea why even after clicking links on search engines and several spiders on the site it still says No referral Links to your Site.
|
I have vbulletin.org listed 5 times
WTF |
Referrals are tracked on a per-link basis, not a per-host/domain basis. If you look at your 5 vbulletin.org links they should have different URLs... This is a feature not a bug, although it would be nice if the display was categorized by host number of referrals for a domain with the specific links viewable in an explodable list. Maybe I'll add that to my update.
|
Yea joefitz I'd be happy to use your update if you had that
|
Nice !!
*clicks install* |
installed
|
How do I block my site? It keeps showing GSNForce.com over and over again and I want to block it from listing that domain.
|
i see very very my domain name after installed this hack :). How to fix that ?
|
Hi peeps
I have a domain linked and i dont want it shown I would prefer it eiter totally blocked or hidden... I have added it to the ignore list but it still shows? Please advise? |
Quote:
|
original code is
Code:
CREATE TABLE IF NOT EXISTS `" . TABLE_PREFIX . "referrallinks` ( Code:
CREATE TABLE IF NOT EXISTS `"referrallinks` ( |
Any ideas on this question please peeps :)
Quote:
|
Quote:
|
yea installed it and had same table issue so uninstalled and forum is working fine...
|
How do I remove all referrals once in a while?
|
can I only allow admins to see this?
|
Quote:
This means that unless someone types referrals.php after your forum address they won't see the referrals and the chances of that are slim. You could also rename referrals.php to something else if you want to make sure someone doesn't find it at all or you could add referalls.php in the admincp area to make it password protected. |
Quote:
thanks for the tip, I may try it out :) |
Is it possible to make it output like this please?
|
some one use fake click with fake site referal, can you help me create a file for check sure that site was referal to us?
|
Well, I really like this, but the vast majority of my links come from my main site. Is there anyway to add or track the referrals from my main site, not just the forum folder? THAT would be very helpful for me.
|
nice just installed :)
|
Works nicely in 3.6 :)
|
Great hack... Thankyou.. Clicks Install
|
All times are GMT. The time now is 04:10 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|