signatures

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
xv1600
Registered User
Posts: 192
Joined: Tue Nov 15, 2005 4:41 am

signatures

Post by xv1600 » Mon Mar 03, 2008 3:52 am

Can I enable signatures for some and disable sigs for others .Also can I set the signature length different for myself than the rest of the posters

jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: signatures

Post by jalaln » Mon Mar 10, 2008 11:04 am

Clear those members' signature (if they already have one), then do this:

You need to find the user_id of each user that you want to disallow from having signature since this will be hard-coded. Remember to change the user IDs below. To add more members, simply keep adding || $userdata['user_id'] != (user id)

Open: includes/usercp_register.php

Find:

Code: Select all

$unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#');
$unhtml_specialchars_replace = array('>', '<', '"', '&');

After, add:

Code: Select all

if ( $userdata['user_id'] != 333 || $userdata['user_id'] != 666 )
	{
		$template->assign_block_vars('yes_no_sig', array());
	}
Open: templates/subSilver/profile_add_body.tpl

Find:

Code: Select all

<tr> 
	  <td class="row1"><span class="gen">{L_SIGNATURE}:</span><br /><span class="gensmall">{L_SIGNATURE_EXPLAIN}<br /><br />{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>
	  <td class="row2"> 
		<textarea name="signature" style="width: 300px" rows="6" cols="30" class="post">{SIGNATURE}</textarea>
	  </td>
	</tr>

Before, add:

Code: Select all

<!-- BEGIN yes_no_sig -->

After, add:

Code: Select all

<!-- END yes_no_sig -->
No more spambots for phpBB2 and phpBB3.

jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: signatures

Post by jalaln » Mon Mar 10, 2008 5:28 pm

This is for your second request:

Open: includes/usercp_register.php

Find:

Code: Select all

strlen($signature) > $board_config['max_sig_chars']
In-line find:

Code: Select all

strlen($signature) > $board_config['max_sig_chars']
After, add:

Code: Select all

 && $userdata['user_level'] != ADMIN
No more spambots for phpBB2 and phpBB3.

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: signatures

Post by RMcGirr83 » Tue Mar 11, 2008 2:35 pm

xv1600 wrote:Can I enable signatures for some and disable sigs for others
http://www.phpbb.com/community/viewtopic.php?t=599529
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Post Reply

Return to “[2.0.x] MOD Requests”