PDA

View Full Version : Hide URL in all places


minnesotaIM
05-15-2007, 12:24 AM
I have two questions:

1. How do I hide the Listing URL in all visible areas of the directory. I hand modified view-link.tpl and also modified the listing URL to off in the admin panel but it still shows up when I click on any of the categories, the top links, popular links, etc. The only place it seemed to hide from was the view details page. Is there a global way to rid the visibility of this field?

2. I would also like to hide the URL from appearing in the status bar when a mouse rollover the link to website.

Your help is appreciated

tmitchell

Dave Baker
05-15-2007, 02:15 AM
Hello minnesotaIM,
Please check this thread: http://www.esyndicat.com/forum/showthread.php?t=5557&page=6&highlight=hide+url

minnesotaIM
05-15-2007, 03:49 AM
Hi Dave,
I read the entire thread and followed your most recent instructions, 4/2/07 I believe. I did the process twice but this did not delete the URL in various places. I'm not sure why it's not working, your directions were precise and I followed them to the tee.

tmitchell

Dave Baker
05-16-2007, 06:29 PM
Hi minnesotaIM,
Did you add new Urls for those links in admin panel?

minnesotaIM
05-16-2007, 06:37 PM
you mean i have to go into the listings, delete the URL's the resave with the same URL?

I did put in http:// for the add new field step but I didn't modify the existing listings.

minnesotaIM
05-16-2007, 06:45 PM
oh never mind, i found what you meant and all is working well. One quick question, the mod keeps the affiliate URL from showing in the status bar when moused over but not when the link is clicked - is there anyway to keep it from showing even when it's clicked?

Thanks Dave.

Dave Baker
05-16-2007, 09:00 PM
Try to add one more event onClick to your new code.
***In the replaced code find this event:***

onMouseOver="window.status='{if $link.display_url neq 'http://'}{$link.display_url}{else}{$link.url}{/if}'; return true"

*** after add:***

onclick="window.status='{if $link.display_url neq 'http://'}{$link.display_url}{else}{$link.url}{/if}'; return true"

for ex:
in templates/youTemplate/link-display.tpl your code should looks like this:

<div class="title">{if $link.crossed}@{/if} <a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if} onMouseOver="window.status='{if $link.display_url neq 'http://'}{$link.display_url}{else}{$link.url}{/if}'; return true" onclick="window.status='{if $link.display_url neq 'http://'}{$link.display_url}{else}{$link.url}{/if}'; return true" onMouseOut="window.status=''; return true">{if $config.html_tags}{$link.title}{else}{$link.title| escape:"html"}{/if}</a>
{section name=star loop=$link.rank}<img src="{$img}star.png" alt="" />{/section}
</div>

visoxcom
07-05-2007, 06:22 PM
Hello :)

I have made the mods as well. The mouse over part is working and I edited on listed to make the display URL a direct URL rather than and affilated coded URL's but its still howing the affiatled coded URL, any ideas?

Its here
http://www.nakedhosting.com/resources/Affiliate-Programs/

S.I.C. Cash listing

Dave Baker
07-06-2007, 10:04 AM
Hello visoxcom,
Try it:

<div class="title">{if $link.crossed}@{/if} <a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if} onMouseOver="window.status='{if $link.display_url neq 'http://'}{$link.display_url}{else}{$link.url}{/if}'; return true" onfocus="window.status='{if $link.display_url neq 'http://'}{$link.display_url}{else}{$link.url}{/if}'; return true" onMouseOut="window.status=''; return true">{if $config.html_tags}{$link.title}{else}{$link.title| escape:"html"}{/if}</a>
{section name=star loop=$link.rank}<img src="{$img}star.png" alt="" />{/section}
</div>

Or just change event "onclick" with "onfocus" :)

mindriot
11-21-2007, 02:35 PM
Dave

In the View Listing section using the affiliates link module how can I enable clicking the picture to use the affiliate link while it still displays the target website in the picture? Right now the picture can not be clicked. It's static but it does show the destination website. I uploaded the affiliate module. I am using the latest version.

Simon Gooffin
01-23-2008, 08:08 AM
Hi mindriot and welcome to the support forums,

Unfortunately the guys will not respond to the threads posted in incorrect area :( We have a special 2.2 version forums and all the questions related to that version should be asked there. It's highly recommend to post a new thread for a specific problem.