![]() |
![]() |
![]() |
|
|||||||
| 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: Jan 2007
Posts: 33
![]() |
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? |
|
|
|
|
|
#2 |
|
Join Date: Jan 2007
Posts: 33
![]() |
anyone has any ideea?
|
|
|
|
|
|
#3 |
|
Join Date: Jul 2006
Location: St. Petersburg
Posts: 2,567
![]() |
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}>
Code:
{if $link.partner}
{else}
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>
Code:
{/if}
|
|
|
|
|
|
#4 |
|
Join Date: Jan 2007
Posts: 33
![]() |
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. |
|
|
|
|
|
#5 |
|
Join Date: Jul 2006
Location: St. Petersburg
Posts: 2,567
![]() |
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 ![]() |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|