vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Super quick thread comments system (https://vborg.vbsupport.ru/showthread.php?t=132710)

peterska2 11-27-2006 10:00 PM

Super quick thread comments system
 
This is a really quick modification made by request which changes all posts after the first post into a thread comments system with a minimal postbit only.

Request: https://vborg.vbsupport.ru/showpost.php?p=1127072

Templates to edit: 1 - postbit or postbit_legacy

In your template postbit or postbit legacy

At the very top of the template before anything else

ADD

Code:

<if condition="($thread[forumid] == X) && ($post[postcount] != 1)">
<if condition="($post[postcount] == 2)">
        <div class="smallfont"><a href="newreply.php?do=newreply&noquote=1&p=$post[postid]"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /></a></div>
<div style="padding-top:$stylevar[cellpadding]px"></div>
</if>

<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="tcat">
<span style="float:right">$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if></span>
$post[musername]
</td>
</tr>
<tr>
<td class="alt1">
$post[message]
</td>
</tr>
</table>
<else />

At the very end of the template

ADD

Code:

</if>
Replace the X with the forumid number of the forum that you want to use this in.

Save the template and you are done.

Limitations: This only works in one forum at present, but is useful for replies to announcements or to articles.

Future Changes: If demand is there then a multiple forum version will be made.

Why don't you do this with a plugin? Why make a mountain out of a molehill? If a quick and easy template edit does the job then why go all around the houses writing a plugin to attempt to do the same thing.

Changes since screenshot taken: Added a reply button below the first post.

[high]Permission is NOT given for any ports of this modification[/high]


If you like this modification, please click install. :)

RobParker 11-28-2006 04:14 PM

Superb :D

Thanks a lot :)

Mr Pink 11-28-2006 05:50 PM

Great one! Thanks peterska2!
Maybe I will try it in my local forum. However, I want click 'install', becouse it's a really great mod.

AzH 11-28-2006 07:17 PM

Quote:

Why don't you do this with a plugin? Why make a mountain out of a molehill? If a quick and easy template edit does the job then why go all around the houses writing a plugin to attempt to do the same thing.
Plug ins are great for people who perhaps have several different forum styles and would need to edit templates several times to implement something such as this.

UltraVR 11-29-2006 03:07 PM

This is a wonderful mod!

Would it be too complicated to enable multiple forums for this like you said? I'd love to enable this for all the article related forums I have. I'm not sure how it would work, with an array or a conditional of some sort?

peterska2 11-29-2006 08:00 PM

Quote:

Originally Posted by AzH (Post 1127493)
Plug ins are great for people who perhaps have several different forum styles and would need to edit templates several times to implement something such as this.

And the fact that there are no suitable comments to add a plugin replacement to means that it isn't possible. Of course if you have parent and child styles then you only have to do it once ;)

peterska2 11-29-2006 08:02 PM

Quote:

Originally Posted by UltraVR (Post 1128118)
This is a wonderful mod!

Would it be too complicated to enable multiple forums for this like you said? I'd love to enable this for all the article related forums I have. I'm not sure how it would work, with an array or a conditional of some sort?

I'm going to be changing it for multiple forums for my own site in the next couple of days so I'll do an update when I've done it.

Allan 11-29-2006 08:22 PM

yeeeeh, no bad and good idea, congrat Kerry-Anne ;)

Click Install*

peterska2 11-29-2006 08:23 PM

Thanks Allan :)

ninjamaster 11-30-2006 06:33 AM

thanks for this :)


All times are GMT. The time now is 10:27 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.01310 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_code_printable
  • (3)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