vBulletin Modifications

Need a snippet of code

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > vBulletin Modification Requests

Reply
 
LinkBack Thread Tools
Old 05-25-2006, 09:58 AM   #1
Coder
Join Date: Apr 2004
lasto is on a distinguished road

Default Need a snippet of code

if u go to vbulletin showcase on thsi board it says there are 77 threads in that section

all i need is the phrase that calls in that code.

As on my board i have a cover section and i want to add stats to top of board to say something like this :

Covers : 200
Labels : 135

because it takes the count from what is already there if u follow me.
So basically need the phrase and the forumid code as there is 3 forums i want to get the code from




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 05-25-2006, 02:11 PM   #2
Coder
Junior's Avatar
Join Date: Nov 2004
Real Name: jr
Location: U.S.A
Junior is on a distinguished road

Default

i believe from the top of my head the data is stored in the "forums" table dont remember the exatc row but check it there your query will be something ike
SELECT 'row that has the count' FROM `forums` WHERE `forumid` = 'id number'

should not be more complicated then that




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 03:35 PM   #3
Coder
Join Date: Apr 2004
lasto is on a distinguished road

Default

nay thats an actual query - the thing is the code is already been called as it shows on forumhome inside the tables - all i need is the code so i can print it at the top of the board.
I had the code which someone gave me before which was for vb3 gold but i upgraded to vb3.5.4 and i forgot to get the code before i did it.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 06:28 PM   #4
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Can you give us the code you use? (the one calling it)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2006, 07:44 AM   #5
Coder
Join Date: Apr 2004
lasto is on a distinguished road

Default

i cant give u the code as i need the code myself

look at the pic which i took off this board - the arrow points to the number of threads in a section.Since this is already called all i need is the code to re-call it again at tthe top of my board.
Attached Images
File Type: gif 1.gif (6.7 KB, 10 views)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2006, 08:01 AM   #6
Advanced Coder
Niels's Avatar
Join Date: Jun 2004
Real Name: Niels
Location: NL
Niels is on a distinguished road

Default

I think it would be a problem, because it's called in the forumhome template and not the header template. So the var won't be present there.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2006, 08:45 AM   #7
Coder
Join Date: Apr 2004
lasto is on a distinguished road

Default

is possible - cheers to all who helped but its solved now- was just a line of code i needed and MarcoH64 solved it for me.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2006, 08:53 AM   #8
Coder
Junior's Avatar
Join Date: Nov 2004
Real Name: jr
Location: U.S.A
Junior is on a distinguished road

Default

you have to use that query if you want that info displayed anywhere else then it currently is because the forumid must be specefied you cant just do $forumcount or w/e and expect it to get the info it wont know what forumid your talking about so you add the query in the php the call to it via a template hope that makes sense to you




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2006, 10:53 AM   #9
Coder
Join Date: Apr 2004
lasto is on a distinguished road

Default

no need to call php m8

all solved here with one line of code which goes in forumhome template

http://www.vbulletin.org/forum/showthread.php?t=116622




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please give me Shopbank Code, I need it !!! Green_Masala General vBulletin Support 0 11-27-2005 12:49 AM
VBB code post file "wmv" for vbb 3.0.9 xmylove General vBulletin Support 0 10-05-2005 03:06 AM
Code Tag - Code Box Size A-FXP-D3LTA General vBulletin Support 2 04-16-2005 10:02 AM


All times are GMT -3. The time now is 03:58 PM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)