Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-13-2006, 12:45 PM
New Pligger
 
Join Date: Mar 2006
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Increment a value for each link

Hi

I want a value to increment for each item on a page.

example.

<div id="1"> LINK </div>

<div id="2"> LINK2 </div>

<div id="3"> LINK3 </div>

I know how to make a counter but I can't seem to find the loop that outputs all the links. When I put a counter inside link_summary.tpl it just does:
<div id="1"> LINK </div>
<div id="1"> LINK </div>
<div id="1"> LINK </div>

Please help.

edit: oops I thought I posted this in PHP help.

Last edited by garg; 03-13-2006 at 01:10 PM..
Reply With Quote
  #2 (permalink)  
Old 03-13-2006, 06:59 PM
New Pligger
 
Join Date: Mar 2006
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Solution:

{counter}

http://smarty.php.net/manual/en/lang...on.counter.php

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Special Advertising Add-On for banners Tutorial AnAlienHolakres3 Modification Tutorials 18 07-30-2008 09:25 AM
Change when bury link appears jmundane General Help 5 07-02-2008 10:45 AM
Better Read More (in Link) AnAlienHolakres3 Modification Tutorials 3 01-12-2008 05:18 AM


Search Engine Friendly URLs by vBSEO 3.2.0