MyBB Community Forums

Full Version: How To Always Enable Signature When Posting?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Big Grin I shall have another go Big Grin. Thanks Greg.
Tell me if it works, because it definitely worked for me.

{$postoptionschecked['signature']} renders the html output as checked="checked" by default (if they have a signature), therefore removing this code should remove the output of checked="checked".
(2014-03-31, 09:02 AM)Greg Winston Wrote: [ -> ]Is it possible to tick every user's Checkbox that says "Signature: include your signature. (registered users only)" automatically?

Basically I need the checkbox always to be checked, so that every persons Signature is visible when posting.

Is this possible to always enable signatures when posting?

(2014-04-15, 10:27 PM)zalta1980 Wrote: [ -> ]Is there a way for the checkbox to always be enabled for all users?

You have to delete some codes from some templates in order for the user to NOT be able to UNCHECK the signature-box, here are the templates (link) below ( except PM template )
* change http://localhost/mybb1613/admin/ to the PATH to YOUR "forum admin folder" / URL

http://localhost/mybb1613/admin/index.php?module=style-templates&action=edit_template&title=usercp_editsig&sid=1&expand=24|26|2|29|31|-1|15
usercp_editsig << template

find
<label><input type="radio" class="radio" name="updateposts" value="enable" />&nbsp;{$lang->enable_sig_posts}</label><br />  <line 34
<label><input type="radio" class="radio" name="updateposts" value="disable" />&nbsp;{$lang->disable_sig_posts}</label><br /> < line 35
<label><input type="radio" class="radio" name="updateposts" value="0" checked="checked" />&nbsp;{$lang->leave_sig_settings}</label></span> < line 36
</td>

change to

<label><input type="radio" class="radio" name="updateposts" value=""0" checked="checked" />&nbsp;{$lang->enable_sig_posts}</label>
</td>

and delete lines 35 and 36 , now save that template.

Next you're going to hide the option from being unchecked by users

in new reply template

http://localhost/mybb1613/admin/index.php?module=style-templates&action=edit_template&title=newreply&sid=1&expand=24|26|2|29|31|-1|15|5|3|23

find
{$option_signature}  < line 39 - remove this line 
{$disablesmilies}  <  line 40
changed to
{$disablesmilies}

next

http://localhost/mybb1613/admin/index.php?module=style-templates&action=edit_template&title=newreply_options_signature&sid=1&expand=24|26|2|29|31|-1|15|5|3|23
in template = newreply_options_signature
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="6"{$postoptionschecked['signature']} /> {$lang->options_sig}</label><br />
^^ delete everything., leaving it blank . and save the template

next
http://localhost/mybb1613/admin/index.php?module=style-templates&action=edit_template&title=showthread_quickreply&sid=1&expand=24|26|2|29|31|-1|15|5|3|23|38|16|37|36|14
showthread_quickreply
find and delete "{option_signature}", then save the template

next, in template newthread_options_signature

http://localhost/mybb1613/admin/index.php?module=style-templates&action=edit_template&title=newthread_options_signature&sid=1&expand=24|26|2|29|31|-1|15|5|3|23|38|16|37|36|14|20|33|12|22
^^ and delete everything, then save (now blank)

Then run the query in the message below, it will enable all-signatures for those that didn't enable them before you do this modification

(2014-04-01, 10:14 PM)thexshadow Wrote: [ -> ]There is a checkbox when posting to disable your signature in posts. If you want all your posts to have signatures from now on, you are going to have to remove that from the template.

And the people who have there signatures disabled, take a look at the "mybb_users" table (database).

You could also run this.
UPDATE mybb_users SET showsigs = '1' WHERE showsigs = '0';

That's all folks.


* Always backup files and data before making changes.
* No warranty implied.
Pages: 1 2