Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
New Thread Button in Showthread Details »»
New Thread Button in Showthread
Version: 1.00, by shadowgfx shadowgfx is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.0.0 Rating:
Released: 12-22-2009 Last Update: Never Installs: 20
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

In SHOWTHREAD Template find:

HTML Code:
{vb:rawphrase reply_to_thread}
ADD AFTER:

HTML Code:
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top"><span>+</span> {vb:rawphrase post_new_thread}</a>

NOTE: There are two differant places to edit that code in, because there is the bottom and the top buttons.

Supporters / CoAuthors

    Show Your Support

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

    Comments
      #12  
    Old 02-02-2010, 03:31 AM
    Eq4bits Eq4bits is offline
     
    Join Date: May 2006
    Posts: 468
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Mine are too close together as well, adding a &nbsp; only makes 'reply' button wider =S
    Perhaps because I use a fixed width?
    Also had the same problem with it not showing up on the bottom of thread, so just removed it from that location.
    Reply With Quote
      #13  
    Old 02-02-2010, 06:15 AM
    s810car s810car is offline
     
    Join Date: Mar 2008
    Posts: 50
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    anyone try changing
    Code:
    <a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top">
    to this
    Code:
    <a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:15px;">
    yet? Change the 15px to distance you want, should work fine. You coule add the definition in your postlist.css template, but as a single line mod this would be fine

    EDIT Just noticed a correction needs to be added to the code, don't add DIRECTLY after the vbphrase, here is the code in the showthread template:
    Code:
    <vb:if condition="$show['largereplybutton']">
    			<a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1" 
    class="newcontent_textcontrol" id="newreplylink_top"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>
    After that, add this:
    Code:
    <vb:if condition="$show['newthreadlink']"><a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top"><span>+</span> {vb:rawphrase post_new_thread}</a></vb:if>
    That should allow them to separate. Will add the permissions check too, i think, cut out the vb:if condition if that doesn't work.
    Reply With Quote
      #14  
    Old 02-02-2010, 06:53 AM
    malcomx malcomx is offline
     
    Join Date: Nov 2007
    Posts: 7
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Thanks
    Reply With Quote
      #15  
    Old 02-22-2010, 09:46 AM
    supportMM supportMM is offline
     
    Join Date: Nov 2006
    Posts: 20
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    GRRRRR worked on this trying anything to get the space in there..... nothing works!!!
    Reply With Quote
      #16  
    Old 02-23-2010, 06:11 PM
    steve1966 steve1966 is offline
     
    Join Date: Dec 2007
    Posts: 504
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    There is a working version of this here

    https://vborg.vbsupport.ru/showthread.php?t=236685
    Reply With Quote
      #17  
    Old 09-06-2013, 02:16 AM
    ozzy47's Avatar
    ozzy47 ozzy47 is offline
     
    Join Date: Jul 2009
    Location: USA
    Posts: 10,929
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    There is a new on here that requires no template edits, https://vborg.vbsupport.ru/showthrea...wpost&t=301929
    Reply With Quote
      #18  
    Old 09-07-2013, 05:42 PM
    DemOnstar's Avatar
    DemOnstar DemOnstar is offline
     
    Join Date: Dec 2012
    Posts: 859
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by ozzy47 View Post
    There is a new on here that requires no template edits, https://vborg.vbsupport.ru/showthrea...wpost&t=301929
    Works for me. 4.2.1
    Reply With Quote
      #19  
    Old 09-07-2013, 06:46 PM
    ozzy47's Avatar
    ozzy47 ozzy47 is offline
     
    Join Date: Jul 2009
    Location: USA
    Posts: 10,929
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Yeah it should work on all vB4 versions.
    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 09:59 PM.


    Powered by vBulletin® Version 3.8.12 by vBS
    Copyright ©2000 - 2025, vBulletin Solutions Inc.
    X vBulletin 3.8.12 by vBS Debug Information
    • Page Generation 0.02468 seconds
    • Memory Usage 2,295KB
    • Queries Executed 25 (?)
    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
    • (2)bbcode_html
    • (1)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
    • (9)post_thanks_box
    • (9)post_thanks_button
    • (1)post_thanks_javascript
    • (1)post_thanks_navbar_search
    • (9)post_thanks_postbit_info
    • (8)postbit
    • (9)postbit_onlinestatus
    • (9)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_display_complete
    • post_thanks_function_can_thank_this_post_start
    • pagenav_page
    • pagenav_complete
    • tag_fetchbit_complete
    • forumrules
    • navbits
    • navbits_complete
    • showthread_complete