Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-21-2010, 07:53 PM
SolarTalk SolarTalk is offline
 
Join Date: Dec 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do you make seperate columns for "Posts" and "Threads"?

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.
Reply With Quote
  #2  
Old 02-23-2010, 08:00 AM
ltwinnerr ltwinnerr is offline
 
Join Date: Feb 2010
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/showt...vious-versions

I would LOVE to know why they changed it having Posts&Threads in the same column in vb4. Anyone know?
Reply With Quote
  #3  
Old 02-23-2010, 02:08 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SolarTalk View Post
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.)
Reply With Quote
  #4  
Old 02-23-2010, 05:04 PM
ltwinnerr ltwinnerr is offline
 
Join Date: Feb 2010
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 02-23-2010, 07:20 PM
sufilala sufilala is offline
 
Join Date: Feb 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mwahahaha!
i have worked this out, so glad to be able to share the joy
you edit your template: forumhome_forumbit_level1_post

find:
Code:
<li>{vb:rawphrase threads}: {vb:raw forum.threadcount}</li>
<li> {vb:rawphrase posts}: {vb:raw forum.replycount}</li>
remove from between the 2 tags:
Code:
</li>
<li>
& bob's yer uncle

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!!!
Reply With Quote
  #6  
Old 02-25-2010, 09:40 PM
SolarTalk SolarTalk is offline
 
Join Date: Dec 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome!

thanks to everyone for their replies and help

just thought I'd bump this up for others.
Reply With Quote
  #7  
Old 02-27-2010, 05:17 PM
sufilala sufilala is offline
 
Join Date: Feb 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sufilala View Post
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
Code:
<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 [DATE]1267298547[/DATE] at [TIME]1267298547[/TIME] ---------------

like so:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:08 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.06389 seconds
  • Memory Usage 2,223KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete