I have installed Vb 4.2 and vbseo. I want to enable post thread button inside the sub-forum for un-registered member. If the member click that button they needs to direct login page. Similarly i need this for post reply also
VB 4.2 Post thread post reply button
Collapse
X
-
-
Needs a template edit; Please be aware with editing templates that you will need to reapply these changes if you upgrade.
In template FORUMDISPLAY:
First take a copy of what's already there, in case you already have any customisations and need to restore it.
Then;
Find this code:
Code:<vb:if condition="$show['newthreadlink']"><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>
Code:<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}<vb:if condition="$show['guest']">register.php?{vb:raw session.sessionurl}<vb:else />newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw foruminfo.forumid}</vb:if>" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top"><span>+</span> {vb:rawphrase post_new_thread}</a>
Code:<vb:if condition="$show['newthreadlink']"> <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}<vb:if condition="$show['guest']">register.php?{vb:raw session.sessionurl}<vb:else />newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw foruminfo.forumid}</vb:if>" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_bottom"><span>+</span> {vb:rawphrase post_new_thread}</a> </vb:if>
Code:<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}<vb:if condition="$show['guest']">register.php?{vb:raw session.sessionurl}<vb:else />newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw foruminfo.forumid}</vb:if>" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_bottom"><span>+</span> {vb:rawphrase post_new_thread}</a>
Members will get the new thread screen as normal.MARK.B
vBulletin Support
------------
My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
My Unofficial vBulletin Cloud Demo: https://www.adminammo.com -
Thanks for this update. I have updated above code and it is working. But I couldn't find the below code in the forumdisplay template.Comment
-
Might be the spacing that causes that.
Try searching for this:
Code:{vb:rawphrase post_new_thread}
MARK.B
vBulletin Support
------------
My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
My Unofficial vBulletin Cloud Demo: https://www.adminammo.comComment
Related Topics
Collapse
-
by ahmadHello,
ver: 5.6.1
bbcode-html is big height, look at:
...-
Channel: Support Issues & Questions
Thu 11 Jun '20, 12:27am -
-
After upgrade I got to links to the section. Look at the picture.1 Photo
-
Channel: Support Issues & Questions
Sun 3 Dec '17, 2:50am -
Comment