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

Reply
 
Thread Tools
Post New Thread Button Details »»
Post New Thread Button
Version: 4.00, by princeedward princeedward is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.x Rating:
Released: 02-22-2010 Last Update: 02-23-2010 Installs: 147
Template Edits
Re-useable Code Code Changes  
No support by the author.


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)
  • 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 Now

File Type: txt Post_New_Thread_Button_Info.txt (5.4 KB, 257 views)

Screenshots

File Type: png post_new_thread_button_above.png (4.5 KB, 0 views)
File Type: png post_new_thread_button_below.png (4.0 KB, 0 views)
File Type: png post_new_thread_button_closed_above.png (4.6 KB, 0 views)
File Type: png post_new_thread_button_closed_below.png (3.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
crazyboy1661

Comments
  #12  
Old 02-24-2010, 07:33 AM
OturanBoğa OturanBoğa is offline
 
Join Date: Nov 2008
Location: Istanbul
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.
Reply With Quote
  #13  
Old 02-24-2010, 12:38 PM
GeorgeB85 GeorgeB85 is offline
 
Join Date: Nov 2008
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by princeedward View Post
hi there....this is impossible...we together of my members are using this without problem...this is something to do with adding maybe a conditional...maybe try to add this...

Show only members:

Code:
<vb:if condition="$show['member']">CODE HERE!</vb:if>
I used only this code

Quote:
<!--- 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 --->
I even tried doing it with out the <!--- POST NEW THREAD BUTTON ABOVE START ---> parts but no luck.

PS. I tried the code you suggested just now too, and still no luck.
Reply With Quote
  #14  
Old 02-24-2010, 02:52 PM
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Location: Liverpool UK
Posts: 802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks great..will vote and install tonight..thanks for sharing this Edward
Reply With Quote
  #15  
Old 02-24-2010, 04:07 PM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GeorgeB85 View Post
I used only this code



I even tried doing it with out the <!--- POST NEW THREAD BUTTON ABOVE START ---> parts but no luck.

PS. I tried the code you suggested just now too, and still no luck.
what vb version do you have...and if you want me to take a look and do it for you myself i am willing to help you out...just give me access via pm...well its for you to decidde if you will trust me...other than that i have no idea why is it not workin to your side only...sorry about that...

Reply With Quote
  #16  
Old 02-24-2010, 08:04 PM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dr.osamA View Post
thanxx man

sorry i forgat install

now it is ok
nothing to say sorry man...glad it works now...thanks also for the marked installed...nominate and rate....

:up:
Reply With Quote
  #17  
Old 02-25-2010, 06:46 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GeorgeB85 View Post
I installed this following the directions, but for some reason the button and reply button are now only showing to unregistered members. Any idea how to make it to show to registered members?
problem solved now...view my post to your site...and thanks for the trust you gave me to your admincp access...
well found out that...one mod has a conflict with all of your buttons...

best regards and goodluck to your site...pls. click installed-nominate and rate...

:up:
Reply With Quote
  #18  
Old 02-25-2010, 06:46 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

UPDATE:

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

ADVANCE REPLY FOR QUICK REPLY
================================================== ======
Reply With Quote
  #19  
Old 02-25-2010, 12:13 PM
GeorgeB85 GeorgeB85 is offline
 
Join Date: Nov 2008
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by princeedward View Post
problem solved now...view my post to your site...and thanks for the trust you gave me to your admincp access...
well found out that...one mod has a conflict with all of your buttons...

best regards and goodluck to your site...pls. click installed-nominate and rate...

:up:
Just wanted to say thanks. I posted to the thread for the mod that is giving the conflict to see if that coder can fix his mod so none of the other buttons get effected.

Thanks for your help.

PS. Thanks to PrinceEdwards help, both mods are now working just fine. In the mod that was causing the conflict, it was a simple fix. I did not realize that the advance reply mod I use, has an option to hide the reply button. I set this to no, and now things work just fine.
Reply With Quote
  #20  
Old 02-26-2010, 10:44 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GeorgeB85 View Post
Just wanted to say thanks. I posted to the thread for the mod that is giving the conflict to see if that coder can fix his mod so none of the other buttons get effected.

Thanks for your help.

PS. Thanks to PrinceEdwards help, both mods are now working just fine. In the mod that was causing the conflict, it was a simple fix. I did not realize that the advance reply mod I use, has an option to hide the reply button. I set this to no, and now things work just fine.
glad too George that we solved the problem...thanks also for

Marked Installed-Nominate-Rate


:up:
Reply With Quote
  #21  
Old 02-28-2010, 01:28 PM
Huy Ho?ng Huy Ho?ng is offline
 
Join Date: Dec 2008
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Error

Attached Images
File Type: jpg error.jpg (32.9 KB, 0 views)
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 10:29 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.09338 seconds
  • Memory Usage 2,365KB
  • Queries Executed 26 (?)
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_code
  • (7)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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