Quote:
Originally Posted by Ming Keong
Added a little functionality:
Replace all:
Code:
$bbuserinfo[showvbcode]</a>
with:
Code:
<if condition="$bbuserinfo[showvbcode]=='2'">WYSIWYG Editor<else />Standard Editor</if></a>
|
just because I dont like seeing that text, that's why.
actually, you just need to use condition once:
HTML Code:
<if condition="$bbuserinfo[showvbcode]=='2'">
(<a href="changeinterface.php?$session[sessionurl]do=newthread&eid=1&f=$foruminfo[forumid]" title="Click to change Editor Interface to Standard">WYSIWYG Editor</a>)
<else />
(<a href="changeinterface.php?$session[sessionurl]do=newthread&eid=2&f=$foruminfo[forumid]" title="Click to change Editor to WYSIWYG Interface">Standard Editor</a>)
</if>
do the same with other templates.
However, if Guest is allowed to post, you may get error if you dont have userid=0. then, adding
<if condition="$bbuserinfo[userid]!=0"> above,
and </if> bellow the code should help.
In my case, if guest, $bbuserinfo[showvbcode] = empty, there's no link 