vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   New Posting Features - Post New Thread from your post. (https://vborg.vbsupport.ru/showthread.php?t=219443)

newtsys 07-24-2009 10:00 PM

Post New Thread from your post.
 
1 Attachment(s)
This mod was made by me and is very simple and was requested by another friend. Vbulletin has removed the post new thread or topic button in the showthread. As of now you have to go back out of the post and then click new thread.



This mod adds Post New Thread in the tool bar above the post



In your Admincp go to your theme and open the template called SHOWTHREAD and find:



HTML Code:

<!-- toolbar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
 <td class="tcat" width="100%">
  <div class="smallfont">
  <if condition="$show['firstunreadlink']">
  <a href="$firstunread"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[view_first_unread]" border="0" /></a>
  <a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
  </if>
  &nbsp;
  </div>
 </td>



and right after add this in



HTML Code:

<td class="vbmenu_control" id="newthread" nowrap="nowrap"><a href="newthread.php?do=newthread&amp;f=$forum[forumid]"rel="nofollow">$vbphrase[post_new_thread]</a></td>


now save and you have added the post new thread or topic =)


attached is screen shot.

saadessa 07-25-2009 05:13 PM

thank you for this nice hack

H22A 07-25-2009 09:38 PM

where is the code located?
i cant find it !
can tell me the step by step to get the html code
thank you

newtsys 07-26-2009 01:41 PM

Quote:

Originally Posted by H22A (Post 1855386)
where is the code located?
i cant find it !
can tell me the step by step to get the html code
thank you

goto admincp > styles& templates > style manager > yourstyle > edittemplates > SHOWTHREAD

then find the code I provided and right after add in the code provided and save and your done. This will add the function to your toolbar above the post right next to the thread tools. Look at screen shot hope this helps.

Sweeks 07-26-2009 02:50 PM

You seem to be missing the end </td> :) Thanks!

newtsys 07-28-2009 01:40 AM

Yes I did thanks . Has been added now =)

Mellymonster 09-07-2009 03:50 PM

Hey,

I am using this and was wondering if you knew if there was anyway, when you click the "Post New thread" if it can quote the OP of the current thread you are clicking that from?

COL NIL SATIS 09-14-2009 03:53 PM

cool hack...thanks for this!! installed

hyppa 09-21-2009 09:05 AM

Very nice. Thanks.

Would be nice to have : show new threads, too. ;)

Blackbeard02 09-28-2009 06:36 AM

When clicking on "New Thread" with this I am getting
"Invalid Forum specified. If you followed a valid link, please notify the administrator"
Any ideas on how to fix this ?


All times are GMT. The time now is 04:30 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.01141 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete