vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Post Count Modifier - Minimum Post Characters to Count towards Post Count (https://vborg.vbsupport.ru/showthread.php?t=46728)

Chris M 12-15-2002 10:00 PM

Post Count Modifier - Minimum Post Characters to Count towards Post Count
 
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 12-16-2002 07:57 PM

*installs* thanks bro ;) even though I don't have this version.

Chris M 12-16-2002 08:00 PM

Well;)

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

Thanks;):)

Satan

LOD-squa 12-16-2002 08:04 PM

heheh I know. I can also support this thread.

Chris M 12-16-2002 08:10 PM

Cool:)

Thanks;)

Satan

zajako 12-16-2002 08:36 PM

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 12-16-2002 08:43 PM

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 12-17-2002 02:35 AM

Sure would help those forums where the the users *only* posts smilies ... and get credited for posts!

Chris M 12-17-2002 11:13 AM

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 12-17-2002 03:20 PM

Quote:

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 12-17-2002 07:51 PM

Heh thanks:)

Satan

assassingod 12-17-2002 08:06 PM

Quote:

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 12-18-2002 04:43 AM

Ok, Chris, here goes...how many queries does this add? ;)

ULTIMATESSJ 12-18-2002 08:16 PM

this is a pretty good idea for a hack, i'll probibly install during my next spam crisis

Chris M 12-18-2002 08:50 PM

@Boofo - It adds 1 more query:)

Satan

DiscussAnything 12-20-2002 06:22 PM

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 12-20-2002 08:03 PM

No...This only takes effect after install...

Satan

apokphp 12-29-2002 04:50 PM

when running the queries, I got an error:
Quote:

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 12-29-2002 04:55 PM

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 12-30-2002 05:19 PM

That was it. :) Thanks man, works like a charm.

Chris M 12-30-2002 05:31 PM

No problemo:)

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

Satan

KuraFire 01-10-2003 01:58 PM

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 01-10-2003 02:04 PM

Quote:

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 01-10-2003 07:04 PM

Sounds cool Kura...

And you are absolutely right about >=...

I shall update it soon:)

Satan

rburns 01-31-2003 03:50 AM

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 01-31-2003 03:52 AM

Don't worry, found it, thanks

rburns 01-31-2003 10:30 PM

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 02-01-2003 12:16 PM

How do you mean overplaced?

And simply run:

ALTER TABLE *tablename* DROP *table*

I forgot what values I used:confused:

Satan

esquared 02-05-2003 03:12 AM

Will this work with the store hack?

Chris M 02-14-2003 06:25 PM

Currently no, but I am sure that it could be integrated:)

Satan

esquared 04-14-2003 09:27 PM

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 04-14-2003 10:02 PM

@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 04-14-2003 10:49 PM

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 04-16-2003 02:37 PM

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 06-13-2003 01:25 AM

Nice hack, hellsatan!

brownafroduck 10-13-2003 06:29 PM

You are the best! This is exactly what I need on my board! Thanks!


All times are GMT. The time now is 04:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01190 seconds
  • Memory Usage 1,778KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (36)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete