php forum
php mysql forum
php mysql smarty
 
Topic Options
#218026 - 06/05/02 11:26 PM No Text hack for 6.0
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
This is a small hack that enters "NT = No text" into the body of the message if the subject ends with "NT", with or without surrounding [] or (), if the body is empty. It also won't allow posts without anything in the body unless NT is in the subject. <br /><br />Just find the following line (at line 90 in v6.0):<br /><pre><font class="small">code:</font><hr><br />if ( (ereg("^\s*$",$Subject)) || ($Body == "") || ($postername == "") ) {<br /></pre><hr><br /><br />And replace it with the following:<br /><pre><font class="small">code:</font><hr><br /> #if ( (ereg("^\s*$",$Subject)) || ($Body == "") || ($postername == "") ) {<br /> if ( (eregi("NT(\)|\])?$",$Subject)) && (preg_match("/^\s*$/i",$Body)) ) {<br /> $Body = "{$ubbt_lang['NOTEXT']} ";<br /> }<br /> if ( (ereg("^\s*$",$Subject)) || (preg_match("/^\s*$/i",$Body)) || ($postername == "") ) {<br /></pre><hr> <br /><br />The add the following line to the addpost.php language file (and change the text to something else if you like):<br /><pre><font class="small">code:</font><hr><br />$ubbt_lang['NOTEXT'] = "NT = No Text";<br /></pre><hr>
_________________________
/Gardener | Complete list of my mods

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks