PDA

View Full Version : Post Count Modifier - Minimum Post Characters to Count towards Post Count


Chris M
16 Dec 2002, 20:52
Please do the following before attempting to install:

1.) Backup your Files before doing anything
2.) Be aware that although I have tested this myself, there may still be problems...If you do not backup your files, I cannot condone your install of this hack...
3.) If you want to Backup your Database, You can - There shouldn't be any need to...

The file you should have is:

postcountmincharshack.txt

Install Info:
Hack Version: 1.0
Files to edit: 3
Templates to add: 0
Templates to edit: 0
Queries to Run: 2
Time to install: Approx 5 Minutes

Credits
Requested by - gohanssj2

Support - I am offering support, but only in THIS THREAD...I unfortunately cannot be here during the coming weeks (Mon-Fri), so therefore you will have to rely on others for assitance, should it be urgent...If you do require assitance, please - Only reply in this thread

Hack info

What does it do? - Basically, you can set a Minimum Characters number per post, per forum, so that if you post a message with a character count of less than the forum requirement, your Post count will not increase, but the Post is posted:)

Enjoy!:)

Satan

LOD-squa
16 Dec 2002, 20:57
*installs* thanks bro ;) even though I don't have this version.

Chris M
16 Dec 2002, 21:00
Well;)

I made your's custom at your request;):)

Thanks;):)

Satan

LOD-squa
16 Dec 2002, 21:04
heheh I know. I can also support this thread.

Chris M
16 Dec 2002, 21:10
Cool:)

Thanks;)

Satan

zajako
16 Dec 2002, 21:36
cool, this is just like my hack for post count cept it lets them post just not countining torwards post count. Nice job:]

Dean C
16 Dec 2002, 21:43
This is a brilliant idea...

My members love their posts so i don't think i'll deprive them just yet tho ;) hehe

Regards

- miSt

Bison
17 Dec 2002, 03:35
Sure would help those forums where the the users *only* posts smilies ... and get credited for posts!

Chris M
17 Dec 2002, 12:13
Yep!:)

Thanks guys;) I wasn sure that anyone else would think it's a good idea;)

I really like reading people's posts, and at the moment, don't use this myself...However, I am sure some places do get people who just post Smilies:banana:

:)

Satan

N9ne
17 Dec 2002, 16:20
Originally posted by Mist
This is a brilliant idea...

My members love their posts so i don't think i'll deprive them just yet tho ;) hehe

Regards

- miSt

what if they installed it here, Mist's post count will drop severly :p

hehe only joking, as long as you stop with the tiny posts in the lounge :p

Nice hack this is :)

Chris M
17 Dec 2002, 20:51
Heh thanks:)

Satan

assassingod
17 Dec 2002, 21:06
Originally posted by N9ne

what if they installed it here, Mist's post count will drop severly :p




LOL!!!!!! Too true N9ne;)

Excellent Hack Hellsatan, am using this on a test board:D Thanks

Boofo
18 Dec 2002, 05:43
Ok, Chris, here goes...how many queries does this add? ;)

ULTIMATESSJ
18 Dec 2002, 21:16
this is a pretty good idea for a hack, i'll probibly install during my next spam crisis

Chris M
18 Dec 2002, 21:50
@Boofo - It adds 1 more query:)

Satan

DiscussAnything
20 Dec 2002, 19:22
sounds awesome, does the recalculate postcount admin thingy stick to those new rules? Or, in other words, after installing this and recalculating, would people that only post LOL or ;) lose those postcounts?

Chris M
20 Dec 2002, 21:03
No...This only takes effect after install...

Satan

apokphp
29 Dec 2002, 17:50
when running the queries, I got an error:
MySQL said: You have an error in your SQL syntax near 'ALTER TABLE `forum` ADD `forumpostchars` CHAR (50) NOT NULL' at line 2

How do I fix?

Chris M
29 Dec 2002, 17:55
I'm guessing that you may have had a second line when you executed the query;)

Sometimes, when you copy something, it copies the enter space for some unknown reason...

Just make sure it is only one line you are submitting:)

Satan

apokphp
30 Dec 2002, 18:19
That was it. :) Thanks man, works like a charm.

Chris M
30 Dec 2002, 18:31
No problemo:)

That always confused me when I first started using Queries...:)

Satan

KuraFire
10 Jan 2003, 14:58
1) You should replace, in the hack instructions:

}elseif (strlen($message)>$foruminfo[forumpostchars]) {

with:

}elseif (strlen($message)>=$foruminfo[forumpostchars]) {

otherwise, if someone posts the exact same number of characters as is set for that forum, no update query is run at all, and you might get inaccuraces in your usertable (postcounts not matching usertitles anymore, etc. etc. etc. etc.).

The > has to be >=

2) I don't get it - where / why does this hack add one query? I don't see an additional query Anywhere :)

Good idea for a hack, but I'm gonna implement a different version (basically just a fixed minimum-char-amuont, not forum-specific. Don't need to edit any files except newreply.php and newthread.php :))

Boofo
10 Jan 2003, 15:04
Originally posted by KuraFire
Good idea for a hack, but I'm gonna implement a different version (basically just a fixed minimum-char-amount, not forum-specific. Don't need to edit any files except newreply.php and newthread.php :))

Let me know when you come up with something. I'd be interested. :)

Chris M
10 Jan 2003, 20:04
Sounds cool Kura...

And you are absolutely right about >=...

I shall update it soon:)

Satan

rburns
31 Jan 2003, 04:50
Sorry to seem stupid, I have installed the hack, where do I insert the number of characters needed to advance the post count?

Thanks

rburns
31 Jan 2003, 04:52
Don't worry, found it, thanks

rburns
31 Jan 2003, 23:30
OK, went to my forums today and for some reason all the forums I have applied this too have become forum catagories, also the new hack for these post counts has over placed the Is private Forum Option in the forum modify>edit menu and is a forum (if not will act as catagory) option.

So, my question is, how do I get out of this? and if no one has an answer, how do I uninstall this hack? is there a SQL Query I can run to remove the 2 quries I installed putting this hack in?

Thanks, quick replies would be appreciated.

Forums URL is www.middlesexwing.co.uk/forums
VB Ver: 2.2.9

log in using username: helpme
password: helpme

This will give you viewing access.

Chris M
01 Feb 2003, 13:16
How do you mean overplaced?

And simply run:

ALTER TABLE *tablename* DROP *table*

I forgot what values I used:confused:

Satan

esquared
05 Feb 2003, 04:12
Will this work with the store hack?

Chris M
14 Feb 2003, 19:25
Currently no, but I am sure that it could be integrated:)

Satan

esquared
14 Apr 2003, 22:27
Was this ever integrated with the store hack?

And does it still had the post to the post count total of the forum?

Chris M
14 Apr 2003, 23:02
@esquared - It still adds the post count to the forum, just not to the user's post count...

Integrated with the store hack - No it wasn't...

Although I do not use the store hack, I could make an attempt at an integration if you want;):)

Satan

Erwin
14 Apr 2003, 23:49
Why would this add 1 query? It should add no new queries really, if all you're doing is counting the characters in a post, then deciding whether to add to the post count.

Chris M
16 Apr 2003, 15:37
Because to get around the "update user's post count" issue, it is now 2 queries split up...

So if the post character length != enough, query 1 is ran, but if the post character lengh = or is more than enough, query 2 is ran;)

Satan

Ryan Ashbrook
13 Jun 2003, 02:25
Nice hack, hellsatan!

brownafroduck
13 Oct 2003, 19:29
You are the best! This is exactly what I need on my board! Thanks!