vBulletin Modifications

Thread counter for Users

Welcome to vBHackers.com! - vBHackers Updates:

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

Reply
 
LinkBack Thread Tools
Old 04-22-2004, 03:53 PM   #1
Charter Member
Join Date: Apr 2004
Real Name: Alex
Location: Boston, MA
Infamouz Nex is on a distinguished road

Default Thread counter for Users

a Thread counter for Users, like i assign to just count the threads users have made in assign forums... any idea guys? it would show up in their member profile and in their show threads...




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

Default

create another field in user table
eg.
threadsbyuser int(10) unsigned NOT NULL default '0',
then in functions_newpost.php

find
You must first be a registered member to view any code.
alter that or copy and modify
Assuming your new field is called threadsbyuser

You must first be a registered member to view any code.
This is untested but i dont see any reason why it would not work

Try it on a test board and then check in phpmyadmin to see if the count went up




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

Default

=/ dont really undersatnd man...




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

Default

what dont you understand ?
the code you need is there
All you have to do is run an sql query
then test by creating a thread in the forum you set
then check your dbase using phpmyadmin
look at usertable find the nwely created feild and see if the count has increased by 1
most server hosts have phpmyadmin installed if not I suggest you get it and put it on your self its a very usefull tool especially if your going to hack up your vbulletin

Or you can use the sql query option in vbulletin i guess. Though I gotta say i have never tried that and I guarantee it wont be as easy to see whats happened that way.

Last edited by ShavedApe; 04-22-2004 at 07:38 PM.




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

Default

well you saying go to phpmyadmin (yes i have it, and i tried that) and punch this in:

threadsbyuser int(10) unsigned NOT NULL default '0',

?

in the user table of course, so it can create another field in there right?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-22-2004, 07:49 PM   #6
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

Quote:
Originally Posted by Infamouz Nex
well you saying go to phpmyadmin (yes i have it, and i tried that) and punch this in:

threadsbyuser int(10) unsigned NOT NULL default '0',

?

in the user table of course, so it can create another field in there right?
no they are the settings

on left side click user

on right side scroll down till you find something that looks like

Add new field : 1 At End of Table GO

click that then use the settings above

then once you added the code and tested with a post come back to user table click user again
click browse on right side
find the user who made the post
scroll to the right and the last field will be the new one and for the user who posted it should of gone up by one




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

Default

ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh ok.... you see.... thanx for your patiences, Nex has learned something new today. *wink*




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

Default

now editing that, aint that easy dude... quick run up on it... :xeye: :blush:




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-03-2004, 03:22 AM   #9
vBulletin Guru
Ken Iovino's Avatar
Join Date: Mar 2004
Real Name: Ken Iovino
Location: Miami, Florida
Ken Iovino is on a distinguished road

Default

Here what i did.
I ran this query
[sql]ALTER TABLE `user` ADD `threadsbyuser` INT(10) UNSIGNED DEFAULT "0" NOT NULL;[/sql]

then In 'includes/functions_newpost.php'
I found :
You must first be a registered member to view any code.
And replaced with:
You must first be a registered member to view any code.
I made a new post in forumid 2 and then went and looked at the 'threadsbyuser' feild in table 'user' and the count did not go up. Anything i did wrong?




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

Default

bump




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
Comment hack using thread from forum kkiely vBulletin Modification Requests 1 08-06-2005 06:32 AM
Just got the Thread Count Hack by TouchingVirus Infamouz Nex General vBulletin Support 7 04-26-2004 01:38 AM
Thread Counter Nemesis1386 vBulletin Modification Requests 4 04-18-2004 01:50 PM


All times are GMT -3. The time now is 05:11 AM.


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