Results 1 to 5 of 5

Thread: affiliate link in url on detail page

  1. #1
    morgankd is offline Registered User
    Join Date
    Feb 2004
    Location
    md
    Posts
    98

    Default affiliate link in url on detail page

    I am try to add this to detail url

    This is the type of link i get from cj with the store information
    <a href="http://www.qksrv.net/click-XXXXXXX-XXXXXXX" target="_blank" onmouseover="window.status='http://www.artinaclick.com/default.asp?refsrc=cj';return true;" onmouseout="window.status=' ';return true;">Storename.com</a><img src="http://www.qksrv.net/image-XXXXXXX-XXXXXXX" width="1" height="1" border="0">

    I would it to show click here so i can hidden this from the user.

    How can I do this on the detail page

    Thank you for your help

  2. #2
    persut is offline Active Member
    Join Date
    Apr 2003
    Location
    NY
    Posts
    331

    Default

    <a href="http://www.qksrv.net/click-XXXXXXX-XXXXXXX" target="_blank" onmouseover="window.status='http://www.artinaclick.com/default.asp?refsrc=cj';return true;" onmouseout="window.status=' ';return true;">Click Here</a><img src="http://www.qksrv.net/image-XXXXXXX-XXXXXXX" width="1" height="1" border="0">

  3. #3
    markbrooks is offline Registered User
    Join Date
    Sep 2002
    Location
    UK
    Posts
    89

    Default

    Hi,

    Like you I work with affiliate links and have some CJ links in my database at High Street Shopping Online UK

    The best way around this is to create custom fields from within indexU

    I have the following:-

    status_bar
    tracking_img_url

    With the on mouse over code you can replace with something like the following:-

    <a href="go.php?id=<%link_id%>" onmouseout="window.status=''; return true;" onmouseover="window.status='<%status_bar%>'; return true;" target="_blank" style="color:#000000; text-decoration: none"><b><%title%></b></a><img src="<%tracking_img_url%>" border="0" height="1" width="1">

    This is the URL format from my rows template file. This negates the need to worry about your tracking codes as the details are ported from the fields status_bar and tracking_img_url saving space in your database in the long run.

    Amend the fields in msg.php with this format.

    <a href='go.php?id=<%link_id%>' target=_blank onmouseout=\"window.status=''; return true;\" onmouseover=\"window.status='<%status_bar%>'; return true;\"><b><%title%></b></a><img src='<%tracking_img_url%>' width=1 height=1 border=0>

    Using this format you can hide all your tracking codes with no problems
    Last edited by markbrooks; 03-02-2004 at 08:02 PM.

  4. #4
    morgankd is offline Registered User
    Join Date
    Feb 2004
    Location
    md
    Posts
    98

    Default

    markbrooks
    Thanks that help alot.

  5. #5
    AZInfoGal is offline Registered User
    Join Date
    May 2004
    Location
    Phoenix
    Posts
    14

    Default Affiliate Links

    I also use a few affiliate links in my directory and I have tried markbrooks solution. It works great for the affiliate links. But unfortunately for those few businesses that I do not have a website for, it generates a link for them that when clicked takes a visitor back to my directory's index.

    Any ideas on what I can do to fix this? Do I need to add an if/then statement or something that says if there's no url, then do not display anything in the field.

    Any help with this is appreciated!

Similar Threads

  1. Random 10 links on Detail page.
    By at00m in forum v3.2
    Replies: 11
    Last Post: 12-04-2003, 12:38 PM
  2. Make your detail page spidered
    By Shophere in forum v3.2
    Replies: 36
    Last Post: 11-26-2003, 03:30 AM
  3. Detail page instead of URL directly.
    By daweb in forum v5.x
    Replies: 5
    Last Post: 07-12-2003, 10:59 AM
  4. links showing but no detail page follows
    By janewest in forum v5.x
    Replies: 3
    Last Post: 07-02-2003, 08:31 PM
  5. Replies: 1
    Last Post: 09-01-2002, 12:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •