PDA

View Full Version : minimum chars for posts


zajako
08-23-2002, 10:00 PM
im suprised i could not find this hack so i made it.

It simply checks the post for a minimum amount of character so people can't post spam that is a few letters long or simple answers liek yes and no. very simple hack that takes almost no time at all.

g-force2k2
08-24-2002, 09:53 AM
actually Zajako the hack does exist... its included in my spam killer hack... view my profile and you'll see it... regards...

g-force2k2

zajako
08-24-2002, 09:54 AM
well now it exsists seperate from a group hack and people can actualy search for it and find it....

g-force2k2
08-24-2002, 09:57 AM
spam will be spam... thats like saying i can take a small piece of coding out of your hotel hack and release it so its easier to search and find?

g-force2k2

g-force2k2
08-24-2002, 10:13 AM
you can also make it so it at least by passes the forum leaders :p

find:

$minchars = 15;
if (strlen($message) < $minchars and $minchars !=0) {
eval("standarderror(\"".gettemplate("error_tooshort")."\");");
}

change it to:

$minchars = 15;
if($strlen($message) < $minchars and $minchars != 0) {
if($bbuserinfo[usergroupid] != 5 OR $bbuserinfo[usergroupud] != 6 OR $bbuserinfo[usergroupid] != 7) {
eval("standarderror(\"".gettemplate("error_tooshort")."\");");
}
}

wait look at that addon O_o maybe i should release it as a stand alone... then again it is included in my spam killer :p

regards...

g-force2k2

zajako
08-24-2002, 10:26 AM
ehh well i never knew that your hack did that ability til now and i would have never found this ability unless i made it, so now vb.org people will be able to find it. not to mention your hack is too much trouble if this is the only spam block effect you want. this one is a lot quicker to install to. also your posts nevr mentions this feature so its impossible to search for and find, so this hack will not be removed by mean and its made by me without your help. therefore its my hack. you may have had this feature in your other one but you had a ton of othrthings i considered jucnk and did not advertise this feature, and till you pointed it out i did not know your hack exsisted so i di not copy.

use better description of your hack next time and this will nnot happen again becaus i did search many things that invovle this hack and came up with nothing.

kmfdm_kid2000
08-24-2002, 10:31 AM
Not bad, I could use this, b/c I have a 3 word minimum rule on my board. This will help a LOT...I set it to 10 though, and I'll see if I need to increase it any. Quick and easy install...

g-force2k2
08-24-2002, 03:43 PM
Originally posted by zajako
you may have had this feature in your other one but you had a ton of othrthings i considered jucnk and did not advertise this feature

use better description of your hack next time and this will nnot happen again becaus i did search many things that invovle this hack and came up with nothing.

ppl like you tick me off... junk you say? you have no respect... ppl like you make me think twice about making hacks for vb.org... no respect... regards...

g-force2k2

Chris M
08-24-2002, 03:56 PM
I personally do not like Spam killers, but...

Is there a way to make this target certain USERS?:D

Satan

Goldknight
08-24-2002, 03:59 PM
zajako

There is no way for you to say like that to g-force2k2. His work is genuine, not junk :p

Unknown553
08-24-2002, 07:10 PM
I didn't know anything like this was g-force's hack, so I will be one of the few to say thank you for releasing this. Although I will not use the hack, I appreciate the effort you put into making the hack, so long as it's not ripped (haven't compared codes yet).

NTLDR
08-24-2002, 10:43 PM
I agree with g-force2k2. IMO this should also affect newthread.php not just newreply.php

zajako
08-25-2002, 01:57 AM
um i want to point out that i did not call his hack junk, i siad the other features i considered junk meanign not of value to me.

you know the phrase one mans trash is another mans treasure.

if i don't need it its considered junk it was not meant as an insult or a rude coment. if i wanted to be rude about it i would simply say the otehr features were junk rather than the wording of i consider them junk....

i am not one to go insulting peoples hacks or go around tring to argue about them. but it seems that if people would cover the main words of what there hack does then the search will find them. your hack did not advertise the feature that i was looking for thus i did not find it so i made a hack that does the feature i wanted, then posted it so the next person won't have to make it.

Goldknight
08-25-2002, 02:07 AM
Ok, thanks for clear up :)

g-force2k2
08-25-2002, 04:46 AM
Originally posted by NTLDR
I agree with g-force2k2. IMO this should also affect newthread.php not just newreply.php

agreed... what does the newthread.php get some kind of special treatment? or just another half done hack of yours? or do you plan on release another version tonight? i ain't saying im perfect when it comes to my hacks... but i try to take at least an overall perspecitive...

g-force2k2

zajako
08-25-2002, 09:48 PM
actualy i think its safe to assume that threads will not be posted with under 15 chars that often or ofen enough to make a hack to stop them. Its the posts that have the replys of yes and no that im really trying to stop, and i think its safe to assume that its the same for everyone else too.

As i said i made this hack for me and so that other people can use it i posted it that the sole purpose of these forums, so please grow up guys. i don't mind if you pointed out that i di not change newthread, but the way you said it wiht many insults to not just this hack but all of mine. if you have something aginst my hacks then don't use them and stop complaining.

also no where in the hack description did i say anything about preventng it from threads so no this is not an incomplete hack.

look4you
10-02-2002, 10:18 PM
I like this hack, less work then the other and I just want this without the rest. Thanks.

BigJohnson
10-25-2002, 08:50 AM
How would i be able to make this only work in certain forums?

zajako
10-25-2002, 02:22 PM
umm you would have to set an if for that forum id for example

If ($forumid == 23){
$minchars = 15;
if (strlen($message) < $minchars and $minchars !=0) {
eval("standarderror(\"".gettemplate("error_tooshort")."\");");
}
}

that would set the minimum of 15 chars for forum number 23 doing this you can set minimums for all of the fourms with different amounts just copy paste that for different forums just changeing the numbers. you can also combind forums to save coding like this:


If ($forumid == 23 || $forumid == 10){
$minchars = 15;
if (strlen($message) < $minchars and $minchars !=0) {
eval("standarderror(\"".gettemplate("error_tooshort")."\");");
}
}


that makes it so both 23 and 10 have a 15 chars minimum.

kreatiV
10-25-2002, 05:29 PM
Nice hack! It would be great if the forums could be turned on/off via the AdminCP instead of having to go through the code. If you have alot for forums it takes too much time ( IMHO ) to get all the ids and paste them into there and if you change your mind you gotta go back, find that id once again and fiddle around the code once more.

With a AdminCP On/Off Option I would install this hack.

Best regards.

BigJohnson
10-25-2002, 06:41 PM
kreativ has a kool idea. I would love that

zajako
11-14-2002, 12:02 PM
vB 3 has thhis feature from what i hear so i will not release a 2nd version withh admin options :/

MoonSlasher
11-14-2002, 04:31 PM
Yo thanks Zaj, I don't really dare to try out G-force's hacks because one of his hacks fuxored my old forums. Lotsa ppl only say like 1 or 2 words at my forums and I think this hack will solve this :D Now I only have to search for something which prevents double posting shizzo (it's prolly already made O_o)

zajako
11-14-2002, 04:36 PM
eh yeah its prolly already made, if you can't find it you know my aim name, ill make one for ya :p

discussfitness
06-22-2003, 03:54 AM
Great hack, nice and simple and works fine on my vB2.0.3

Not sure why g-force2k2 is so annoyed, I think you did a nice job. I didn't want any more features and I think you're right about people posting long topics but short replies.

:)

iggy123
06-22-2003, 06:33 AM
yea i agree - its a cool hack and gforce was well out of line slating you the way that he did.
We have a gaming board and it annoyed me when ppl replied yes/no.
I have still to see a topic which is less than 15 characters yet.

zajako
06-25-2003, 06:13 AM
not a problem guys, glad this one is still being used, also noticed it built into vb3 ;)

Jed
07-13-2003, 06:24 PM
Excellent, excellent hack.

Kudos.

DILLIGAF
07-26-2003, 01:34 AM
Nice work guys!

/me clicks install

tm21
12-11-2003, 07:54 PM
This does not seem to work on 2.3.3. Any tweakes out there? The same code exists on newreply.php unless I am missing something.

tm21
12-15-2003, 02:47 PM
I must have uploaded the wrong file because all of a sudden after adding another hack that changed the same file it started working.

chuckwk
01-30-2004, 09:27 PM
thanks for this hack!