View Full Version : signature editor
paveli
06-23-2005, 05:42 AM
Hello,
I have vB 3.0.7. I've disabled vBcodes and iamges in signatures. But the signature editor still allow to add them (they are showed in posts like simple text).
How is it possible to disable these functions in signature editor?
paveli
06-27-2005, 08:14 AM
hey! I don't belive that noone know... :disappointed:
Marco van Herwaarden
06-27-2005, 08:56 AM
You can always use them, but they will simply not be parsed.
paveli
06-27-2005, 08:59 AM
You can always use them, but they will simply not be parsed.
I know. But users are a bit confused about that. So I want to delete these functions from signature editor.
Princeton
06-27-2005, 12:57 PM
the only way is to display the standard - no toollbar editor to them while editing sig
TRY THIS (not tested):
FIND IN profile.php:
--------------------------------------------
require_once('./includes/functions_editor.php');
// set message box width to usercp size
$stylevar['messagewidth'] = $stylevar['messagewidth_usercp'];
construct_edit_toolbar(htmlspecialchars_uni($signa ture), 0, 0, $vboptions['allowsmilies']);
REPLACE WITH:
--------------------------------------------
// ================================================= \\
// == [ MODIFIED - GTP BEGIN ]
//require_once('./includes/functions_editor.php');
// set message box width to usercp size
$stylevar['messagewidth'] = $stylevar['messagewidth_usercp'];
//construct_edit_toolbar(htmlspecialchars_uni($signa ture), 0, 0, $vboptions['allowsmilies']);
$newpost['message'] = iif($_POST['message'], $_POST['message'], $bbuserinfo['signature']);
$vbphrase['your_signature'] = 'Your Signature -- No BBcodes allowed';
$vBeditJs = array(
'font_options_array' => '',
'size_options_array' => '',
'istyle_array' => '',
'normalmode' => 'false'
);
eval('$vBeditTemplate[\'clientscript\'] = "' . fetch_template('editor_clientscript') . '";');
eval('$messagearea = "' . fetch_template('editor_toolbar_off') . '";');
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
paveli
07-06-2005, 10:17 AM
2 princeton,
It works just fine! Thank you! :classic:
Hmmm. don't know if i'am asking to much :-) Is it possible to leave smiles in editor?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.