![]() |
![]() |
![]() |
|
|||||||
| Modifications Simple to complex modifications, made by users or by our team, applied to logic or presentation, all kinds of modifications are discussed and requested here. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Jul 2006
Posts: 10
![]() |
Hi,
Here is the issue; The default set of link-display is like this: Link Title Link Description Reciprocal Link View details When you click on Link Title, you directly go to the homepage URL of that link. But what if you want your visitors to visit the details of that link? I was looking for a solution for that and I've noticed that same issue was asked here before : http://www.esyndicat.com/old_forum/about689.html I want to share my solution about fixing this issue, I don't know that's the right one but it worked for me: In version 1.5 Sunny Day template, open the link-display.tpl . On line 10, there is : Code:
<a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>
Code:
<a href="{$base}{$link.path}/{convert_str string=$link.title}-l{$link.id}.html">
Code:
:: <a href="{$base}{$link.path}/{convert_str string=$link.title}-l{$link.id}.html">{$lang.link_details}</a>
I'm not a PHP expert, if there are better ways for doing this please notify. Mehmet |
|
|
|
|
|
#2 |
|
Super Moderator
Join Date: Oct 2005
Location: Phoenix,Arizona (Valley of the Sun)
Posts: 5,356
![]() ![]() ![]() ![]() |
Thanks Mehmet
and Welcome to the forums ![]() I'll have to check this out with some of the ProVersion templates and see if it works. I'm like you and would rather they would go to the details page from that link. Also it would be nice to find a way to do the same with featured and sponsored links that are in boxes in either the right or left side columns.
__________________
Please don't ask me about script questions or sales issues through "Private Messages". Thanks! |
|
|
|
|
|
#3 |
|
Join Date: Jul 2006
Posts: 10
![]() |
To do the same for featured links,
Open footer.tpl, (v1.5 Sunny Day Template) On line 48, remove the following : Code:
<a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>
Code:
<a href="eSyndiCat_v1.5/templates/SunnyDay/{$base}{$link.path}/{convert_str string=$link.title}-l{$link.id}.html">
|
|
|
|
|
|
#4 |
|
Join Date: Jul 2006
Posts: 10
![]() |
I've just discovered a minor issue about this modification, click numbers don't update in link display and view link when you replace those codes. Any ideas?
|
|
|
|
|
|
#5 |
|
Join Date: Sep 2005
Posts: 1,421
![]() |
Please add id attribute to <a> tag. This should solve the issue.
|
|
|
|
|
|
#6 |
|
Join Date: Jul 2006
Posts: 10
![]() |
Thanks Vincent, problem solved.
![]() |
|
|
|
|
|
#7 |
|
Join Date: Sep 2005
Posts: 1,421
![]() |
Good
![]() Last edited by Vincent Wright; 07-26-2006 at 10:46 AM. |
|
|
|
|
|
#8 |
|
Googler
Join Date: Jun 2006
Location: Everywhere
Posts: 68
![]() |
Hello Vincent/Greg,
Can you guys confirm that this modification is technically alright and post the updated one for pro users. Thank you, |
|
|
|
|
|
#10 |
|
Join Date: Jul 2006
Posts: 10
![]() |
Hi,
This isn't a "site" actually but a sandbox instead.But you can see the implementation of this modification: www.shinytrip.com I'm very busy nowadays so I am not be able to involve with it frequently. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|