| |||||||
| Register | Projects | FAQ | Members List | Mark Forums Read |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
I have tried several ways to hide affiliate links in indexu but i cant seem to get it to work how i want? I setup a custom field for affiliate_url But if i use this in details and rows, whenever there is not an affiliate link, the link don't work? It is like a need an IF statement or something. Here is what i tried: <a href="<%$url%>" onclick="location.href='<%$affiliate_url%>';return false;">Visit</a> this works great if all links where affiliate links. Wont work for non-affiliate links. Any help would be much appreciated. Last edited by cheetah; 07-15-2007 at 04:13 PM. |
| |||
|
Yes, i would like to show the fake url instead of the affiliate url but the problem is not all the links are affiliate links. There has to be a way to do this? So i need like: IF affiliate_url the do this special action Else Do regular link action Not very good at php so if you can help i would appreciate it. There are three place to change the links detail rows and link title |
| |||
|
the answer was posted above... jsut change "url" to "title" in the link text... or do you want it to be hidden further? if you look at the svn version (nicecoder.com/svn) look at hte entry called "add go.php url masking script" and follow the code changes. Then you can change the "url" to read : go.php?id=12 and it will hide the url
__________________ Some interesting INDEXU bits :http://www.indexu.co.uk Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent ) |
| |||
|
Yes that is exactly waht i was looking for, it is like hotscript and others. One problem, i can't login to see the code? And is this the entry you were refering to? [496] 03/09/07 20:57:49 EST Add url masking script go.php?id=<%$link_id%> Also is svn future and past updates? Thanks for the help. |
| |||
|
OK, i got logged in but there is no code to add under http://nicecoder.com/svn/index.php?act=changeset&id=496 What exactly was the change to use link_id instead of url's Thanks |
| |||
|
its a file thats been added, not code change, just download the nightly build file, and upload go.php and your done
__________________ Some interesting INDEXU bits :http://www.indexu.co.uk Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent ) |
| |||
|
The file looks the same as the one i already had, and after uploading anyway nothing has changed, still points to the url instead of link_id?? I also updated all links and still no change. Any help would be appreciated. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating Affiliate Links | angie | v5.x | 2 | 09-15-2006 01:58 PM |
| php affiliate code not passing | vittle | v5.x | 1 | 02-16-2006 06:52 PM |
| Affiliate Program? | retrolyte | Pre-Sales Questions | 0 | 12-10-2005 11:21 PM |
| Presales question - Affiliate links | sleepy | Pre-Sales Questions | 2 | 10-27-2003 09:33 AM |
| Affiliate Section Needed | bgray | v3.2 | 2 | 06-25-2003 09:26 PM |