MyBB Community Forums

Full Version: Help me, It's hard to find this HTML script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys. I have a problem with layout of User CP. I have problem when users edit signature. The editor layout looks bad because width of div element (box that contains editor tools) is too narrow. I want to change to 506px because when I change it to 506px using "Inspect Element", it looks good.

I don't know to change it permanently. I can't find the HTML script in ACP - Template - User Control Panel Templates.

Can you help me to find the HTML script?
I provide the screen shoot. I hope it will describes the problem clearly.

[attachment=28091]

Thanks,Smile
Admin CP -> Templates & Style -> Templates -> *Expand Template Set* -> User Control Panel Templates -> usercp_editsig
(2012-12-22, 12:34 PM)JordanMussi Wrote: [ -> ]Admin CP -> Templates & Style -> Templates -> *Expand Template Set* -> User Control Panel Templates -> usercp_editsig

I can't find it..
Here the script in usercp_editsig
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->edit_sig}</title>
{$headerinclude}
</head>
<body>
{$header}
<form action="usercp.php" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table width="100%" border="0" align="center">
<tr>
{$usercpnav}
<td valign="top">
{$error}
{$signature}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->edit_sig}</strong></td>
</tr>
<tr>
<td class="trow1" valign="top" width="20%"><span class="smalltext">{$lang->edit_sig_note}</span>
{$smilieinserter}</td>
<td class="trow1" width="80%">
<textarea rows="15" cols="70" id="signature" name="signature">{$sig}</textarea>
{$codebuttons}
</td>
</tr>
<tr>
<td class="trow2">
<span class="smalltext">{$lang->edit_sig_note2}</span>
</td>
<td class="trow2">
<span class="smalltext">
<label><input type="radio" class="radio" name="updateposts" value="enable" />&nbsp;{$lang->enable_sig_posts}</label><br />
<label><input type="radio" class="radio" name="updateposts" value="disable" />&nbsp;{$lang->disable_sig_posts}</label><br />
<label><input type="radio" class="radio" name="updateposts" value="0" checked="checked" />&nbsp;{$lang->leave_sig_settings}</label></span>
</td>
</tr>
</table>
<br />
<div align="center">
<input type="hidden" name="action" value="do_editsig" />
<input type="submit" class="button" name="submit" value="{$lang->update_sig}" />
<input type="submit" class="button" name="preview" value="{$lang->preview}" />
</div>
</td>
</tr>
</table>
</form>
{$footer}
</body>
</html>

I can't find div element that I've mentioned on my screen shoot.
Please try to find the script on your own template.Smile
You have to hack it a bit to get this working.

Do the following:
ACP > Templates & Style > *your theme* > Add Stylesheet >

File name: editsig.css
[check] Specific files
click add another
Enter 'usercp.php?editsig'

check write my own content
enter:

.messageEditor { width: 506px !important; }


That should do the trick.
(2012-12-22, 04:29 PM)Jason L. Wrote: [ -> ]You have to hack it a bit to get this working.

Do the following:
ACP > Templates & Style > *your theme* > Add Stylesheet >

File name: editsig.css
[check] Specific files
click add another
Enter 'usercp.php?editsig'

check write my own content
enter:

.messageEditor { width: 506px !important; }


That should do the trick.

Thanks a lot friend. That's works Smile