Back to vBulletin 4.x Add-ons

Edit "New Thread" Link / Button
Mod Version: 0.2, by JamesGunner

vB Version: 4.0.x Rating: (2 votes - 5.00 average) Installs: 24
Released: 28 Dec 2009 Last Update: 29 Jan 2010 Downloads: 103
Not Supported DB Changes Uses Plugins Template Edits  

Edit "New Thread" Link / Button


What does this do?
--------------------------------------------------------------------
Modify the Link the users are redirected to when they click the "New Thread" Button.

Installation
--------------------------------------------------------------------

1. Goto admincp -> Plugin System -> Manage Products -> [Add/Import Product]
2. Browse for this product and click Import
3. Edit the Template "FORUMDISPLAY"(without quotes):

FIND:

HTML Code:
<vb:if condition="$show['newthreadlink']">
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top">
<span>+</span> {vb:rawphrase post_new_thread}
</a>
</vb:if>
REPLACE WITH:

HTML Code:
<vb:if condition="$show['newthreadlink']">
         <vb:if condition="$foruminfo['new_thread_link']">
                 <a href="{vb:raw foruminfo.new_thread_link}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top">
                         <span>+</span> {vb:rawphrase post_new_thread}
                 </a>
         <vb:else />
                 <a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top">
                         <span>+</span> {vb:rawphrase post_new_thread}
                 </a>
         </vb:if>
<vb:else />
         &nbsp;
</vb:if>
FIND:

HTML Code:
<vb:if condition="$show['newthreadlink']">
                                                <li>
                                                        <a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">
                                                                {vb:rawphrase post_a_new_thread}&hellip;
                                                        </a>
                                                </li>
                                        </vb:if>
REPLACE WITH:

HTML Code:
<vb:if condition="$show['newthreadlink']">
         <li>
                 <vb:if condition="$foruminfo['new_thread_link']">
                 <a href="{vb:raw foruminfo.new_thread_link}" rel="nofollow">
                 {vb:rawphrase post_new_thread}&hellip;
                 </a>
                 <vb:else />
                 <a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">
                 {vb:rawphrase post_new_thread}&hellip;
                 </a>
         </vb:if>
         </li>
</vb:if>
FIND:

HTML Code:
<vb:if condition="$show['newthreadlink'] AND $show['threadslist']">
                <a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_bottom">
                <span>+</span> {vb:rawphrase post_new_thread}</a>
        </vb:if>
REPLACE WITH:

HTML Code:
<vb:if condition="$show['newthreadlink'] AND $show['threadslist']">
         <vb:if condition="$foruminfo['new_thread_link']">
                 <a href="{vb:raw foruminfo.new_thread_link}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_bottom">
                         <span>+</span> {vb:rawphrase post_new_thread}
                 </a>
         <vb:else />
                 <a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow" class="newcontent_textcontrol"
id="newthreadlink_bottom">
                         <span>+</span> {vb:rawphrase post_new_thread}
                 </a>
         </vb:if>
<vb:else />
         &nbsp;
</vb:if>
3. Click Install in this Thread!

USAGE
--------------------------------------------------------------------
1. Goto admincp -> Forums & Moderators -> Forum Manager
2. Find the Forum where you want the "New Thread" Button link replaced
3. Choose "Edit Forum" -> Go
4. Scroll to the bottom of the Page and locate "Edit New Thread Link/Button"
5. Insert your link and hit SAVE
6. Done

Tested with vb4 Gold and 4.0.1.
As an Alternative I attached the instructions for the Template edits.
Im trying to make the Template edits automatic so any help is greatly appreciated!

Download

File Type: %1$s product-new_thread_link.xml (2.0 KB, 88 downloads)
File Type: %1$s edit_new_thread_link_template_edits.txt (4.3 KB, 59 downloads)

Screenshots

Click image for larger version
Name:	edit_new_thread_link.jpg
Views:	885
Size:	13.2 KB
ID:	108356  

Similar Mods

Change "Subscribe to This Thread" link to "Unsubscribe" if already subscribed vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024