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 :)


All times are GMT. The time now is 07:42 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.01964 seconds
  • Memory Usage 1,762KB
  • 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
  • (4)bbcode_php_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