The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
I have a forum with say 7 sub-forums. Is it possible to show the total posts of these just by their selves on the opening page? Like forumid "Name" Total Posts = 37 FOR EXAMPLE
|
#2
|
||||
|
||||
I don't understand...
Where and what do you want to show? |
#3
|
||||
|
||||
The total number of posts for all 7 sub-forums on the main forum? Or on the main page?
|
#4
|
||||
|
||||
I have a forum with 7 subforums. I have made them invisible because I could not get the color scheme right to match the board because of getting the last thread hack to work with subforums. I didn't want to show all of these sub-forums on the opening page. So like I said I made them invisible. Then in the forumhome template I placed a table to place the link for the hidden sub forums. That way it only takes up one space on the board. This table has the same look as the rest of the board. Same heading color same forum look, and I have a link in it called Latest News Here. When you click it, the 7 subforums open up which shows total threads and total posts in each column for each sub-forum. What I want to do is add all of those subforum posts counts up and display that number on the opening page in the table I have created with the link called Latest News Here, right beside it.
Go to my forums in my signature and look for this at the bottom. Look under here for all information pretaining to WNG listed here. Includes News Releases, Court Proceedings, Raytheon and other. Information Here:Latest News Items Joey |
#5
|
||||
|
||||
Umm, I think that if you put this in your index.php:
PHP Code:
EDIT: Place it somewhere here: PHP Code:
|
#6
|
||||
|
||||
Small problem, I installed your script in index.php and when tried to open forum I got the error below. I then went and put 2 new fields in forum table in database called invpost and invthread but still got error.
There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser. An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists. We apologise for any inconvenience. Database error in vBulletin: Invalid SQL: SELECT count(*) FROM post WHERE forumid=29 mysql error: mysql error number: Date: Saturday 01st of September 2001 02:15:35 AM Script: / Referer: |
#7
|
||||
|
||||
Sorry, forgot the AS part.
Updated my post, the variables are a bit diff as well. |
#8
|
||||
|
||||
Problem still here I placed this index.php
PHP Code:
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists. We apologise for any inconvenience. Database error in vBulletin: Invalid SQL: SELECT count(*) AS posts FROM post WHERE forumid=29 mysql error: mysql error number: Date: Saturday 01st of September 2001 02:24:14 AM Script: / Referer: |
#9
|
||||
|
||||
I added like I said above to the forum table, do you think we need to add fields to the post and thread tables in the database?
|
#10
|
||||
|
||||
NO, don't do that.
I'll try this myself and get back to you. This should work damnit. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|