Back to vBulletin 4.x Template Modifications

Post New Thread Button
Mod Version: 4.00, by princeedward

vB Version: 4.0.x Rating: (22 votes - 4.73 average) Installs: 147
Released: 23 Feb 2010 Last Update: 24 Feb 2010 Downloads: 253
Not Supported Template Edits Code Changes Re-usable Code  


Post New Thread Button To Showthread
Above, Below / Closed, Open Thread
(Tested To Default vB Skin Style And FF/IE Browser Only!)


Again...What Is This?
This is a simple and more better way to add the same Post New Thread Button to showthread page...to a closed and open thread...above and below with you to decide the space and adjust...

PROCEDURES/INSTALLATION:
[Pls. Read Clearly Or If You Need Reading Glass (Wear It First) And Follow The Steps Below

NOW GO:

ACP > Styles & Templates > Search in Templates > Search in Style:Click Dropdown Arrow (Choose Actual Style)> Search for Text: SHOWTHREAD > Search Titles Only: YES > Click Find


NOW SELECT SHOWTHREAD TO OPEN!

======================================
1: ADDING POST NEW THREAD BUTTON ABOVE!
======================================

FIND THIS CODE:

Code:
<div id="above_postlist" class="above_postlist">
		<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>
ADD BELOW:

Code:
<!--- POST NEW THREAD BUTTON ABOVE START --->
<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:10px;"><span>+</span> {vb:rawphrase post_new_thread}</a>
<!--- POST NEW THREAD BUTTON ABOVE END --->
==================================
NOTE: ADJUST THE RED ONE IF NEEDED!
==================================

======================================
2: ADDING POST NEW THREAD BUTTON BELOW!
======================================

NOW GO DOWN BELOW AND SEARCH/FIND THIS CODE:

Code:
<div id="below_postlist" class="below_postlist">
	<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_bottom">
<vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>

ADD BELOW:

Code:
<!--- POST NEW THREAD BUTTON BELOW START --->
<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:160px;"><span>+</span> {vb:rawphrase post_new_thread}</a>
<!--- POST NEW THREAD BUTTON BELOW END --->
==================================
NOTE: ADJUST THE RED ONE IF NEEDED!
==================================

SPECIAL NOTE:
Now you will notice that something is not right... the Post New Thread or Reply To Thread Button is quite larger or bigger than the others (Because Of The Font Size!)
Now you want to have it all the same size...which is more better to see...right?

NOW GO TO EDIT THAT BUTTON:

ACP > Styles & Templates > Search in Templates > Search in Style:Click Dropdown Arrow (Choose Actual Style)> Search for Text: vbulletin-chrome.css > Search Titles Only: YES > Click Find

NOW GO SELECT vbulletin-chrome.css TO OPEN

Search in Template: .newcontent_textcontrol span { Click Find:

OR LOOK/FIND THIS CODE:

Code:
}
.newcontent_textcontrol span {
	font-size:15px;
	font-weight:bold;
	display:inline;
}

CHANGE/ADJUST THE RED INTO: 10-12px

SAVE AND RELOAD FOR A TEST IF NOT OKAY ADJUST MORE:

UNTIL OKAY....SAVE AND ENJOY!

========================================================
NOTE: IF YOU INSTALLED THE MOD BELOW DONT SET THE BUTTON SETTINGS TO BE INVISIBLE (OTHERWISE YOU WILL NOT SEE THIS)!

ADVANCE REPLY FOR QUICK REPLY
========================================================

NOTE:
If Anyone Can Make It More Better In Any Way (Xml Product) On This..Feel Free To Submit Your Modification Here....

Hope You Like It And Find This Useful To Your Website!
If You Use This Mod; Please Don't Forget To:
  • Click "Mark as Installed"
  • Leave Any Comment By Saying Thanks! or Anything! (Not Just Read, Use And Go)
  • Rate
  • Nominate


"Hey Smart, If You Think You Can Make Better, Just Create One, Release And Share It To All For Free...
If It's Useless, Bad Idea For You...Don't Like It...Don't Bother To Leave Any Comment Below"...
Just Hit The Road Jack!



SPECIAL THANKS AND CREDIT FOR THE GOOD IDEA AND HELP, ALSO GOES TO:

  • shadowgfx (For His Original But Incomplete Mod HERE)
  • s810car (For Good Suggestion HERE

    Spoiler (click to open)


    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.

    Close
    )
  • Lynne (For Never Ending Assistance Who Always There Behind Us And Without Waiting For Anything From Us...)


Good Day...Thanks And Best Regards To All

Download

File Type: %1$s Post_New_Thread_Button_Info.txt (5.4 KB, 259 downloads)

Screenshots

Click image for larger version
Name:	post_new_thread_button_above.png
Views:	2856
Size:	4.5 KB
ID:	112871   Click image for larger version
Name:	post_new_thread_button_below.png
Views:	1601
Size:	4.0 KB
ID:	112872   Click image for larger version
Name:	post_new_thread_button_closed_above.png
Views:	1203
Size:	4.6 KB
ID:	112873   Click image for larger version
Name:	post_new_thread_button_closed_below.png
Views:	1113
Size:	3.4 KB
ID:	112874  

Similar Mods

Forum Display Enhancements New button when new thread/post is made vBulletin 3.8 Template Modifications
Show Thread Enhancements New Thread Button on post viewing vBulletin 4.x Template Modifications

vblts.ru supports vBulletin®, 2022-2024