The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
What template do you want to put that in?
|
#12
|
|||
|
|||
this is forum statics plug-in "changuondyu_latestpost_bit"
|
#13
|
|||
|
|||
Hmm...I'm not sure what to tell you. It depends on what variables are available when the template is eval'd, and not only is that from a mod, but apparently that mod is no longer available.
|
#14
|
|||
|
|||
if the user can view forumid x can see this thread title.. my mean is this..
|
#15
|
||||
|
||||
What's stored in $vbulletin->bf_ugp_forumpermissions['canview']?
If it's just a 1 or 0 or true or false maybe all you need is: Code:
<if condition="$vbulletin->bf_ugp_forumpermissions[canview]"> |
#16
|
|||
|
|||
Unless I'm mistaken, $vbulletin->bf_ugp_forumpermissions[canview] is a mask for checking that forum permission, so you'd need the actual forum permission bits to '&' it with. Unfortunately I can't find the source for that mod so I don't know if it's available or what.
|
#17
|
|||
|
|||
You can use pretty much anything in the <if>
Here's a bit more complex ones, Code:
<if condition="($variable1 == 1) AND ($variable2 = "sample string" || $variable3 != "sample")"> html here </if> |
#18
|
|||
|
|||
this is not working.
Code:
<if condition="$vbulletin->bf_ugp_forumpermissions[canview]"> i need this php code for vb for forumhome_lastpostby template Code:
if (!($lastpostforumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR (!($lastpostforumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND $lastpostinfo['lastposter'] != $vbulletin->userinfo['username'])) |
#19
|
|||
|
|||
<if condition="$bbuserinfo[forumpermissions][$forum[forumid]] & 36">
why cant i use this ? --------------- Added [DATE]1314486659[/DATE] at [TIME]1314486659[/TIME] --------------- i need if user have permissinon on this forumid can see this code help please |
#20
|
|||
|
|||
What are you trying to do? can you explain a bit clearer?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|