vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   New Thread button when viewing a thread. (https://vborg.vbsupport.ru/showthread.php?t=101116)

flup 11-18-2005 10:00 PM

New Thread button when viewing a thread.
 
I released this one already on vB3.5.0 beta but I now made it a little better.
In the 1st you got a 'new thread' button only on top.
It now also displays on on the bottom of the thread.

The 3.5.0 template mod was quiet popular (60 installs) so
hopefully many people enjoy this one aswel :)

Preview shows enough!

Tony G 11-18-2005 10:44 PM

Always a nifty mod. Thanks for sharing. :)

49er 11-19-2005 01:08 PM

Thank you... :rolleyes:

**installed**

moonclamp 11-19-2005 07:52 PM

How would I make this button not appear if the forum is closed?

BLazeD1 11-19-2005 11:50 PM

Quote:

Originally Posted by moonclamp
How would I make this button not appear if the forum is closed?

me too - then i will install

GNDI 02-15-2006 12:14 AM

Works perfect on vb 3.5.3

Thanks just what i was looking for

Konstantinos 05-06-2006 04:44 AM

i installed in 3.5.4 but the newthread gif is a bit higher than post reply. how to fix ?

GNDI 05-06-2006 07:10 AM

Go to yourdomain.TLD/admincp/template.php?do=modify find the templated called SHOWTHREAD (CaSeSeNsItIvE).

In the SHOWTHREAD find:
PHP Code:

<!-- controls above postbits --> 

Replace the entire table section whit:

PHP Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<
tr valign="bottom">
    <
td class="smallfont"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forumidrel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]border="0" /></a>&nbsp;
    <if 
condition="$show['largereplybutton']"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTIDrel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]border="0" /></if></a></td>
    <else />
        <
td class="smallfont">&nbsp;</td>
    </if>
    <if 
condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
</
tr>
</
table

In the SHOWTHREAD find:
PHP Code:

<!-- controls below postbits --> 

Replace the lines to the first /else: (about three or four lines)
PHP Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<
tr valign="top">
    <
td class="smallfont"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forumidrel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]border="0" /></a>&nbsp;
    <if 
condition="$show['largereplybutton']"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$LASTPOSTIDrel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]border="0" /></if></a></td>
    <else /> 

Remember to note the table preferances at your style template and fit them into this script.

Parker Clack 05-10-2006 12:36 PM

Thanks for this. A lot of my members where asking for it. Is there anyway to write this so if the thread is closed the only thing that shows up is the closed gif? The above replacement still shows the newthread.gif.

Thanks,
Parker

GNDI 05-10-2006 01:22 PM

that might be posible, I'll look at it later.

And I have to emit I haven't notice this my self :)

Dermo-MIO 06-04-2006 11:12 AM

hi can any1 help me, i have made a mistake somewhere and wondering if i can sort this out. you can see my problem in the attached picture

Dermo-MIO 06-05-2006 02:02 PM

iv managed to get rid of the 2nd "new thread" button but cant find the code that is showing up in my template any1 out there ?

FunaGuy 06-09-2006 03:00 PM

Installed and working good
cheers

rajuthan 06-09-2006 10:51 PM

Nice Hack Very Useful

Brandon Sheley 06-21-2006 03:16 PM

thank you
/me clicked instal

Dermo-MIO 06-24-2006 07:46 PM

very dodgy mod as i have posted above iv have problems with it and now i have tried to revert back to the way it was before i edited this template and it gave me a big template warning so there is defnetly trouble with this

stonner 06-26-2006 09:57 AM

thanks, works great.

how can I show the new thread button on the right side?

then the reply button would be left, and the new thread button on the right side.

thank you!

GNDI 07-07-2006 04:47 AM

Quote:

Originally Posted by stonner
thanks, works great.

how can I show the new thread button on the right side?

then the reply button would be left, and the new thread button on the right side.

thank you!

This line should be moved one position (One line down):

Code:

<td class="smallfont"><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;


All times are GMT. The time now is 12:10 AM.

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.04405 seconds
  • Memory Usage 1,777KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete