PDA

View Full Version : Forum Conditional in SHOWTHREAD?


TheInsaneManiac
04-11-2011, 05:03 AM
I can't get this code to work:
<vb:if condition="can_moderate() AND $forumid==$vboptions['rpforumid']">
<form method="post" action="postings.php?do=domovethread&t=$threadid">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="do" value="domovethread" />
<input type="hidden" name="title" value="[solved] $threadinfo[title]" />
<input type="hidden" name="destforumid" value="88" />
<input type="hidden" name="redirect" value="none" />
<input type="submit" value="Solve report">
</form>
</vb:if>

HMBeaty
04-11-2011, 05:12 AM
Shouldn't it be this?
<vb:if condition="can_moderate() AND $forum[forumid] == $vboptions['rpforumid']">

TheInsaneManiac
04-11-2011, 05:30 AM
Shouldn't it be this?
<vb:if condition="can_moderate() AND $forum[forumid] == $vboptions['rpforumid']">
Still won't work. Supposedly I have to register a variable, but I tried registering forum to SHOWTHREAD and it didn't work.

pjk
04-17-2011, 04:48 AM
here the answer ^_^

https://vborg.vbsupport.ru/showthread.php?t=261917