Customize List of links page - eSyndiCat User Forums
eSyndiCat User Forums esyndicat directory software esyndicat support

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

User interface Discuss eSyndiCat templates here. All the questions regarding eSyndiCat [FREE] Front end

Reply
 
Thread Tools Display Modes
Old 01-07-2007   #1
imagis
 
Join Date: Jan 2007
Posts: 57
imagis is on a distinguished road
Default Customize List of links page

Hello,

I want to customize lis of links page (sample: http://www.zftutorials.com/zend-config/)

I would like to remove: Report broken link, Link details.

I would move link to detail to link name.

There is a setting somewhere at least for some of this things or i need to customize template (already did for an other links site, so np).
imagis is offline   Reply With Quote
Old 01-10-2007   #2
John Turner
 
Join Date: Sep 2006
Posts: 1,428
John Turner is a jewel in the roughJohn Turner is a jewel in the roughJohn Turner is a jewel in the roughJohn Turner is a jewel in the rough
Default

Hi imagis,

I am glad you got it.
There isn't necessary to change any files.
John Turner is offline   Reply With Quote
Old 01-10-2007   #3
imagis
 
Join Date: Jan 2007
Posts: 57
imagis is on a distinguished road
Default

Actually, for putting link to link details on link title i had do do changes into templates.

Also, to put link to some custom fields....

Any other way ?
imagis is offline   Reply With Quote
Old 01-10-2007   #4
John Turner
 
Join Date: Sep 2006
Posts: 1,428
John Turner is a jewel in the roughJohn Turner is a jewel in the roughJohn Turner is a jewel in the roughJohn Turner is a jewel in the rough
Default

Please describe your modification in full.
I think it'll be helpful for somebody else.
John Turner is offline   Reply With Quote
Old 01-11-2007   #5
Dave Baker
 
Join Date: Jul 2006
Location: St. Petersburg
Posts: 2,567
Dave Baker is on a distinguished road
Default

Hello imagis,
You need changes in templates/youTemplate/link-display.tpl file
***Open templates/youTemplate/link-display.tpl and find code***
Code:
	{if $config.broken_links_report}
		 | <a href="javascript:void(0)" onclick="reportBrokenLink({$link.id})">{$lang.report_broken_link}</a>
	{/if}
***Remove it***
***In this file find code***
Code:
	{if $config.mod_rewrite}
		{if 'search' eq $tab}
			{assign var="link_title" value=$link.title2}
		{else}
			{assign var="link_title" value=$link.title}
		{/if}
		<a href="{$config.base}{$config.dir}{$link.path}/{convert_str string=$link_title}-l{$link.id}.html">{$lang.link_details}</a>
	{else}
		<a href="{$config.base}{$config.dir}view-link.php?id={$link.id}">{$lang.link_details}</a>
	{/if}
***Replace with the following***
Code:
	{if $config.mod_rewrite}
		{if 'search' eq $tab}
			{assign var="link_title" value=$link.title2}
		{else}
			{assign var="link_title" value=$link.title}
		{/if}
	{/if}
***In this file find code***
Code:
	<div class="title">{if $link.crossed}@{/if} <a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{if $config.html_tags}{$link.title}{else}{text_html aText=$link.title}{/if}</a>
***Replace with the following code***
Code:
	<div class="title">{if $link.crossed}@{/if} <a href="{if $config.mod_rewrite}{$config.base}{$config.dir}{$link.path}/{convert_str string=$link_title}-l{$link.id}.html{else}{$config.base}{$config.dir}view-link.php?id={$link.id}
	{/if}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{if $config.html_tags}{$link.title}{else}{text_html aText=$link.title}{/if}</a>
***Save file***
Dave Baker is offline   Reply With Quote
Old 02-24-2007   #6
Mominur Rahman
 
Join Date: Apr 2006
Posts: 64
Mominur Rahman
Default

I this (remove link details and move link to detail to link name) in v2.0.01 Aqua. But I got this message

Quote:
Fatal error: Smarty error: [in link-display.tpl line 28]: syntax error: unexpected {else} (Smarty_Compiler.class.php, line 471) in /home/iwl/public_html/smarty/Smarty.class.php on line 1095
This may be because I also apply "Getting Rid of Full Path in Link Details URL MOD" http://www.esyndicat.com/forum/about6921.html

So how do I remove link details and move link to detail to link name?
Mominur Rahman is offline   Reply With Quote
Old 02-25-2007   #7
Dave Baker
 
Join Date: Jul 2006
Location: St. Petersburg
Posts: 2,567
Dave Baker is on a distinguished road
Default

Hello Mominur Rahman,
Please attach your link-display.tpl file to a post, we will try to check it.
Dave Baker is offline   Reply With Quote
Old 02-25-2007   #8
Mominur Rahman
 
Join Date: Apr 2006
Posts: 64
Mominur Rahman
Default

My link-display.tpl

Quote:
<tr>
<td colspan="2" class="link {$link.status}"{if $link.featured AND $config.featured_highlight AND $config.featured_links} style="background-color: {$config.featured_highlight}"{/if}{if $link.partner AND $config.partner_highlight AND $config.partner_links} style="background-color: {$config.partner_highlight}"{/if}{if $link.sponsored AND $config.sponsored_highlight AND $config.sponsored_links} style="background-color: {$config.sponsored_highlight}"{/if}>

<div class="title">{if $link.crossed}@{/if} <a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{if $config.html_tags}{$link.title}{else}{text_html aText=$link.title}{/if}</a>
{section name=star loop=$link.rank}<img src="{$img}star.png" alt="" />{/section}
</div>

<div class="description">{if $config.html_tags}{$link.description}{else}{text_h tml aText=$link.description}{/if}</div>
<div class="url">{$link.url}</div>
<div class="stat">

{if $config.mod_rewrite}

{if 'search' eq $tab}
{assign var="link_title" value=$link.title2}
{else}
{assign var="link_title" value=$link.title}
{/if}

<a href="{$config.base}{$config.dir}link-details-{$link.id}.html">{$lang.link_details}</a>
{else}
<a href="{$config.base}{$config.dir}view-link.php?id={$link.id}">{$lang.link_details}</a>
{/if}

{if ($editor.id eq $link.id_editor) || ($link.id_editor_edit eq '1')}
| <a href="{$config.base}{$config.dir}edit-link.php?id={$link.id}">{$lang.edit_link}</a>
{/if}

{if (($editor.id eq $link.id_editor) || ($link.id_editor_edit eq '1')) AND $config.sponsored_links}
| <a href="{$config.base}{$config.dir}upgrade-link.php?id={$link.id}">{$lang.upgrade_listing}</a>
{/if}

{if $config.amazon_link}
| <a href="http://partner.alexa.com/amzn/redirect_to_detail?amzn_id=esyndicatfree-20&amp;url={$link.url}">{$lang.view_amazon}</a>
{/if}

{if $config.broken_links_report}
| <a href="javascript:void(0)" onclick="reportBrokenLink({$link.id})">{$lang.repo rt_broken_link}</a>
{/if}

{if $config.pagerank}
<br />{$lang.pagerank}: {if $link.pagerank eq '-1'}{$lang.not_available}{else}{$link.pagerank}{/if}<br />{print_pagerank pr=$link.pagerank}
{/if}
</div>

</td>
</tr>

Last edited by Mominur Rahman; 02-25-2007 at 05:26 PM.
Mominur Rahman is offline   Reply With Quote
Old 02-25-2007   #9
Dave Baker
 
Join Date: Jul 2006
Location: St. Petersburg
Posts: 2,567
Dave Baker is on a distinguished road
Default

I checked your code of link-display.tpl and was not finding any problems with {else}, but you have code "text_h tml" with blank in this code:
Code:
<div class="description">{if $config.html_tags}{$link.description}{else}{text_html aText=$link.description}{/if}</div>
<div class="url">{$link.url}</div>
<div class="stat">
Please check it and inform about results.
Dave Baker is offline   Reply With Quote
Old 02-27-2007   #10
Mominur Rahman
 
Join Date: Apr 2006
Posts: 64
Mominur Rahman
Default

I apply this, now I there is no error code but the MOD that I previously made not working.

I applyed "Getting Rid of Full Path in Link Details URL MOD" http://www.esyndicat.com/forum/about6921.html . when I click on a link it shows
Quote:
"The requested URL /arts-and-entertainment/-l6.html was not found on this server."
Mominur Rahman 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 10:58 AM.


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