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, 12:04 PM   #11
Junior Member
Join Date: May 2006
Tycoon is on a distinguished road

Default

That actually works? How does it know to which database it should add the table etc? Strange..




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

Default

is easy enough m8 - just hoping someone can do an updater - as the hack works fine but it dont add 1 to the counter for any threads that are already in that section.

Cheers Deaths and neils999




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

Default

true that LOL how does it know




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

Default

It didnt work for me, the query bit. When I try to activate it in a forum it just gives me a database error.




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

Default

Quote:
Originally Posted by Tycoon
It didnt work for me, the query bit. When I try to activate it in a forum it just gives me a database error.
whats the error m8




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

Default

Ok, this is the error I get:

MySQL Error : Unknown column 'enable_contrib_counter' in 'field list'
Error Number : 1054

with some other stuff which isn't really related to the hack. This happens when I try to turn the hack on in a forum. It seems that the query did not work




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

Default

looks like it did work - 1054 im sure that is an incompatible error or something

will let one of the experts on here guide u on that




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

Default

Damn, I got a 3.5.x board, hope it will work on that version. Thanks for your help.




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

Default

Quote:
Originally Posted by Tycoon
Damn, I got a 3.5.x board, hope it will work on that version. Thanks for your help.
im on same version as u m8 (vB 3.5.4) and works on mine - but mine is a fresh install - no other hacks installed.




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

Default

This is the PHP file I used:

<?php
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD (contrib VARCHAR(250) NOT NULL DEFAULT '')");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD (enable_contrib_counter VARCHAR(250) NOT NULL DEFAULT '')");
?>

When I try to run in my root directory where the board is located I get this error:

Fatal error: Call to a member function query_write() on a non-object in /var/www/run.php on line 2




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:10 PM.


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