Partner links in box only - 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 02-24-2007   #1
omaron
 
Join Date: Jan 2007
Posts: 33
omaron is on a distinguished road
Default Partner links in box only

I am using 2.1.01 with Thematic blue (modified a bit).

I would like to only display partner links in the partners box only (on right column) but not display that link anywhere else.

Anyway to do that?
omaron is offline   Reply With Quote
Old 02-27-2007   #2
omaron
 
Join Date: Jan 2007
Posts: 33
omaron is on a distinguished road
Default

anyone has any ideea?
omaron is offline   Reply With Quote
Old 02-27-2007   #3
Dave Baker
 
Join Date: Jul 2006
Location: St. Petersburg
Posts: 2,567
Dave Baker is on a distinguished road
Default

Hello omaron,
Go to Admin Panel » Manage Listings and add necessary links to partners, then
***Open templates/yourTemplate/link-display.tpl and find code(right on the top)***
Code:
<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}>
***Before this code add***
Code:
{if $link.partner}
{else}
***In the bottom of the file find code ***
Code:
	{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>
***Below this code add***
Code:
{/if}
***Save changes***
Dave Baker is offline   Reply With Quote
Old 03-03-2007   #4
omaron
 
Join Date: Jan 2007
Posts: 33
omaron is on a distinguished road
Default

Thanks Dave. As i am already making this reply, i will ask something else that i am trying to do. Maybe some1 can help.

I have more featured links in each category.. sometime even more then 10. I set that featured links to show at top of listings, and that sometime makes that first page of some category to only have featured links.

I would like to limit the number of featured links that show on the top of other links for each category (not in the side box) to be only 3 (or other number, but different from the one set for Featured links box) and randomly selected from all featured links in that category.

Would be similar to how they show in Featured links box. There is always a fixed number of links (set in config) and links are random selected from all categories.

How is this possible?

Thanks.
omaron is offline   Reply With Quote
Old 03-05-2007   #5
Dave Baker
 
Join Date: Jul 2006
Location: St. Petersburg
Posts: 2,567
Dave Baker is on a distinguished road
Default

Hello omaron,
It's impossible now, because our script use different sql queries for "featured links box" and featured links that show on the top of category. Query which is used for "featured links box" has easy structure. Script randomly gets "featured links" from database and shows links which do not concern to this category. Query for featured links that show on the top of a category is part of big query for getting all links for the category. You will need to create new queries for it. Also script need something for store data about the displayed and not displayed and use these data for next query. It's not so easy, as it seems
Dave Baker 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 01:04 AM.


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