Linking to details page through the title - eSyndiCat User Forums
eSyndiCat User Forums esyndicat directory software esyndicat support

Go Back   eSyndiCat User Forums > eSyndiCat Directory Software [FREE] > Modifications

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.

Reply
 
Thread Tools Display Modes
Old 07-21-2006   #1
mehmetb
 
Join Date: Jul 2006
Posts: 10
mehmetb is on a distinguished road
Default Linking to details page through the title

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}>
Delete this completely and paste that instead:
Code:
<a href="{$base}{$link.path}/{convert_str string=$link.title}-l{$link.id}.html">
And delete this code on line 17 in order to delete the "link details" :

Code:
:: <a href="{$base}{$link.path}/{convert_str string=$link.title}-l{$link.id}.html">{$lang.link_details}</a>
By doing so, people will have to visit more pages in your site to find the site URL, there are pros and cons for this.

I'm not a PHP expert, if there are better ways for doing this please notify.
Mehmet
mehmetb is offline   Reply With Quote
Old 07-21-2006   #2
Greg
Super Moderator
 
Greg's Avatar
 
Join Date: Oct 2005
Location: Phoenix,Arizona (Valley of the Sun)
Posts: 5,356
Greg is a jewel in the roughGreg is a jewel in the roughGreg is a jewel in the roughGreg is a jewel in the rough
Default

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!
Greg is offline   Reply With Quote
Old 07-22-2006   #3
mehmetb
 
Join Date: Jul 2006
Posts: 10
mehmetb is on a distinguished road
Default

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}>
and paste this instead :

Code:
<a href="eSyndiCat_v1.5/templates/SunnyDay/{$base}{$link.path}/{convert_str string=$link.title}-l{$link.id}.html">
Save and upload.
mehmetb is offline   Reply With Quote
Old 07-22-2006   #4
mehmetb
 
Join Date: Jul 2006
Posts: 10
mehmetb is on a distinguished road
Default

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?
mehmetb is offline   Reply With Quote
Old 07-24-2006   #5
Vincent Wright
 
Join Date: Sep 2005
Posts: 1,421
Vincent Wright is an unknown quantity at this point
Default

Please add id attribute to <a> tag. This should solve the issue.
Vincent Wright is offline   Reply With Quote
Old 07-26-2006   #6
mehmetb
 
Join Date: Jul 2006
Posts: 10
mehmetb is on a distinguished road
Default

Thanks Vincent, problem solved.
mehmetb is offline   Reply With Quote
Old 07-26-2006   #7
Vincent Wright
 
Join Date: Sep 2005
Posts: 1,421
Vincent Wright is an unknown quantity at this point
Default

Good

Last edited by Vincent Wright; 07-26-2006 at 10:46 AM.
Vincent Wright is offline   Reply With Quote
Old 07-26-2006   #8
ebionet
Googler
 
Join Date: Jun 2006
Location: Everywhere
Posts: 68
ebionet is on a distinguished road
Default

Hello Vincent/Greg,

Can you guys confirm that this modification is technically alright and post the updated one for pro users.

Thank you,
ebionet is offline   Reply With Quote
Old 07-26-2006   #9
Sai_dallas
 
Sai_dallas's Avatar
 
Join Date: Mar 2006
Location: USA
Posts: 1,186
Sai_dallas is an unknown quantity at this point
Default I would like to see a working site with this implemented

I would like to see a working site with this implemented.


.
__________________
Dot Rig
Ayhu
eDoctor
Sai_dallas is offline   Reply With Quote
Old 07-26-2006   #10
mehmetb
 
Join Date: Jul 2006
Posts: 10
mehmetb is on a distinguished road
Default

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.
mehmetb is offline   Reply With Quote
Reply

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
Forum Jump


All times are GMT. The time now is 09:06 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Testimonials | Articles | Support | Documentation | Privacy Policy | License | Affiliates | Contact Us | SEO Resources