The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
forumid inside of video bbcode template?
Hi I am trying to limit guest viewing videos in certain forums.
I have tried: <vb:if condition="in_array($GLOBAL['forumid'], array(78,80,85,83))"> <vb:if condition="in_array($thread['forumid'], array(78,80,85,83))"> <vb:if condition="in_array($post['forumid'], array(78,80,85,83))"> <vb:if condition="in_array($forumid , array(78,80,85,83))"> None of above works, what would be the right variable for this? Also, if I want to put <vb:if condition="in_array($post['forumid'], array(78,80,85,83))"> and <vb:if condition="$bbuserinfo['userid'] == 0"> togehter, would it look like this? <vb:if condition="in_array($post['forumid'], array(78,80,85,83)) AND $bbuserinfo['userid'] == 0"> Thanks W |
#2
|
|||
|
|||
If you are using post cache it will not work.
|
#3
|
|||
|
|||
hmm. Right now I have just <vb:if condition="$bbuserinfo['userid'] == 0"> statement and it seems to work, so do you mean the forumid part will not work?
Any alternative solution? Thanks --------------- Added [DATE]1293312606[/DATE] at [TIME]1293312606[/TIME] --------------- hmmm I see what you mean now. I viewed a page as a guest first. Then I login and viewed the same page staying the same... Any workaround for this? Thanks |
#4
|
||||
|
||||
The only work around would be to turn off the post cache and that isn't a good idea.
|
#5
|
|||
|
|||
You can use postbit_display_start hook and pagetext_html variable.
If user is a guest and forumid is in array, replace [VIDEO](.*)[/VIDEO] with something. |
#6
|
|||
|
|||
Thanks, I will look into this
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|