![]() |
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 |
If you are using post cache it will not work.
|
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] --------------- Quote:
Any workaround for this? Thanks |
The only work around would be to turn off the post cache and that isn't a good idea.
|
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. |
Thanks, I will look into this :)
|
All times are GMT. The time now is 08:21 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|