Quote:
Originally Posted by lafsunlmtd
In 3.8 I was able to use conditionals in certain forums based on the forumid to change the URL of the new thread button. I've tried to rewrite the conditionals for vb 4.2 and just doesn't seem to work, any thoughts?
Code:
<vb:if condition="$show['newthreadlink']">
<vb:if condition="$foruminfo['forumid'] == 70"><a href="/forums/forms.php?do=form&fid=1" class="newcontent_textcontrol" id="newthreadlink_top"><span>+</span> {vb:rawphrase post_new_thread}</a>
<vb: else />
<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw foruminfo.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top"><span>+</span> {vb:rawphrase post_new_thread}</a></vb:if></vb:if>
I go to the forum with the forumid of 70 and the new thread button does not go to the form but the regular new post form.
Thoughts?
|
Anyone know who to make the new thread for certain forums automatically redirect to the form? I have no idea why the code above isn't working.