peterska2
11-27-2006, 10:00 PM
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
<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
</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.
Permission is NOT given for any ports of this modification
If you like this modification, please click install. :)
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
<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
</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.
Permission is NOT given for any ports of this modification
If you like this modification, please click install. :)