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
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
  #22  
Old 12-05-2009, 11:10 AM
bluidkiti bluidkiti is offline
 
Join Date: Dec 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi cabledr, I sent you a pm.
Reply With Quote
  #23  
Old 12-14-2009, 09:49 AM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe change size in the the CSS file?
Reply With Quote
  #24  
Old 12-22-2009, 10:17 AM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cabledr View Post
At the moment only way i can get them in a sort of inline mode is one above the other what in my eyes dont look as nice
Can you post up this way, as its a lot more out of line now that 4.0 gold has come out.

Thanks for sharing this :up:
Reply With Quote
  #25  
Old 12-22-2009, 10:37 AM
bluidkiti bluidkiti is offline
 
Join Date: Dec 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can get the top section to line up by doing this:

In SHOWTHREAD template:

After:
Code:
{vb:rawphrase reply_to_thread}
Add:
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>

I can't get the bottom one to work right yet. I also would like to put a space between the 2 buttons but putting
Code:
&nbsp;
between them doesn't seem to work.
Reply With Quote
  #26  
Old 12-22-2009, 11:14 AM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bluidkiti View Post
I can get the top section to line up by doing this:
Okay that worked, the only thing is, I got two post a new thread on the top now lol , also perhaps if we can remove the bottom ciompletely for now it might good, do you know how to do that?

Thanks by the way
Reply With Quote
  #27  
Old 12-22-2009, 11:16 AM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry figured them both out, thanks for the tips
Reply With Quote
  #28  
Old 12-22-2009, 02:12 PM
Cableguy69 Cableguy69 is offline
 
Join Date: Apr 2008
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bluidkiti View Post
I can get the top section to line up by doing this:

In SHOWTHREAD template:

After:
Code:
{vb:rawphrase reply_to_thread}
Add:
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>

I can't get the bottom one to work right yet. I also would like to put a space between the 2 buttons but putting
Code:
&nbsp;
between them doesn't seem to work.
A quick fix to get around that would be to make a small transparent image upload it to say images/misc and use <img src="images/misc/transparent_spacer.png> between the 2 buttons.
Reply With Quote
  #29  
Old 12-24-2009, 07:37 AM
bluidkiti bluidkiti is offline
 
Join Date: Dec 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by taffy056 View Post
Sorry figured them both out, thanks for the tips
Did you get the bottom one so it is inline also? If so, how did you do this?
Reply With Quote
  #30  
Old 01-07-2010, 12:18 AM
alpertunga688 alpertunga688 is offline
 
Join Date: Dec 2007
Location: England
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #31  
Old 08-23-2010, 07:39 AM
giorgino giorgino is offline
 
Join Date: Dec 2009
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod conflict with Facebook button (I Like).
Can you update?
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 06:36 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.05342 seconds
  • Memory Usage 2,338KB
  • Queries Executed 27 (?)
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
  • (5)bbcode_html
  • (4)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
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)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
  • 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