![]() |
Condition statements in Templates? I'm trying to use vBulletin condition statements in the PhotoPost PRO and PhotoPost Classifieds custom1pal.tmpl files, but they don't seem to be working. My condition is: Code: Content visible to verified customers only.Is there another way to either turn the display of custom1pal.tmpl on or off based on the usergroup? |
You are correct you can not use vb conditionals in Photopost it is another completely different application. Just for the sake of trying did you try this $vbulletin->userinfo[usergroupid] |
Seems to just return the string "Array[usergroupid]". Maybe I'm not sure how to use it correctly in the template. Basically, all I'm trying to do is display the custom pal only to certain usergroups. The reason for this is that my custom pal contains banner ads, and I want to turn OFF the banner ads for subscribers. Can you think of any other way to do this within PhotoPost? If not, not the end of the world. :-) Thanks! |
You probally want to search vbulletin to see what might work since your really dealing with vbulletin conditionals maybe this <if condition="in_array($vbulletin->userinfo[usergroupid], array(2,5,6))">The usergroups can see this html</if> From a photopost perspective you would need to query and define the user's usergroups and define the permissions |
| All times are GMT -5. The time now is 12:07 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0