number variables in templates
In the newattachmentbit template, I want to give every upload a number.
In php, I would just use a variable and increment it for every uploaded attachment.
How do I do this in a vbulletin template?
--------------- Added [DATE]1284974502[/DATE] at [TIME]1284974502[/TIME] ---------------
I realize this could be done easily by using an ordered list in the newattachmentbit template instead of those ancient tables.
I just tried it out with the list. It has not the effect that I want, though.
If I use a list and remove the first uploaded attachment in the list, the list gets renumbered.
I want the numbers to remain the same after removing an image from the list.
Because I sometimes get requests like "attachment 1,4,13,25 should be removed". If the pics get renumbered, it creates a mess.
So I must use an incrementing variable to achieve this.
|