vBulletin Modifications

Topic count

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 08-07-2006, 04:04 PM   #1
vB User
Join Date: Mar 2006
Real Name: Eric
Location: Netherlands
eric22269 is on a distinguished road

Default Topic count

I don't know if there's a hack for this, but what I would like is a way to see how many topics someone has opend in specified forums.

So I would like to know if something like this exists or if I have to make it myself, and if someone is willing to give me some pointers if I have to make it myself.

Options I would like:
- admincp option to specify the forums
- add 1 topic count to total when a new topic is opened in 1 of the specified forums
- remove 1 topic count if topic is removed by hand
- Make the topic count appear in postbit (is easy to do)

I think this is all, hope you guys understand what I mean.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 08-07-2006, 04:13 PM   #2
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

The way you put it is making it to hard. if you look into the database then you can see their is a thread starter column. All you need to do is:
You must first be a registered member to view any code.
If you did it that way then you can add some more code to make it all work. or you could do it like this:
You must first be a registered member to view any code.
and then you can just put $post[topicsstarted in the postbit and it SHOULD work. Not quite shore where to put it though. Maybe someone else can help you with that.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-07-2006, 04:22 PM   #3
vB User
Join Date: Mar 2006
Real Name: Eric
Location: Netherlands
eric22269 is on a distinguished road

Default

That's pretty handy, but than it will show all the topics started, but my problem is that I don't want every topic the started to show but only those in specified forums.

But if the already keep track of the topics started I can make a if so it will only insert when the forum number matches. Can you tell me where I can find the code that insert the threadcounter into the database?

And if I can't figure it out I gues I can always disable post counts for all the forums in which I don't want the topics to count (if that makes sense)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-07-2006, 04:26 PM   #4
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

That should be relatvely easy. You just have to add some more info to the WHERE.

You must first be a registered member to view any code.
The just change X,Y and Z into the forum id's that you want. If you want any extra just add: AND thread.forumid =N to the end of the query.

Why do you want to insert it into the database? You would have to update the value every time a user posts a topic and it would be more efficient to use this method.

Last edited by Nick R; 08-07-2006 at 04:45 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-07-2006, 05:03 PM   #5
vB User
Join Date: Mar 2006
Real Name: Eric
Location: Netherlands
eric22269 is on a distinguished road

Default

This is better, but I didn't know the kept it like this.

But I now get an error.

You must first be a registered member to view any code.
any idee what I'm doing wrong here




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-07-2006, 05:05 PM   #6
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

post username doesn't work (not much of a surprise.) What hook location are you using?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-07-2006, 05:08 PM   #7
vB User
Join Date: Mar 2006
Real Name: Eric
Location: Netherlands
eric22269 is on a distinguished road

Default

I don't know what a hook location is, but I put the code in showthread.php and try to get the data with postbit.

I don't know if that's how this is supposed to be done, but this is the part I'm really bad in.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-07-2006, 05:12 PM   #8
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

oh. Well that probably wasn't the best idea. Hang on.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-07-2006, 05:30 PM   #9
vB User
Join Date: Mar 2006
Real Name: Eric
Location: Netherlands
eric22269 is on a distinguished road

Default

haha I thought so, I'll hang on




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-07-2006, 05:31 PM   #10
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

actually don't hang on. I'm kinda doing something else at the mo (+i am stumped :p) It would go in a plugin.... Just find the right one...




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
Remove thread/post count on Forumhome Butcher vBulletin 3.5 / 3.6 Template Releases 5 07-13-2006 01:13 PM
On Topic vs Off Topic postings Rex Growing Your vB Forum 1 05-25-2006 03:40 PM
Exclude forum from post count CarpHunter vBulletin Modification Requests 3 05-17-2005 03:29 PM
Mods/admins make thread have no post count Keyser Söze vBulletin Modification Requests 2 09-09-2004 01:33 PM
Just got the Thread Count Hack by TouchingVirus Infamouz Nex General vBulletin Support 7 04-26-2004 02:38 AM


All times are GMT -3. The time now is 07:20 AM.


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