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

Reply
 
Thread Tools
Add a New Thread Button to Showthread Details »»
Add a New Thread Button to Showthread
Version: 1.00, by Kolbi Kolbi is offline
Developer Last Online: Jan 2022 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.8.x Rating:
Released: 10-12-2009 Last Update: Never Installs: 49
Template Edits Auto-Templates
 
No support by the author.

Search in the template SHOWTHREAD for:
Code:
<if condition="$show['largereplybutton']">
		<td class="smallfont">
and you?ll find it twice and you have to add each time:
Code:
<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forumid" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>&nbsp;
below it.

The attached product is for people who use the TMS.
Product and template edits will be included automatically then.

Please click INSTALL

It will look like:
Demo


Matthias

Download Now

File Type: xml product-kolbi3.xml (1.8 KB, 201 views)

Screenshots

File Type: jpg newthreadbutton1.jpg (92.1 KB, 0 views)
File Type: jpg newthreadbutton2.jpg (31.3 KB, 0 views)

Show Your Support

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

Comments
  #12  
Old 11-08-2009, 02:09 PM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vijayninel View Post
Cool mod... thanks. I put it only for the button below the thread though.

Installed.
Than only add the button below the first search result.
Or I modify the plugin for you.

Please click Installed
Reply With Quote
  #13  
Old 11-10-2009, 12:28 AM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice hacks
Reply With Quote
  #14  
Old 11-10-2009, 03:09 PM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #15  
Old 11-10-2009, 05:30 PM
fatdr fatdr is offline
 
Join Date: Nov 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fine,
a need property for a forum
Reply With Quote
  #16  
Old 11-23-2009, 07:49 PM
RaSa RaSa is offline
 
Join Date: Jan 2009
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm,

I?ve VB 3.8.4 PL1 installed. To make work your Feature I changed your Code into

PHP Code:
<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]border="0" /></a>&nbsp
because I got http://www.mysite.com/newthread.php?do=newthread&f=-1
Reply With Quote
  #17  
Old 11-23-2009, 08:34 PM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RaSa View Post
Hmm,

I?ve VB 3.8.4 PL1 installed. To make work your Feature I changed your Code into

PHP Code:
<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]border="0" /></a>&nbsp
because I got http://www.mysite.com/newthread.php?do=newthread&f=-1
Bug can?t be reproduced... ? Using 3.8.4 pl1 as well?
But glad to hear that you could modify it for yourself.
Reply With Quote
  #18  
Old 06-01-2010, 10:42 PM
obetyance's Avatar
obetyance obetyance is offline
 
Join Date: Jul 2007
Location: Philippines
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sir Kolbi, is there a way to show this in some boards (forumid) only?
Reply With Quote
  #19  
Old 06-02-2010, 06:57 AM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes there is a possibility. Try:
HTML Code:
<if condition="in_array($forum[forumid],array(X, X, X))"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forumid" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>&nbsp;</if>
Replace X, X, X with your Forum ID?s.
Reply With Quote
  #20  
Old 06-06-2010, 12:35 AM
obetyance's Avatar
obetyance obetyance is offline
 
Join Date: Jul 2007
Location: Philippines
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok.

With that example, in the FORUMDISPLAY template, can we replace the NEW THREAD button with another image and link instead of showing both image and link like sample below?

HTML Code:
<tr valign="bottom">
	<td class="smallfont">
		<if condition="in_array($foruminfo['forumid'], array(64,65,66,67,23,24))">
			<a href="misc.php?do=forms" rel="nofollow"><img src="$stylevar[imgdir_button]/newadform.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if>		
		<if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
	<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
is like:

Code:
if
elseif
elseif
endif
Thanks!
Reply With Quote
  #21  
Old 07-03-2010, 12:11 AM
cyb3rgh0st_ cyb3rgh0st_ is offline
 
Join Date: Feb 2010
Location: UK
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks man !!!
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 01:36 PM.


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.05196 seconds
  • Memory Usage 2,349KB
  • 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
  • (3)bbcode_code
  • (2)bbcode_html
  • (2)bbcode_php
  • (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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)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