PDA

View Full Version : Conditional for forum password?


Boofo
05-27-2011, 11:55 AM
Is there a conditional for a forum password where it checks if the user has entered a correct password for the forum? I want the last post column to say one thing until the user successfully enters the password for that forum. And then it will show normal.

kh99
05-28-2011, 05:59 PM
I haven't tried it at all, but maybe:

<vb:if condition="verify_forum_password($foruminfo['forumid'], $foruminfo['password'], false)">


(assuming $foruminfo is available of course).


Edit: Oh, right :facepalm:. You can't do that in a conditional. It would have to be in a plugin.

Boofo
05-28-2011, 11:09 PM
Did not work. Got a template error. It didn't like "verify_forum_password".