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)
-   -   Maximum Characters Of user Signature (https://vborg.vbsupport.ru/showthread.php?t=36768)

mem 03-30-2002 10:00 PM

Maximum Characters Of user Signature
 
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:

Code:

// ###################### 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??


All times are GMT. The time now is 08:48 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.00944 seconds
  • Memory Usage 1,718KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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