The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I came accross this site and was wondering how I can make just my forum categories display all threads and posts in the category bar instead of the sub forum? HTML Code:
http://www.webtalkforums.com/ Thanks! |
#2
|
||||
|
||||
![]()
It isn't a default vbulletin thing. I don't know that I've seen a modification to do it either. But, the code to grab the posts and threads from the forum cache is on the bottom of the index.php page, so it's easy enough to copy and code it yourself.
|
#3
|
|||
|
|||
![]()
What exactly is the code I would need (I can't find it), and would that code display all threads and posts of the categories sub forums?
|
#4
|
|||
|
|||
![]()
have you even looked or just have no idea and trying to get the code without having to do anything
|
#5
|
|||
|
|||
![]()
I see this.. yes..
HTML Code:
$totalthreads = vb_number_format($totalthreads); $totalposts = vb_number_format($totalposts); Do you know what template i would edit to have it placed into the category bar? |
#6
|
||||
|
||||
![]()
This is the full code used to get the total post and thread count. You need to modify it for your own purposes.
PHP Code:
|
#7
|
|||
|
|||
![]() Quote:
![]() Do you know what template I would edit to have it placed into the category bar? (I am assuming I can edit the template via the admin panel in style manager?) |
#8
|
||||
|
||||
![]()
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.
|
#9
|
|||
|
|||
![]()
So far no luck
![]() After lots of research I see that "forumhome_forumbit_level1_nopost" seems to be the template to edit so that i can make my category bar display total threads and posts of its sub-forums. (just to the left of the category collaps image) but when I added the PHP code into the template (forumhome_forumbit_level1_nopost) it gave me an error and didn't work.. PHP Code:
NOTE: (Here is an example of what I would like my category bar(s) to look like...) __________________________________________________ ______________________ [__Category_Title___________________________Threads : X,XXX, Posts: XX,XXX__[^]_] ** Threads: X,XXX, Posts: XX,XXX = Total amount of Threads and Post from all sub-forums of the category. ** [^] = category collapse image |
#10
|
||||
|
||||
![]()
You cannot put php in a template. You need to put the php into a plugin and then put the results from the plugin into your template.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|