![]() |
![]() |
![]() |
|
|||||||
| Existing Templates Want to adjust logo or center some piece of text in your directory? Get advice on how to do it in this forum dedicated to pre-installed templates. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 | |
|
Quote:
![]() |
||
|
|
|
|
|
#2 |
|
Super Moderator
Join Date: Oct 2005
Location: (California)
Posts: 5,299
![]() ![]() ![]() ![]() |
Your template index.tpl file.
Code:
<!-- listings box start -->
<div class="listings">
{if $config.mod_rewrite}{assign var="type" value=2}{else}{assign var="type" value=1}{/if}
{navigation aTotal=$total_listings aTemplate=$url aItemsPerPage=$config.num_index_listings aListingsPerPage=5 aType=$type}
<table cellspacing="0" cellpadding="0" width="100%">
{foreach from=$listings item=listing}
{include file="listing-display.tpl"}
{/foreach}
__________________
Please don't ask me about script questions or sales issues through "Private Messages". Thanks! |
|
|
|
|
|
#3 | |
|
Join Date: Mar 2008
Location: Toronto
Posts: 197
![]() |
Quote:
Repeating the same code every 3 listing replace: {if $smarty.foreach.listings.iteration eq 5} with: {if ($smarty.foreach.listings.iteration eq 3) || ($smarty.foreach.listings.iteration eq 6)} Hope it helps |
|
|
|
|
|
|
#4 |
|
Join Date: Jan 2009
Posts: 11
![]() |
Hi people,
I have tried this Link: http://www.audiolinks.org/Audio-Tutorials/Monitoring/ but I'm only getting the links at the top of the page and not between the listings. I aslo tried if $smarty.foreach.listings.iteration eq 2 || $smarty.foreach.listings.iteration eq 5 etc. but just get 2 blocks next to each other at the top of the listings. I am using the version 2.2.06 pro cheers Richard |
|
|
|
|
|
#5 |
|
Join Date: Nov 2007
Location: Earth
Posts: 973
![]() |
Hi littleblueroom,
Please look at this mod for 2.2.x here: http://www.esyndicat.com/forum/showthread.php?p=94874 |
|
|
|
|
|
#6 |
|
Join Date: Jan 2009
Posts: 11
![]() |
thx, that worked a treat, richard
|
|
|
|
|
|
#7 |
|
Join Date: Oct 2009
Posts: 1
![]() |
|
|
|
|
|
|
#8 |
|
Join Date: Mar 2008
Posts: 307
![]() |
So I am on 2.3.03
Is this still working???? I use 5daysblack template ![]() |
|
|
|
|
|
#9 |
|
Join Date: Jun 2006
Posts: 274
![]() |
Hi Truth,
I'm working on upgrading to 2.3.03 and have not yet gotten to this customization. Will be doing it in the next few days and can let you know or you can jump in and give it a try. Just remember to move the modified copy of the template into the template folder and leave a clean original in the common folder. If anything goes too haywire you can just delete the modified copy and the software will automatically use the original one. Michele
__________________
|
|
|
|
|
|
#10 |
|
Join Date: Mar 2010
Location: Australia
Posts: 215
![]() |
{foreach from=$listings name=listing item=listing}
{include file="listing-display.tpl"} {if $smarty.foreach.listing.iteration eq 3} <tr><td> PUT GOOGLE CODE HERE </td></tr> {/if} {/foreach} </table> The above works |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|