The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Manipulating variables (such as multiplying variable x2)
I've been having a tough time trying to find an answer to question about templating in vB3.8. Is it possible to manipulate a variable such as dividing or multiplying it? In my case, I want to take the standard avatar in postbit and divide the $post[avwidth] and $post[avheight] by 2 (so that the image is displayed as half the size). I know I can reduce the avatar size limit but that defeats the purpose of what I am trying to do. Is there a way to do $post[avwidth] / 2 or $post[avwidth] * .5 or something?
|
#2
|
||||
|
||||
This may help you - Perform simple calculations inside templates!. I haven't looked to see if it will work for those particular variables, but it may. Just try it out on a test style or test site.
|
#3
|
|||
|
|||
Thanks Lynne!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|