Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #2  
Old 01-03-2010, 06:13 AM
KevinGupta KevinGupta is offline
 
Join Date: Dec 2006
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds good but would love to have it just with one product / upload files ( no template edits ) :P
but thanks a lot for this..
Reply With Quote
  #3  
Old 01-03-2010, 03:34 PM
JamesGunner JamesGunner is offline
 
Join Date: Sep 2008
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KevinGupta View Post
Sounds good but would love to have it just with one product / upload files ( no template edits ) :P
but thanks a lot for this..
Thanks,

Im already working on the auto template edits
Reply With Quote
  #4  
Old 04-10-2010, 05:39 PM
Cadellin's Avatar
Cadellin Cadellin is offline
 
Join Date: Jan 2009
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A nice little mod this. I can't get it working on 4.0.3 though, I can enter the redirect URL fine but it just doesn't affect the New Thread button. Any chance of an update?
Reply With Quote
  #5  
Old 04-14-2010, 07:14 PM
JamesGunner JamesGunner is offline
 
Join Date: Sep 2008
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will have to test that. Im pretty busy at the moment, so please excuse the delay.
Reply With Quote
  #6  
Old 10-11-2010, 04:45 AM
Harelin Harelin is offline
 
Join Date: Oct 2005
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks like an older mod but I just wanted to say that this fit my needs perfectly and worked well on 4.0.7.
Reply With Quote
  #7  
Old 01-23-2011, 07:28 PM
andie215 andie215 is offline
 
Join Date: Jul 2007
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't find the 3rd set of code to replace in 4.1.1 Any idea's please.
Reply With Quote
  #8  
Old 02-11-2011, 05:10 AM
SniperFodder SniperFodder is offline
 
Join Date: Apr 2009
Location: Somewhere in Null...
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was unable to find the 3rd code bit replacement. But insofar it seems to be working without it...
Reply With Quote
  #9  
Old 04-13-2011, 05:26 PM
xXNosXx xXNosXx is offline
 
Join Date: Feb 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by andie215 View Post
I can't find the 3rd set of code to replace in 4.1.1 Any idea's please.
I have the same problem!
Reply With Quote
  #10  
Old 04-25-2012, 08:12 AM
afcbob afcbob is offline
 
Join Date: Feb 2012
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As said before could not find last code to change but all seems to work without it :up:
Reply With Quote
Reply

Thread Tools

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 04:24 AM.


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.04572 seconds
  • Memory Usage 2,331KB
  • Queries Executed 24 (?)
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
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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