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

This is so very wonderful! One of the things I was looking for. Thank you!

I now have VB4 Beta 4 and just added this and it works great!
Reply With Quote
  #13  
Old 11-22-2009, 09:48 PM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cabledr View Post
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
but Fast, man

hhhhhhh

Weting for You

thnxxx man
________
Big Tits Round
Reply With Quote
  #14  
Old 11-26-2009, 11:28 AM
cabledr cabledr is offline
 
Join Date: Feb 2008
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

New thread button now shows same size as requested just add the new bit of code to the bottom of showthread.css
Reply With Quote
  #15  
Old 11-26-2009, 11:50 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
New thread button now shows same size as requested just add the new bit of code to the bottom of showthread.css
Thanks that works fine :up: one thing though is slightly out of alignment with the 'Reply to Thread' button, is there a way to fix that ?
Reply With Quote
  #16  
Old 11-26-2009, 11:57 AM
cabledr cabledr is offline
 
Join Date: Feb 2008
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will look at that now it can only be either coding or the .css i added
Reply With Quote
  #17  
Old 11-26-2009, 12:01 PM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much, it looks like this at the moment
Attached Images
File Type: jpg thread.jpg (66.1 KB, 0 views)
Reply With Quote
  #18  
Old 11-26-2009, 12:08 PM
cabledr cabledr is offline
 
Join Date: Feb 2008
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 11-26-2009, 12:18 PM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

perhaps there is a way for the 'reply to thread' icon to be inline with what you have done?

I am happy with it in truth as is, people put so much effort into hacks that sometimes I feel that we are asking to much, so thanks for your efforts
Reply With Quote
  #20  
Old 11-27-2009, 08:21 PM
cabledr cabledr is offline
 
Join Date: Feb 2008
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i will not give up im just trying to finish a bsic thanks mod untill the real one is rereleashed and i have a shoutbox in the works but dont you worry we will sort something
Reply With Quote
  #21  
Old 11-27-2009, 09:22 PM
cabledr cabledr is offline
 
Join Date: Feb 2008
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have a semi thanks button now working just needs a few final touches only issue is cant stop people from thanking there selfs and its all new coding not a modded mod
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 10:23 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.04887 seconds
  • Memory Usage 2,331KB
  • 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
  • (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
  • (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
  • (2)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