Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-03-2004, 05:12 PM
trag trag is offline
 
Join Date: Oct 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 10-03-2004, 06:24 PM
trag trag is offline
 
Join Date: Oct 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 10-03-2004, 07:55 PM
trag trag is offline
 
Join Date: Oct 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 10-07-2004, 05:32 PM
trag trag is offline
 
Join Date: Oct 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone have any ideas on how to strip the buttons out of the signature editor?
Reply With Quote
  #5  
Old 11-16-2004, 02:37 AM
boatdesign's Avatar
boatdesign boatdesign is offline
 
Join Date: Nov 2001
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 11-16-2004, 08:57 AM
Ianomed's Avatar
Ianomed Ianomed is offline
 
Join Date: Oct 2004
Location: The Netherlands
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 11-16-2004, 01:12 PM
burnist's Avatar
burnist burnist is offline
 
Join Date: Jul 2003
Location: Ireland
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 
Reply With Quote
  #8  
Old 11-16-2004, 02:06 PM
Ianomed's Avatar
Ianomed Ianomed is offline
 
Join Date: Oct 2004
Location: The Netherlands
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 11-16-2004, 05:10 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, but even if you limit the editor the users can still use vB-Code (if they know how to do that).
Reply With Quote
  #10  
Old 11-16-2004, 05:13 PM
Ianomed's Avatar
Ianomed Ianomed is offline
 
Join Date: Oct 2004
Location: The Netherlands
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:47 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.07918 seconds
  • Memory Usage 2,268KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete