The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
evaluate code based on styleid
planning to have a right column sidebar on my forums on the main default style.
But on other styles it won't be there What i wanna know is if its possible that some php code (specifically query) can be run only if that style is selected by user and not for other styles..(saving query otherwise when guys are on diff style. and being faster therefore) eg i want to put a gallery preview on sidebar. But since sidebar is on one style only, so the query code for geting the pictures from sidebar is executed only when that style is selected. and not otherwise. eg *pseudo code if(styleid==%style number%) EXECUTE QUERY CODE end if something like above? if yes how? thanks |
#2
|
|||
|
|||
you've almost got it.
STYLEID is defined with the styleid. so PHP Code:
|
#3
|
||||
|
||||
yep thankyou
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|