#1 (permalink)  
Old 07-13-2007, 03:05 PM
Registered User
 
Join Date: Mar 2006
Posts: 13
cheetah is on a distinguished road
Question Affiliate links

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.
  #2 (permalink)  
Old 07-13-2007, 03:16 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

Do you really need to hide the affiliate links? Most people don't know they are affiliate links and will click anyways.

One thing you can do is just change the following to not show the URL in detail_link.html

<label for="url">Url</label>
<span class="text"><a href="<%$url%>" name="link_<%$link_id%>"><%$url%></a></span>

Change to

<label for="url">Url</label>
<span class="text"><a href="<%$url%>" name="link_<%$link_id%>"><%$title%></a></span>

That will show the title, instead of the URL. Simple but effective.
  #3 (permalink)  
Old 07-13-2007, 03:40 PM
Registered User
 
Join Date: Mar 2006
Posts: 13
cheetah is on a distinguished road
Default

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
  #4 (permalink)  
Old 07-13-2007, 10:00 PM
Registered User
 
Join Date: Mar 2006
Posts: 13
cheetah is on a distinguished road
Default

No ideas?
  #5 (permalink)  
Old 07-14-2007, 03:14 PM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

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 )
  #6 (permalink)  
Old 07-14-2007, 11:04 PM
Registered User
 
Join Date: Mar 2006
Posts: 13
cheetah is on a distinguished road
Default

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.
  #7 (permalink)  
Old 07-16-2007, 10:36 AM
Registered User
 
Join Date: Mar 2006
Posts: 13
cheetah is on a distinguished road
Default

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
  #8 (permalink)  
Old 07-16-2007, 02:44 PM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

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 )
  #9 (permalink)  
Old 07-16-2007, 04:04 PM
Registered User
 
Join Date: Mar 2006
Posts: 13
cheetah is on a distinguished road
Default

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.
Closed Thread

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

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

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 03:33 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate