Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Edit "New Thread" Link / Button Details »»
Edit "New Thread" Link / Button
Version: 0.2, by JamesGunner JamesGunner is offline
Developer Last Online: Aug 2010 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.0.x Rating:
Released: 12-27-2009 Last Update: 01-28-2010 Installs: 24
DB Changes Uses Plugins Template Edits
 
No support by the author.

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 Now

File Type: xml product-new_thread_link.xml (2.0 KB, 86 views)
File Type: txt edit_new_thread_link_template_edits.txt (4.3 KB, 57 views)

Screenshots

File Type: jpg edit_new_thread_link.jpg (13.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-18-2012, 06:52 PM
chrisbeau chrisbeau is offline
 
Join Date: May 2007
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please do a 4.1.12 version
Reply With Quote
  #13  
Old 08-11-2012, 09:19 AM
Mobo Mobo is offline
 
Join Date: Jan 2004
Location: Colorado
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A 4.2 version would be really helpful.
Reply With Quote
  #14  
Old 08-11-2012, 09:42 AM
Mobo Mobo is offline
 
Join Date: Jan 2004
Location: Colorado
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, so I played with this and was able to get it to work with 4.2.0.

Here is what I did...


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

Find:
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&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:
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:
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&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:
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>
4. Goto admincp -> Forums & Moderators -> Forum Manager
5. Find the Forum where you want the "New Thread" Button link replaced
6. Choose "Edit Forum" -> Go
7. Scroll to the bottom of the Page and locate "Edit New Thread Link/Button"
8. Insert your link and hit SAVE
9. Done
Reply With Quote
  #15  
Old 05-11-2015, 06:22 AM
mykkal's Avatar
mykkal mykkal is offline
 
Join Date: May 2007
Location: Atlanta, GA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mobo View Post
Okay, so I played with this and was able to get it to work with 4.2.0.

Here is what I did...
I'm using 4.2.3 beta 4. I used your edit and the "button' disappeared but the text stayed. Has anyone tried using this on 4.2.2 or 4.2.3? Also there should be a third edit because the bottom button is the same.

Is anyone is around that still uses this plugin please here my plea. LOL, please help
Reply With Quote
  #16  
Old 05-11-2015, 09:26 AM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mykkal View Post
I'm using 4.2.3 beta 4. I used your edit and the "button' disappeared but the text stayed. Has anyone tried using this on 4.2.2 or 4.2.3? Also there should be a third edit because the bottom button is the same.

Is anyone is around that still uses this plugin please here my plea. LOL, please help
There is an auto template edit above in first post to download and import.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04536 seconds
  • Memory Usage 2,306KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (6)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (3)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete