Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
08-28-2011, 09:27 AM | #1 |
Confirmed User
Industry Role:
Join Date: Jun 2001
Location: Sunny Land
Posts: 5,593
|
SMARTY HELP: how to print a number for -foreach-
If am doing a "foreach" and this is the foreach statement... how do I get smarty to out put a count number for each "foreach" it outputs?
here's the smarty foreach statement I'm using in my CARMA template: PHP Code:
__________________
Contact me: \\// E: webmaster /at/ unprofessional.com |
08-28-2011, 09:52 AM | #3 | |
Confirmed User
Industry Role:
Join Date: Jun 2001
Location: Sunny Land
Posts: 5,593
|
Quote:
__________________
Contact me: \\// E: webmaster /at/ unprofessional.com |
|
08-28-2011, 10:54 AM | #4 |
Confirmed User
Join Date: Oct 2007
Posts: 138
|
If you just need the number of the iteration you can use something like this:
PHP Code:
|
08-28-2011, 01:54 PM | #5 |
Converting like it's 1999
Industry Role:
Join Date: Jan 2009
Location: The South
Posts: 6,165
|
Thank god I'm on the advertising side of things.
__________________
10 years of experience in: CHAT SALES - PAID TRAFFIC - CONVERSION - CREATIVES - CONSULTATION |
08-28-2011, 02:19 PM | #6 |
Shit... Fuck! What the Hell?
Industry Role:
Join Date: Dec 2003
Posts: 7,567
|
|
08-28-2011, 08:29 PM | #7 |
Confirmed User
Industry Role:
Join Date: Jun 2001
Location: Sunny Land
Posts: 5,593
|
No doubt, I do design, marketing, affiliate repping, write articles, html css & push php & smarty code around... just enough to get by at least.
Some people do 1 thing great, I do many things good, and a few things above or below average.
__________________
Contact me: \\// E: webmaster /at/ unprofessional.com |