View Full Version : How do you make seperate columns for "Posts" and "Threads"?
SolarTalk
02-21-2010, 07:53 PM
One of the features that I like in previous versions is that it shows two separate columns for "threads" and "posts" for each forum instead of looking like this:
Threads: 999
Posts: 9999
How would i go about implementing this in v4?
I would also like to do this for the replies/views as well.
Thanks in advance.
ltwinnerr
02-23-2010, 08:00 AM
This is essential for me too. I think having Posts & Threads in the same columns looks way too cluttered and is just a bad idea. I'm hoping the VB team put in an option to display it like the old way or else some here makes a mod to do it. There is a thread or two on this issue on vb.com. Post there to show some support for this issue - here's one http://www.vbulletin.com/forum/showthread.php?342777-Threads-Posts-and-Replies-Views-in-separate-columns-like-previous-versions
I would LOVE to know why they changed it having Posts&Threads in the same column in vb4. Anyone know?
Lynne
02-23-2010, 02:08 PM
How would i go about implementing this in v4?
I would also like to do this for the replies/views as well.
Thanks in advance.
You would have to modify the template.
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)
ltwinnerr
02-23-2010, 05:04 PM
Do you know why they changed it in the first place? It is a huge change in appearance, does anyone else prefer the old way?
sufilala
02-23-2010, 07:20 PM
mwahahaha!
i have worked this out, so glad to be able to share the joy
you edit your template: forumhome_forumbit_level1_post
find:
<li>{vb:rawphrase threads}: {vb:raw forum.threadcount}</li>
<li> {vb:rawphrase posts}: {vb:raw forum.replycount}</li>
remove from between the 2 tags:
</li>
<li>
& bob's yer uncle :D
however, next up you will need to change the width of the div that those stats sit in, otherwise, as you will see, it looks mucky
which you can do in: forumbits.css (also to be found in the template editor)
there are % values in the css for each of the 4 'columns'
forum title & description - foruminfo - 57%
rss button - forumactionlinks - 5%
forumstats - forumstats - 12% <-that's the one you want!
last post & poster - forumlastpost - 22%
if you mess about with those you can make space for your stats to be displayed neatly on one line,
when you've done that we can get started on sorting out the muddle that is forumlastpost!!!
SolarTalk
02-25-2010, 09:40 PM
awesome!
thanks to everyone for their replies and help :)
just thought I'd bump this up for others.
sufilala
02-27-2010, 05:17 PM
when you've done that we can get started on sorting out the muddle that is forumlastpost!!!
here's the rest of it:
this is your forumhome_lastpostby template
<vb:if condition="$show['lastpostinfo']">
<span class="lastposttitle">
<vb:if condition="$show['icon']"><img src="{vb:raw icon.iconpath}" alt="{vb:raw icon.title}" border="0" /></vb:if>
<vb:if condition="$lastpostinfo['prefix']">{vb:raw lastpostinfo.prefix}</vb:if>
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_newpost}}#post{vb:raw lastpostinfo.lastpostid}" class="threadtitle" title="{vb:rawphrase go_first_unread_in_thread_x, {vb:raw lastpostinfo.lastthread}}">{vb:raw lastpostinfo.trimthread}</a>
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_newpost}}#post{vb:raw lastpostinfo.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
</span> <span class="lastpostby">
<vb:if condition="$lastpostinfo['lastposterid']">
{vb:rawphrase by_x_memberaction, {vb:raw memberaction_dropdown}}
<vb:else />
{vb:rawphrase by_x_guest, {vb:raw lastpostinfo.lastposter}}
</vb:if>
</span> <span class="lastpostdate">{vb:raw lastpostinfo.lastpostdate} <vb:if condition="!$show['detailedtime']">{vb:raw lastpostinfo.lastposttime}</vb:if></span>
<vb:else />
<span class="lastpostdate">{vb:raw lastpostinfo.lastpostdate} <vb:if condition="!$show['detailedtime']">{vb:raw lastpostinfo.lastposttime}</vb:if></span>
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_newpost}}#post{vb:raw lastpostinfo.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
</vb:if>
you'll also need to change the size of the icon and it's holder in stylevars forumicon_size & forumiconbox_size
enjoy!!
--------------- Added 1267298547 at 1267298547 ---------------
like so:
https://vborg.vbsupport.ru/attachment.php?attachmentid=111746&d=1265505275
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.