Log in

View Full Version : Change Default Editor Text


SirVault
04-09-2013, 05:09 PM
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:

<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
Try editing the editor_on template and change this area near the end:

<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 1365872850 at 1365872850 ---------------

Update: Works great! Thanks a bunch!

SirVault
05-07-2013, 03:16 PM
Try editing the editor_on template and change this area near the end:

<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 (http://i.imgur.com/RkYHWfX.png) (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 (http://i.imgur.com/GImhiIP.png) 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 ?