Referal fix

a complete banner management system, any number of banners can be added
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Referal fix

Postby cmisker on Mon 22. Dec, 2003 11:53

Hi!

Because you seem to use the java**script window.location to redirect, it does not always get your referal's right. And since this is a very important part for most banner systems (for example, I always got errors while using TradeDoubler.com's banners), I would suggest changing the code in subSilver/redirect.tpl to this:

Code: Select all
<HEAD><META http-equiv="refresh" content="0;url={REDIRECT_URL}"></HEAD>
<BODY><CENTER>{MESSAGE}</CENTER></BODY>
(Just delete the part in the BODY tag).

I now no longer have any referal errors. And it was kinda... having two things to do the same (the meta-refresh tag and the java**script). Now you have one thing which should always work. And if it doesn't, the people always have a link to click on too! :)

BTW java**script window.document does not really ads a referrer... you can also not press, for example, the back button due to this request. :)

This should fix a lot of errors related not getting the money but people are clicking on the banners! :)
cmisker
Poster
Poster
 
Posts: 125
Joined: Mon 11. Nov, 2002 20:15

Postby cmisker on Thu 15. Jan, 2004 10:06

The above solution is also not right.

This is the right way to have a real referral:

In banner.php, replace:
Code: Select all
$lang['No_redirect_error'] = 'If you page does not show shortly, please click <b><a href="%s">Here<a></b> to go to the requested URL';

to
Code: Select all
$lang['No_redirect_error'] = 'If you page does not show shortly, please click <b><a href="%s" id="jumplink" name="jumplink">Here<a></b> to go to the requested URL';
(So add the id= and name= part)

Then, make this your new redirect.tpl:
Code: Select all
<BODY><CENTER>{MESSAGE}</CENTER>
<SCRIPT LANGUAGE="java**script">
setTimeout("document.all['jumplink'].click();",100);
</SCRIPT>
</BODY>


Niels, I really urge you to update your banner mod with this. A banner without having the proper referral just doesn't work very well... you need to have the proper referral set. And you do it like this. :)
cmisker
Poster
Poster
 
Posts: 125
Joined: Mon 11. Nov, 2002 20:15

Postby Niels on Mon 19. Jan, 2004 14:06

First of all, I'm happy you look into this - thanks.

if the redirect does not work prober, we need to update the code, how-ever I would like to keep the "double" code (both java**script and META) to redirect.

the main reasoon to this, is that it will work with more browsers, not so sensitive to the clients browser security settings.

I have tryed, this.
Code: Select all
<HEAD><META http-equiv="refresh" content="0;url={REDIRECT_URL}"></HEAD>
<BODY><CENTER>{MESSAGE}</CENTER>
<SCRIPT LANGUAGE="java**script">
setTimeout("document.all['jumplink'].click();",100);
</SCRIPT>
</BODY>


but the "back" button goes back to the redirect page, witch is not desireble - if a client uses this to go back - the redirect could posible be counted twice (cookies should prevent it in most cases)...
so it would be better to awoid that the back button can be used - like the pressent version.

I will try test this agains trade doubler
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby cmisker on Tue 20. Jan, 2004 14:49

Mmm... yes, you're right about it having the click-back function... and that this is not desirable.

Only, I think it's the only way to get a proper referrer. I am using Trade Doubler also... and if I use your standard mod... with the META or java**script forwarding, it won't catch the referrer. A referrer has to go with a click (which makes sense... because else you could let people "automatically" click on your links, which is not allowed).

That's why you have to have be able to go back.

I checked into this with java**script guru's and there is no other way...
cmisker
Poster
Poster
 
Posts: 125
Joined: Mon 11. Nov, 2002 20:15

Postby Niels on Wed 21. Jan, 2004 01:34

I'm currently testing the code showen above - witch have both the meta refresh, and your jump_id java**script.

currently trade doubler "error report utillity" does not report any problems, how-ever I have yet only had 5 UV and none "leads" after I did change the code.

I will let this code run for a while and see how it behaives, if this does not work.

if other users have same problem, they can while waiting for the prober solution. either use your fix, or alternativly make the banner as a "custom code", witch let then inser exactly the code offered by the banner provider.
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Fri 23. Jan, 2004 00:18

I have now run with the combination of your code and meta tags, and it seam like traddoubler can't cope that.

I will try run with the java**script soly, to se how your version works - I guess I will update the mod with this verison soon
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby cmisker on Fri 23. Jan, 2004 14:30

:) Yes, it will work... what you need to do, is increase the meta tag refresh time to like.. 2 seconds.

Because, after the page is loaded.. 100 ms later, the java**script will click on the link. But... also, after the page is loaded.. 0 seconds later, the meta-refresh tag will do it's work and forward.

java**script click = forwarding with a proper referrer.
Meta forward = forwarding without a referrer...

So, you'd have to change the number the meta tag uses to like, 2 seconds.

But then.. if the java**script doesn't work on the person's computer... it'd do a meta-forward.. and then you wouldn't have a referrer, so it'd show up as an error.. and you can only fix this by having the user himself click on the link. :)

So, in my eyes, the only solution is to use the java**script without the meta. :)
cmisker
Poster
Poster
 
Posts: 125
Joined: Mon 11. Nov, 2002 20:15

Postby Niels on Fri 23. Jan, 2004 21:55

sadly I have to agree :(
the best is to get it to work as desired, even though it is not "fully compatible" with all browsers / security settings
I will post this a a update to this MOD
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Next

Return to Complete banner [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 2 guests

cron