Subject too short addon...awesome!!!!!

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Subject too short addon...awesome!!!!!
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
I love it that you need to type in at least 30 characters now to post a new topic!!! That should totally eliminate topics saying only "help!!!!!" icon_biggrin.gif




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#2   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 43
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.03 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
Yeah but now we are gonna see this "help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
icon_smile.gif



Back to top Reply with quote
#3   re: Subject too short addon...awesome!!!!!
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
ROFLMAO!!!




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#4   
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
Although we have seen a few posts with excessive useless characters since then...but overall I have to commend CZ for taking these measures! The boards have been much nicer to browse lately..we actually know what people are talking about before we click the link! Great job guys!




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#5   re: Subject too short addon...awesome!!!!!
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
Having their posts deleted for not having a descriptive title works wonders as well. icon_wink.gif



Back to top Reply with quote
#6   
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
Tru dat! We don't get to see those anymore icon_biggrin.gif




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#7   re: Subject too short addon...awesome!!!!!
_Aerospace_Eng_
CZ Active Member
_Aerospace_Eng_ has been a member for over 20 year's 20 Year Member
usa.gif
Age: 39
Gender: Male
Status: Offline
Joined: Nov 09, 2004
0.03 posts per day
Posts: 200
Points: 10,133
   
can anyone point me in the right direction on where to get the mod for the subject length?




_________________
Back to top Reply with quote
#8   
Gareth
CZ Addict
 Codezwiz Site Donator
Gareth has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student, Webmaster
Gender: Male
Fav. Sports Team: Liverpool FC
Status: Offline
Joined: May 29, 2004
0.08 posts per day
Posts: 587
Points: 38,220
   
I could probly code my own forum to make it check for 30 chars, but I cant be bothered, I dont think CZ have released it yet, or Are going to... not sure, I just posted here b'cause no one else had...

Gareth




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#9   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Open your includes/functions_post.php and look for the following:


                        $result = validate_username($username);
                        if ($result['error'])
                        {
                                $error_msg .= (!empty($error_msg)) ? '<br />' . $result['error_msg'] : $result['error_msg'];
                        }
                }
                else
                {
                        $username = '';
                }
        }


After that add:


        $minimum_words = 30;
        $s_count = strlen($subject);
        // Check subject
        if (($mode == 'newtopic') && ($s_count > $minimum_words))
        {
                $subject = $subject;

        } 
        else if (($mode == 'newtopic') && ($s_count < $minimum_words))
        {
                 $error_msg .= (!empty($error_msg)) ? '<br />' . $lang['Tooshort_subject'] : $lang['Tooshort_subject'];             
        }


Then open your modules/Forums/language/lang_main.php and find:

$lang['Empty_subject'] = 'You must specify a subject when posting a new topic.';


After that add:


$lang['Tooshort_subject'] = 'Your subject is too short. Minimum subject length is 30 characters.';


Upload and test it. Make sure to make a backup.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#10   re: Subject too short addon...awesome!!!!!
webshark
PayPal Donation
CZ Moderator
 Codezwiz Site Donator
webshark has been a member for over 20 year's 20 Year Member
turkey.gif
Age: 55
Gender: Male
Website:
Status: Offline
Joined: Mar 23, 2004
0.09 posts per day
Posts: 643
Points: 57,200
   
is this also effects admins ? doadmins also need to have 30 chars. when open a topic also ?




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum