Affiliate Link with the right Website Preview Picture

Discussion in 'Modifications' started by mlowrey, May 19, 2006.

  1. mlowrey

    mlowrey Paid Customer

    Hello everybody,

    My FIRST problem is about using affiliate links. But i don't want my customers to see that iam using affilate links .....

    Can this be done by using a extra url field or something ????

    Then the SECOND problem: THE PREVIEW WEBSITE IMAGE will be the one of the affilate website and not the destination URL !

    Can someone explain me how to fix this 2 problems ?

    THX JK.
  2. WTM

    WTM Loyal User

    I have asked same question before and Simon promised me to help with this mod in very near future. As soon as it's done I will post it in Modifications forum.
    Keep your eyes open for Display-URL mod
  3. Nick Collins

    Nick Collins Guest

    Welcome to our forum, mlowrey!
    1) Here is a solution to hide urls from your customers:
    ***open templates/TemplateName/link-display.tpl***
    ***find the following code***
    Code:
    <div class="title">{if $link.crossed}@{/if} [url="{$link.url}"]{if $config.esc_codes}{text_to_html aText=$link.title aParagraph=true}{else}{$link.title}{/if}[/url]
    ***replace with***
    Code:
    <div class="title">{if $link.crossed}@{/if} [url="{$link.url}"]{if $config.esc_codes}{text_to_html aText=$link.title aParagraph=true}{else}{$link.title}{/if}[/url]
    
    ***find and delete the following code***
    Code:
    <div class="url">{$link.url}</div>
    ***save***

    [2]We are taking thumbnails from "Alexa" site, so I can not help you in that case. You simply can disable them from admin panel.
  4. mlowrey

    mlowrey Paid Customer

    thx for the quick reply.

    but whta i don't understand is that, if we would make a extra field, why wouldn't it be possible then to let alexa read that url for its image ?

    And why issen't it possible to make a extra url field for the visible link ?

    This option would be absolutley fxxxxxxx great !

    thx jk.
  5. Bryan Ex

    Bryan Ex Paid Customer

  6. mlowrey

    mlowrey Paid Customer

    strange that he is not taking the time for it. This would increase his value of his software allot ! Also the option to put a surten amount of sponsors on the top of each category should be in the package......
  7. WTM

    WTM Loyal User

    Hey Nick!

    Your solution is not exactly what we are trying to accomplish.

    This is what we want step-by-step:

    1. Create new field for link submission from admin panel named "Display_URL"
    (This part is easy and can be done without your help)

    2. When directory owner enters information for new link from admin panel he will have 2 fields to enter URL's
    - first is actual url (for example http://somesite.com?affiliateID)
    - second is Display_url (http://somesite.com)

    3. In link-display.tpl:
    a)
    - if there is "Display_URL" for this link - show Display_url in the link field
    - if there is no "Display_Url" stored - show actual link
    b)
    - same action for "onMouseOver" script.

    4. In view-link.tpl
    - same exact action as in link-display.tpl.

    I believe that even if you enter affiliate url Alexa will still display thumbnail image for the main site but to address mlowrey's concern may be code for Alexa image should be also pointed to "Display_URL"

    If I missed anything guys, please correct me...

    Please Nick, help us! :(
  8. Bryan Ex

    Bryan Ex Paid Customer

    Right on target WTM... the one thing I'll perhaps clarify for Nick or Simon is that the "display URL" field should not be accessable (or even viewable) by someone submitting a link - other than admin.
  9. mlowrey

    mlowrey Paid Customer

    YES this is it !

    I think that the affiliate link only is neccesary for the admin.

    I hope that the owner of this script can make this MOD ASAP ! JIHA
  10. WTM

    WTM Loyal User

    Nick or Simon Please help!

    1. What I am trying to do is to show "display_url" if it is present and actual url if there is no "display_url"
    This is the code I came up with:
    Code:
    {if $link.display_url ne ''}{$link.display_url}{else}{$link.url}{/if}
    This code is showing "display_url" fine but if there is no "display_url" stored for the link - url field stays empty.

    What am I doing wrong?

    2. For MouseOver I am using code:
    Code:
    <a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if} onMouseOver="window.status='{if $link.display_url ne ''}{$link.display_url}{else}{$link.url}{/if}'; return true" onMouseOut="window.status=''; return true">
    First of all it is working only in IE and nothing is showing up in Firefox
    Again same story - if "display_url" is not present all I get is "http://"
    If it is present - status bar in IE is showing "display_url"

    Could you please point me in the right direction.
    What am I doing wrong??? :unsure:

    See example here
  11. Nick Collins

    Nick Collins Guest

    Hi WTM, here is a correct code for number one:
    Code:
    {if $link.display_url neq 'http://'} {$link.display_url} {else} {$link.url}{/if}
    and here is for number two:
    Code:
    [url="{$link.url}"]{if $config.esc_codes}{text_to_html aText=$link.title aParagraph=true}{else}{$link.title}{/if}[/url]
    
    This code will work in case you created "Text" custom field with name "display_url" and default value = "http://"
  12. WTM

    WTM Loyal User

    Hey guys
    I posted mod in the Pro section Version Mods
  13. Nick Collins

    Nick Collins Guest

    ...and I made it Sticky ;)
  14. mlowrey

    mlowrey Paid Customer

    JOEHOE ! Can someone please explain my where i have to insert this mod ?
  15. WTM

    WTM Loyal User

    Just follow my step-by-step instructions here:

    http://www.esyndicat.com/forum/showthread.php?t=5557

    You will need to create new field in admin panel and than update 3 files:
    - language/your_language.php
    - templates/your_template/link-display.tpl
    - templates/your_template/view-link.tpl
  16. mlowrey

    mlowrey Paid Customer

    I GET THIS:

    mlowrey, you do not have permission to access this page. This could be due to one of several reasons:

    Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
    If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
  17. WTM

    WTM Loyal User

    Did you pay for Pro version of the script?
    The mod is for Pro version and posted in pro users forum.
    It will not work with free version
  18. mlowrey

    mlowrey Paid Customer

    i have the pro version and payed for it !

    i have a login for the download area to download the pro version.

    i have bought it about 2 weeks ago.
  19. WTM

    WTM Loyal User

    When you open forum main page do you see section (it should be second section from the top)

    eSyndicat Pro Customers
    - Pro Admin Panel
    - User Front-End
    - Version Mods

    If you don't see it - you need to e-mail Simon or Nick for them to grant you access to Pro area
  20. WTM

    WTM Loyal User

    I sent you copy of the code in the PM

Share This Page