vBulletin Modifications

[How To] Create forum counters

Welcome to vBHackers.com! - vBHackers Updates:

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

Reply
 
LinkBack Thread Tools
Old 05-17-2006, 01:42 PM   #21
Niels
Support Staff
Niels's Avatar
Join Date: Jun 2004
Real Name: Niels
Location: NL
Niels is on a distinguished road

Default

Sorry my bad, I copy'd it from my plugin file, anyway. Run these query's in your admincp.
You must first be a registered member to view any code.
And:
You must first be a registered member to view any code.
About the delete thread and count - 1 here is what I think must work ( not tested!!).
Add new plugin (hook: threadmanage_deletethread):
You must first be a registered member to view any code.
Also, there are numerous other hook locations where you should place that code, I'll see if I can find them all. See this list:
List of default hooks
for all the hooks in vbulletin. Also maybe LiveWire knows a better way to solve this, instead of adding alot of plugins.
Another option is the calculate the counters using a script, that counts the thread made in each forum, and run that by cronjob. I'll create that soon for you.

Last edited by Niels; 05-17-2006 at 01:49 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 05-17-2006, 02:11 PM   #22
Coder
Join Date: Apr 2004
lasto is on a distinguished road

Default

Quote:
Originally Posted by Niels

About the delete thread and count - 1 here is what I think must work ( not tested!!).
Add new plugin (hook: threadmanage_deletethread):
You must first be a registered member to view any code.
.

threadmanage
threadmanage_action_switch
threadmanage_start
threadmanage_construct_post_tree
threadmanage_openclose
threadmanage_getip
threadmanage_move_start
threadmanage_move_simple
threadmanage_move_redirect_orig
threadmanage_move_redirect_notice
threadmanage_move_copy_threadcopy
threadmanage_move_copy_postcopy
threadmanage_move_complete
threadmanage_update
threadmanage_merge_start
threadmanage_merge_complete
threadmanage_split_start
threadmanage_split_newthread
threadmanage_split_complete
threadmanage_stickunstick
threadmanage_removeredirect
threadmanage_managepost
threadmanage_complete

lo m8 in hook there is no threadmanage_deletethread so cant add the new plugin cause in the drop down box cant find the corresponding hook




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-17-2006, 02:44 PM   #23
Niels
Support Staff
Niels's Avatar
Join Date: Jun 2004
Real Name: Niels
Location: NL
Niels is on a distinguished road

Default

Quote:
Originally Posted by lasto
threadmanage
threadmanage_action_switch
threadmanage_start
threadmanage_construct_post_tree
threadmanage_openclose
threadmanage_getip
threadmanage_move_start
threadmanage_move_simple
threadmanage_move_redirect_orig
threadmanage_move_redirect_notice
threadmanage_move_copy_threadcopy
threadmanage_move_copy_postcopy
threadmanage_move_complete
threadmanage_update
threadmanage_merge_start
threadmanage_merge_complete
threadmanage_split_start
threadmanage_split_newthread
threadmanage_split_complete
threadmanage_stickunstick
threadmanage_removeredirect
threadmanage_managepost
threadmanage_complete

lo m8 in hook there is no threadmanage_deletethread so cant add the new plugin cause in the drop down box cant find the corresponding hook
Holy wtf :| What version are you running?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-17-2006, 02:57 PM   #24
Junior Member
Join Date: May 2006
Tycoon is on a distinguished road

Default

Niels:

Sorry mate but it still isn't working when doing it in Admincp. This is what I get:

Quote:
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '" . TABLE_PREFIX . "forum ADD (enable_contrib_counter VARCHAR(250) NOT NULL DEFA' at line 1




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

Default

Remove the " . TABLE_PREFIX . " part, and replace it with your table prefix if you have one.

Also, please edit your post, don't double post. The thread is kinda messy atm. Thanks.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-17-2006, 03:13 PM   #26
Junior Member
Join Date: May 2006
Tycoon is on a distinguished road

Default

Thank you for the suggestion but I haven't got a Table prefix. By the way, double post?Me? Where?




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

Default

I mean removing it like this:
You must first be a registered member to view any code.
Also, the double post thingy wasn't directed at you, but at everyone.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-17-2006, 03:17 PM   #28
Junior Member
Join Date: May 2006
Tycoon is on a distinguished road

Default

Ok,

Its working now the query bit. This is what I used for anyone getting the same error:

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

Now it seems that its not actually adding post counts

Last edited by Tycoon; 05-17-2006 at 03:51 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-17-2006, 04:37 PM   #29
Niels
Support Staff
Niels's Avatar
Join Date: Jun 2004
Real Name: Niels
Location: NL
Niels is on a distinguished road

Default

Quote:
Originally Posted by Tycoon
Ok,

Its working now the query bit. This is what I used for anyone getting the same error:

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

Now it seems that its not actually adding post counts
Did you enable it in the admincp?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-17-2006, 04:44 PM   #30
Junior Member
Join Date: May 2006
Tycoon is on a distinguished road

Default

Quote:
Originally Posted by Niels
Did you enable it in the admincp?
Where in AdminCP do you mean exactly? I did enable all the hooks and also enabled it Forum Manager when editing one of my forums. Is there another place because I didn't find anything in the "Vbulletin Options".

Thanks for your support.




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
[How To] Run vBulletin On your P.C. Ken Iovino vBulletin Modification Tutorials 81 12-15-2007 02:50 AM
[How To] Run a Query Ken Iovino vBulletin Modification Tutorials 6 08-29-2007 02:23 PM
[How to] Add navigation groups to your admincp left panel Ken Iovino vBulletin Modification Tutorials 11 07-15-2007 11:59 PM
[How To] Add Options per forum Ken Iovino vBulletin Modification Tutorials 10 03-03-2007 03:25 PM
[How To] Run a vb page outside of the forum directory Junior vBulletin Modification Tutorials 7 01-10-2007 07:05 PM


All times are GMT -3. The time now is 09:59 PM.


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