vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   stripping signature editor (https://vborg.vbsupport.ru/showthread.php?t=70136)

trag 10-03-2004 05:12 PM

stripping signature editor
 
OK, I've done a bit of searching on this forum, .com, and templates... and I still havn't found exactly what I'm looking for. However... I'm sure I might have missed it... but anyway.

My question is... how do I strip the special editing functions of the signature editor. I don't want users to be able to set anything except basic text (of which I force size/font etc).

I saw a fancy signature limiting hack... but it was only a picture of what someone was requesting (or may have been on another board or something).

(note: I know you can turn off vb code and such in user options, but the options still appear in the sig editor. I want to remove that completely.)

Anyway... thanks.

trag 10-03-2004 06:24 PM

Basically, I want to force a specific style for signatures. I don't want size/font/color. I don't mind link, bold, italic etc...

Worst case, I can just turn of VB code in the options... HOWEVER... the buttons still appear in the signature editor. How do I remove these so it is simply a text box?

trag 10-03-2004 07:55 PM

I've found the toolbar contents in editor_toolbar_standard. What would be the best way to make an editor_toolbar_signature. Should I just edit the standard version to have an "if" statement, or should I make an actual new template with the items that I want... and just call editor_toolbar_signature when someone attempts to edit their sig?

trag 10-07-2004 05:32 PM

Anyone have any ideas on how to strip the buttons out of the signature editor?

boatdesign 11-16-2004 02:37 AM

Trag, did you find a modification / solution for this?

I'm looking for something similar - a way to not display specific options (e.g. the font size and image options) when users click "edit signature" from their user cp, and to disallow specific bbcodes in signatures.

I have found mods which allow users to limit what signature elements they see, but I would prefer to not have any users set huge font sizes for their signatures in the first place. I also don't want to allow images in signatures.

Many thanks in advance for any pointers or suggestions.

Ianomed 11-16-2004 08:57 AM

Quote:

Originally Posted by trag
I've found the toolbar contents in editor_toolbar_standard. What would be the best way to make an editor_toolbar_signature. Should I just edit the standard version to have an "if" statement, or should I make an actual new template with the items that I want... and just call editor_toolbar_signature when someone attempts to edit their sig?

yup, try this conditional

PHP Code:

<if condition="THIS_SCRIPT != 'profile'">

// template code that should only appear on posts and PMs, but not in signature page.

</if> 

alternatively:

PHP Code:

<if condition="THIS_SCRIPT == 'profile'">

// template code that should only appear on signature page and not on posts or PMs.

</if> 

untested, but I think it'll work :)

burnist 11-16-2004 01:12 PM

Quick note, you used
PHP Code:

<if condition="THIS_SCRIPT == 'profile'"

on both those code snippits

Should the top one not be
PHP Code:

<if condition="THIS_SCRIPT == 'private' OR 'newthread' OR 'newpost' "
//Im not sure about that syntax :P 


Ianomed 11-16-2004 02:06 PM

if you just want the signature editor to be limited, then it's just profile :)

PHP Code:

<if condition="THIS_SCRIPT == 'profile'"
... 
signature related markup
<else>
... 
markup for the editor on all but signature
</if> 

if you want to exclude something from showing up on the sig editor, then you can also put this around it:

PHP Code:

<if condition="THIS_SCRIPT != 'profile'"
... 
markup for the editor on all but signature
</if> 

THIS_SCRIPT is set at the top of a php file, for private messages it's private, and so on... for the signature editor (profile.php?do=editsignature), it resolves to profile.

so without having tested this particularcode, I'm pretty sure it works as I stated, I did a similar conditional here: https://vborg.vbsupport.ru/showthread.php?t=71609

let me know if it works out, or not?

Andreas 11-16-2004 05:10 PM

Hmm, but even if you limit the editor the users can still use vB-Code (if they know how to do that).

Ianomed 11-16-2004 05:13 PM

that follows of course
code so far presented is to remove the buttons, in answer to trag's query.


All times are GMT. The time now is 10:04 AM.

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.01103 seconds
  • Memory Usage 1,747KB
  • 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
  • (6)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete