vBulletin Modifications

Counter Hack

Welcome to vBHackers.com! - vBHackers Updates:

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

Reply
 
LinkBack Thread Tools
Old 05-18-2004, 11:09 AM   #1
Coder
Join Date: May 2004
Real Name: Isaiah
Location: Anaheim
Isaiah is on a distinguished road

Default Counter Hack

A hack that counts post in a spefic forum ids does anyone know how to set it up..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 05-18-2004, 06:43 PM   #2
Charter Member
plasmax's Avatar
Join Date: Apr 2004
plasmax is on a distinguished road

Default

I think that it's what you are searching
Attached Files
File Type: zip TouchingVirus[1].Thread.Counter.zip (6.4 KB, 54 views)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-18-2004, 08:21 PM   #3
BoB
Charter Member
BoB's Avatar
Join Date: May 2004
BoB is on a distinguished road

Default

what if you want say threads started from 5 or six forums as 1 post count. and theads from say another 4 or 5 diff forums to count as another total??


how would this hack work for that or wil it NOT??

Is there a way to say add forum id,2,4,6,8,9 = counter 1 total
and 3,5,7,2,= counter 2 total


if ya get me drift




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-18-2004, 08:52 PM   #4
Charter Member
Join Date: Apr 2004
Hyper is on a distinguished road

Default

Download, the hack listed above.. Read the directions, and you will see its possible to do that with the hack

Works like a charm for me and many others...




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-19-2004, 05:10 AM   #5
BoB
Charter Member
BoB's Avatar
Join Date: May 2004
BoB is on a distinguished road

Default

i have got the hack above,but if i knew how to set it up that way then i would have done it fella.

just asking for a lill help on how to set it up that way

Quote:
if (($foruminfo['forumid']=='counter1_forum1') || ($foruminfo['forumid']=='counter1_forum2')|| ($foruminfo['forumid']=='counter1_forum3')|| ($foruminfo['forumid']=='counter1_forum4'))
etc etc etc


do i add the forums id in that line???

Last edited by BoB; 05-19-2004 at 05:14 AM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-21-2004, 05:17 PM   #6
BoB
Charter Member
BoB's Avatar
Join Date: May 2004
BoB is on a distinguished road

Default

BUMP??

any1 help a lill please




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-21-2004, 05:32 PM   #7
Charter Member
Join Date: Apr 2004
Nemesis1386 is on a distinguished road

Default

yes




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-21-2004, 08:19 PM   #8
BoB
Charter Member
BoB's Avatar
Join Date: May 2004
BoB is on a distinguished road

Default

Quote:
Originally Posted by Nemesis1386
yes
yes???

you can help???




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2004, 09:00 PM   #9
Charter Member
Join Date: May 2004
STouch is on a distinguished road

Default

hmm.. okay, just install the hack that i post in here..
and that will do.


Easy to install.

Open admin\functions.php

Find:
You must first be a registered member to view any code.
add in the end: $DB_site
so it will look something like that:
You must first be a registered member to view any code.
find:
global $counter,$firstnew,$sigcache,$highlight,$postid,$f orum,$DB_site;

add after:
You must first be a registered member to view any code.
find:
$post[posts]="N/A";

add under:
$cfirst="N/A";
$csecond="N/A";

in CODE area you will see AND forumid IN (?,?,?)");" instead of the questions mark '?' write the forumid you wish the counter will work on, you can add forums and remove forums... as much as you want how simple is that?!

Now, just go to "Postbit" template, look for $post[posts] and add there your counters - $cfirst - which is the first counter || $csecond which is the second counter of course.

if you have any question or if you need helping installing it (although i think its easy), just write here, and ill help ya

Good Luck!

STouch

Last edited by STouch; 05-29-2004 at 09:04 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-29-2004, 10:52 PM   #10
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

The hack STouch posted doesnt know what or where to count so wont work very well.
TouchingVirus's hack will work fine but needs a lot more code editing than needed and also does more querys than are needed.

The following code should work fine though untested I have to say.
Querys needed = 1
(this is assuming you dont turn all the counters on for the specific forum)
extra counter on forum = extra query
So if you turn on counter 1 and 2 for general discussion then the extra querys made when posting in general conversation will be 2.

Add to user table in dbase

countone
counttwo
countthree etc...

basic query for the above would be

ALTER TABLE user ADD countone int(10) unsigned NOT NULL default '0';
ALTER TABLE user ADD counttwo int(10) unsigned NOT NULL default '0';
etc....
repeat for each count you wish to use

Ok now the code edits

In admincp/forum find:
You must first be a registered member to view any code.
Replace with:
You must first be a registered member to view any code.
Same file find:
You must first be a registered member to view any code.
Add Below:

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

Now in functions_newpost find:
You must first be a registered member to view any code.
Add ABOVE:

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

in includes/init.php Find:

You must first be a registered member to view any code.
Replace with:
You must first be a registered member to view any code.
I guess i should point out that if you used my IRC poster then the above will already have changed in which case youll need to change
'ircmsg' => 524288
with
'ircmsg' => 524288,
'countone' => 1048576,
'counttwo' => 2097152,
'countthree' => 4194304,

Ok thats it for the php

The following code will only show a count if it is not 0

Now in postbit & and postbit_legacy
both is not actually needed it depends on how you have your postbit viewed.
If you use the old format I think thats postbit_legacy new format is postbit :s (i think)

Find:

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

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


Feel free to ask questions here

Last edited by ShavedApe; 05-31-2004 at 03:59 AM.




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
Hack Installs / Working - Suggestion VirtualBurn Site Feedback 11 08-16-2006 04:01 PM
Upload Counter Hack ahjo vBulletin Modification Requests 3 02-27-2006 02:42 PM
Install System Part 2 Ken Iovino Announcements 10 05-19-2005 10:40 AM


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


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