vBulletin Modifications

Really simple, a simple forums counter...

Welcome to vBHackers.com! - vBHackers Updates:

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

Reply
 
LinkBack Thread Tools
Old 04-17-2004, 03:51 AM   #11
Charter Member
Join Date: Apr 2004
Real Name: Alex
Location: Boston, MA
Infamouz Nex is on a distinguished road

Default

wow thanx... i dont seem to understand this part though...

Quote:
place that in any file you want to show the total on.
then in your template for that page call $ttlthreads for total threads and $nwthreads for newthreads.
This is not tested btw and i offer no guarantees
Someone else may well be able to improve on this and I have no problem with them doing so
care to explain in newb terms?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 04-17-2004, 04:16 AM   #12
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

Quote:
Originally Posted by Infamouz Nex
wow thanx... i dont seem to understand this part though...



care to explain in newb terms?
Ok lets assume you want your counts to show on the index page of your forums

place the code somewhere near the bottom of your index.php
before:
You must first be a registered member to view any code.
is prolly best

Now you just gotta decide where you want the totals to show up on your forums index page.

look at forumhome template in admin cp
find $navbar

under it add
You must first be a registered member to view any code.
This is of course is very very basic and will do nothing more than put some numbers under the navbar

My advice would be to play around till you find the right place for it and definately consider at the very least formating to fit your boards text.
You could of course create a template but that would require more additions to the hack.
eg.

creat template called forum_threadcounts

and add the html needed to make your new counts look nice
You must first be a registered member to view any code.
add at bottom of current code from the hack
You must first be a registered member to view any code.
now where ever you decide to put your totals you would add $mythreadcnt


Hope this helps and I appologise in advance if its not very clear this is not something im used to doing for people. Easy when your doing it for yourself hehe




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-17-2004, 04:19 AM   #13
Charter Member
Join Date: Apr 2004
Real Name: Alex
Location: Boston, MA
Infamouz Nex is on a distinguished road

Default

well i guessed right... for some reason i get a error though.... when i add it to the index... btw, nah man thanx ive been asking for this in a lot of places, im very greatful




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-17-2004, 04:26 AM   #14
Charter Member
Join Date: Apr 2004
Real Name: Alex
Location: Boston, MA
Infamouz Nex is on a distinguished road

Default

The error im getting is:

You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-17-2004, 04:35 AM   #15
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

I f*cked the code up sorry
You must first be a registered member to view any code.
Updated previous threads the query should look like that

Have tested now and it does appear to work

Last edited by ShavedApe; 04-17-2004 at 04:40 AM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-17-2004, 04:40 AM   #16
Charter Member
Join Date: Apr 2004
Real Name: Alex
Location: Boston, MA
Infamouz Nex is on a distinguished road

Default

i still and use the AND thing right?

so i do forumid = # AND forumid = # AND blah blah

well i did that and i got this error:

You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-17-2004, 04:42 AM   #17
Charter Member
Join Date: Apr 2004
Real Name: Alex
Location: Boston, MA
Infamouz Nex is on a distinguished road

Default

this is what i got without adding AND and blah blah

You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-17-2004, 04:45 AM   #18
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

ok what I see there is your not getting anything here (IF(lastpost>=
there should be some numbers there.
Make sure you have
$lasthread = $bbuserinfo['lastvisit'];
above the query

I just tested this on my testboard and I saw results




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-17-2004, 04:56 AM   #19
Charter Member
Join Date: Apr 2004
Real Name: Alex
Location: Boston, MA
Infamouz Nex is on a distinguished road

Default

ok good. no more error.... now im just getting 0. theres over 700 threads... what do you think i did wrong? this is the exact code i put in my index:

You must first be a registered member to view any code.
thats right... right?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-17-2004, 04:57 AM   #20
Charter Member
Join Date: Apr 2004
Real Name: Alex
Location: Boston, MA
Infamouz Nex is on a distinguished road

Default

i just noticed it works fine with only 1 forumid... but i need 4 other forums... any ideas?




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
another counter for SA pack Butcher vBulletin Modification Requests 8 01-24-2006 05:24 PM
How to show disable forums in Forum Jump ? teppy vBulletin Modification Requests 0 01-18-2006 02:31 AM


All times are GMT -3. The time now is 04:53 AM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)