|
I know it's an odd request. A member has a signature with several blank lines, one line of text and then several blank lines. I'd like to remove the space. Can you help me?
HTTPS Please!
|
|
Please, take a look now.
My test forum.
|
|
That looks good Pedro thanks. Anyway for me to do that? On Mon, Nov 17, 2014 at 3:01 PM, Pedro <Nabble> [via Nabble Support] <[hidden email]> wrote: Please, take a look now. "Like" us on Facebook: www.facebook.com/NYSkiBlog Follow us on Twitter: http://twitter.com/nyskiblog ---------- The Blog: NYSkiBlog.com NY Ski Forum: forum.NYSkiBlog.com NY Ski Magazine: mag.NYSkiBlog.com NY Ski Directory: directory.NYSkiBlog.com
HTTPS Please!
|
|
No, I had to log with that user's account and edited his signature.
My test forum.
|
|
Could I limit signatures to two lines deep?
These 15 line signatures drive me nuts.
HTTPS Please!
|
|
Look at your edit_signature macro. You can override the 42 in order to add a maxlength attribute to the signature text area:
<n.signature_field.textarea maxlength="20" wrap="SOFT" tabindex="2" style="width:35em;height:7em;" />Here I used 20 characters as the maximum length.
My test forum.
|
|
Pedro. Members are using many lines with very few characters. Is there a way to control that? On Dec 4, 2014 9:32 PM, "Pedro <Nabble> [via Nabble Support]" <[hidden email]> wrote:
Look at your edit_signature macro. You can override the 42 in order to add a maxlength attribute to the signature text area:<n.signature_field.textarea maxlength="20" wrap="SOFT" tabindex="2" style="width:35em;height:7em;" />Here I used 20 characters as the maximum length.
HTTPS Please!
|
|
I'd like to limit the vertical height to maybe 2 full lines.
HTTPS Please!
|
|
It is not possible to set a limit for full lines. I can limit how many time one can press the enter key.
Please, look and override your edit_signature macro: Use lines 42 and 56 to control the length of your signature.
<override_macro name="edit_signature" requires="servlet">
<n.visitor.as_user_page.>
<n.if.not.page_user.is_registered>
<then>
<n.login.><t>You must login to view this page.</t></n.login.>
</then>
</n.if.not.page_user.is_registered>
<n.if.is_submitted_form>
<then>
<n.catch_exception. id="save-signature">
<n.edit_page_user.>
<n.set_signature signature="[n.signature_field.value/]" is_html="[n.html_format_field.value/]"/>
<n.save_user/>
</n.edit_page_user.>
<n.redirect_to.page_user.user_profile_path/>
</n.catch_exception.>
</then>
<else.if.page_user.has_signature>
<then>
<n.html_format_field.set_value value="[n.page_user.signature.is_html_format/]" />
<n.signature_field.set_value value="[n.page_user.signature.as_editable/]" />
</then>
</else.if.page_user.has_signature>
</n.if.is_submitted_form>
<n.html>
<head>
<META NAME="robots" CONTENT="noindex,nofollow"/>
<n.title.><t>Edit Signature</t></n.title.>
</head>
<body>
<h1><t>Edit Signature</t></h1>
<n.show_edit_signature_error/>
<n.if.page_user.has_signature>
<then.show_current_signature/>
</n.if.page_user.has_signature>
<n.form.>
<n.html_format_field.checkbox />
<label for="[n.html_format_field.name/]"><t>Signature is in HTML format</t></label><br/>
<n.signature_field.textarea maxlength="20" wrap="SOFT" tabindex="2" style="width:35em;height:7em;" />
<div style="margin-top:1.4em">
<input type="submit" value="[t]Save Signature[/t]" />
<t>or</t> <a href="[n.page_user.user_profile_path/]"><t>Cancel</t></a>
</div>
</n.form.>
<script type="text/javascript">
var keynum, lines = 1;
$("#signature").keypress(function(event){
keynum =event.which;
if(keynum == 13) {
if(lines == 2) {
return false;
}else{
lines++;
}
}
});
</script>
</body>
</n.html>
</n.visitor.as_user_page.>
</override_macro>
My test forum.
|
|
Could I make it so that only those in my Signature Group can have signatures?
Right now it is used for allowing links. Look at this guys signature: http://forum.nyskiblog.com/template/NamlServlet.jtp?macro=user_nodes&user=494304 He's going to add a line each day he skis and he skis about 80 days a year.
HTTPS Please!
|
| Free forum by Nabble | Edit this page |
