vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Change Default Editor Text (https://vborg.vbsupport.ru/showthread.php?t=297030)

SirVault 04-09-2013 05:09 PM

Change Default Editor Text
 
What I want to do is have default text in the infraction editor so that a moderator only has to fill in the rest.

Currently, when you go to infract someone, the Message to the User is blank:
https://vborg.vbsupport.ru/external/2013/04/47.png

How would I make it so it's more like this (so that the text is automatically there)?
https://vborg.vbsupport.ru/external/2013/04/48.png

Thanks!

SirVault 04-11-2013 03:01 PM

Anyone?

Lynne 04-11-2013 03:51 PM

Try editing the editor_on template and change this area near the end:

HTML Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr valign="top">
                        <td class="controlbar">
                                <textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="display:block; width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]"><if condition="THIS_SCRIPT == 'infraction'">Proof:

Link to Rule:</if>$newpost[message]</textarea>
                        </td>
                        <if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
                </tr>
                </table>

I haven't tried it yet, but try it on your test site and see if it works.

SirVault 04-13-2013 04:03 PM

Quote:

Originally Posted by Lynne (Post 2415746)
Try editing the editor_on template and change this area near the end:

HTML Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr valign="top">
                        <td class="controlbar">
                                <textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="display:block; width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]"><if condition="THIS_SCRIPT == 'infraction'">Proof:

Link to Rule:</if>$newpost[message]</textarea>
                        </td>
                        <if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
                </tr>
                </table>

I haven't tried it yet, but try it on your test site and see if it works.

I'll try it now.

--------------- Added [DATE]1365872850[/DATE] at [TIME]1365872850[/TIME] ---------------

Update: Works great! Thanks a bunch!

SirVault 05-07-2013 03:16 PM

Quote:

Originally Posted by Lynne (Post 2415746)
Try editing the editor_on template and change this area near the end:

HTML Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr valign="top">
                        <td class="controlbar">
                                <textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="display:block; width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]"><if condition="THIS_SCRIPT == 'infraction'">Proof:

Link to Rule:</if>$newpost[message]</textarea>
                        </td>
                        <if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
                </tr>
                </table>

I haven't tried it yet, but try it on your test site and see if it works.

I have one problem. When a moderator tries to send the message, it appears like this (without the space). How can I add the space between the two words? When I try adding HTML (<br />) to the code and preview the message, it shows up like this in the editor.

Lynne 05-07-2013 04:09 PM

I think you just need to actually hit return in the editor (of the template) and put the text on a new line if that is what you want. Or, maybe use /n ?


All times are GMT. The time now is 01:57 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.01079 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)bbcode_html_printable
  • (2)bbcode_quote_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