PDA

View Full Version : Maximum Characters Of user Signature


mem
03-30-2002, 10:00 PM
Hack description : Allow you to set maximum characters of users signature.

## Note :
## 1. Install this Hack will have some changes of your database, please backup your database, php files &
## templates whitch are goning to be edit!!
## 2. We "DO NOT" take any responsibility if that cause you any damage !!
## 3. Author has tested in localhost with Vbulletin 2.2.4 only, if you are using different version of
## vBulletin & you install this hack successful and works find, please reply a message to where you
## download this file, and tell other people whitch version of vBulletin can install this hack.

Marshalus
03-31-2002, 04:34 AM
"We" talk in the third person huh ;) Nice hack!

Neo
04-03-2002, 11:56 PM
ummm example please?

fridayweb
10-04-2002, 07:23 AM
Anyone tried this on 2.2.6 or 2.2.8?

mtha
04-15-2003, 04:29 AM
work fine in 2.3.0

However, there's a small note:
in the install_signaturemaxchars.php file, there's a install db section:

// ###################### Start install db #######################
if ($action=="db") {

doformheader("$installer","done");
maketableheader("Modifying your database");
$DB_site->query("INSERT INTO setting VALUES (NULL,8,'Maximum Characters Of Signature','signaturemaxchars','100','The maximum number of characters that you want to allow in users signature. Set this to 0 to disable it.','',15)");
maketableheader("Add signaturemaxchars....Success!");
maketableheader("Adding Template error_maxsignature ");
$DB_site->query("INSERT INTO template (templateid,templatesetid,title,template) VALUES (NULL,'1','".addslashes(error_maxsignature)."','The signature text that you have entered is too long. Please shorten it to \$signaturemaxchars\ characters long.')");
maketableheader("Add Template....Success!");

doformfooter("done","",2);
#echo "<p><b>Finish $hackname $hackversion installation,".makelinkcode("Next Step ==>","$installer.php?s=$session[sessionhash]&action=done").".</b></p>";


In this case, the templatesetid for error_maxsignature is 1.
If your templatesetid is different, correct it or add into your current templateset.

ga.net
05-17-2003, 11:54 PM
Is there a way to uninstall this hack??