Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Manipulate counter

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Didipop
Smarty n00b


Joined: 08 Oct 2016
Posts: 1

PostPosted: Sat Oct 08, 2016 2:38 am    Post subject: Manipulate counter Reply with quote

Hello,

Im currently have a counter, but i want to "manipulate" it, for let's say, for 1 signup i want it to count as 10, is that possible? i tried to edit the "skip" and "count" to 10 instead of 1 with no success,

Code:
$counters[$name] = array(
            'start'     => 1,
            'skip'      => 1,
            'direction' => 'up',
            'count'     => 1
        );


Thanks for now,
Regards.
Back to top
View user's profile Send private message
elpmis
Smarty Elite


Joined: 07 Jun 2007
Posts: 321

PostPosted: Sat Oct 08, 2016 7:20 pm    Post subject: Reply with quote

Not sure if you know it but Smarty builtin {counter} plugin provide a solution you are searching for ...

http://www.smarty.net/docs/en/language.custom.functions.tpl#language.function.counter

Or have I mißunderstood you?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP