The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom Post New Thread Link
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> Trying to use the Easy Forms plugin to control the new thread options for certain forums. I can't understand why this isn't working. |
#2
|
|||
|
|||
Anyone have any ideas?
|
#3
|
|||
|
|||
No one? I just can't figure out why the link won't work properly.
|
#4
|
||||
|
||||
<vb:if condition="$forum[forumid] == X">Try your code in here</vb:if>
X = forumid |
#5
|
||||
|
||||
Just curious, how did you do it exactly in vB3? I found this thread at vBulletin.com which explains how to do it in vB4.
https://www.vbulletin.com/forum/show...=1#post2293823 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|