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

Reply
 
Thread Tools
New Thread Button on post viewing Details »»
New Thread Button on post viewing
Version: 2.00, by cabledr cabledr is offline
Developer Last Online: Oct 2014 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.0 Beta 3 Rating:
Released: 11-18-2009 Last Update: Never Installs: 22
Template Edits
Re-useable Code Translations  
No support by the author.

I find that members post more when there is a post new thread option after they have posted / when there reading thread so i have done the following with a little bit of help from Lynne (thanks)

Go to the Showthread template :

First find :

HTML Code:
<a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}" 
class="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>
			<img style="display:none" id="progress_newreplylink_top" src="images/misc/progress.gif"  alt="" />
then after add :

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

HTML Code:
<a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}" 
			class="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>
Then after add :

HTML Code:
&nbsp <span style="padding-left:140px">
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="textcontrol" id="newthreadlink_bottom"><span>+</span> {vb:rawphrase post_new_thread}</a></span>
UPDATE

Make the new thread button bigger as requested

Go to > Showthread.css

At the very bottom add >

HTML Code:
#newthreadlink_top, #newthreadlink_bottom {
	background: {vb:stylevar control_content_background};
	-moz-border-radius: {vb:stylevar control_content_radius};
	-webkit-border-radius: {vb:stylevar control_content_radius};
	-moz-box-shadow: 0 3px 8px #e1e1e1;
	-webkit-box-shadow: 0 3px 8px #e1e1e1;
	font: {vb:stylevar control_content_font};
	color: {vb:stylevar control_content_color};
	padding: {vb:stylevar control_content_padding};
	display:inline-block;
	clear:both;
}
#newthreadlink_top span, #newthreadlink_bottom span {
	font-size:15px;
	font-weight:bold;
	display:inline;
}
#newthreadlink_top:hover, #newthreadlink_bottom:hover {
	background: {vb:stylevar control_content_hover_background};
}
Screen shot attached (new one coming )

Screenshots

File Type: jpg screenshot.jpg (41.7 KB, 0 views)

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 11-19-2009, 04:32 PM
steve1966 steve1966 is offline
 
Join Date: Dec 2007
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks will give it a try
Reply With Quote
  #3  
Old 11-19-2009, 05:33 PM
erel34's Avatar
erel34 erel34 is offline
 
Join Date: Dec 2007
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #4  
Old 11-19-2009, 06:40 PM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The second code is not XHTML valid. There´s an open span tag that is not closed.
Reply With Quote
  #5  
Old 11-19-2009, 07:22 PM
cabledr cabledr is offline
 
Join Date: Feb 2008
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry bit confused by your reply i only put that in to move it away from new reply and as far as i knew that was correct coding if you can improve it please let me know and i will change it
Reply With Quote
  #6  
Old 11-20-2009, 09:14 AM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cabledr View Post
sorry bit confused by your reply i only put that in to move it away from new reply and as far as i knew that was correct coding if you can improve it please let me know and i will change it
Code:
&nbsp <span style="padding-left:140px">
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="textcontrol" id="newthreadlink_bottom"><span>+</span> {vb:rawphrase post_new_thread}</a></span>
Reply With Quote
  #7  
Old 11-20-2009, 12:59 PM
mbc100 mbc100 is offline
 
Join Date: Feb 2009
Location: K.S.A
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It will be easy
Reply With Quote
  #8  
Old 11-20-2009, 01:32 PM
cabledr cabledr is offline
 
Join Date: Feb 2008
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kolbi View Post
Code:
&nbsp <span style="padding-left:140px">
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw thread.forumid}" rel="nofollow" class="textcontrol" id="newthreadlink_bottom"><span>+</span> {vb:rawphrase post_new_thread}</a></span>
thanks i will change mod
Reply With Quote
  #9  
Old 11-22-2009, 02:41 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, man

I will try

but in the attached photo shows a small button
________
Ferrari 250 Tr 61 Spyder Fantuzzi
Reply With Quote
  #10  
Old 11-22-2009, 07:50 AM
cabledr cabledr is offline
 
Join Date: Feb 2008
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it shows a small button at the moment im trying to find the correct way to make it show a big button but should just be a simple edit to change size
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 06:41 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.04938 seconds
  • Memory Usage 2,321KB
  • 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
  • (2)bbcode_code
  • (5)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
  • (2)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
  • (1)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