Page 1 of 3

Signature Image Check

Posted: Wed Jul 22, 2009 4:44 am
by Extensions Robot
Modification name: Signature Image Check
Author: RMcGirr83
Modification description: Will allow an Admin to set the number and sizes of images posted as bbcode in user signatures.
Modification version: 1.0.2
Tested on phpBB version: 3.0.6

Download file: sig_image_check.zip
File size: 37.33 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extensions Team may not be able to provide support.

-->Modification support<--

Signature Image Check

Posted: Wed Jul 22, 2009 4:44 am
by DavidIQ
Modification validated/released

Notes:

Signature Image Check

Posted: Wed Jul 22, 2009 4:44 am
by RMcGirr83
Thanks David!!

Screenies

Re: Signature Image Check

Posted: Wed Jul 22, 2009 10:10 pm
by thesecret
nice one

Re: Signature Image Check

Posted: Thu Jul 23, 2009 9:54 am
by Sr X
usefull to me, great! thanks.

Re: Signature Image Check

Posted: Wed Aug 05, 2009 11:27 am
by WastedJoker
How does this differ from default method? Thought you could control smilies from ACP without a mod?

Re: Signature Image Check

Posted: Wed Aug 05, 2009 1:46 pm
by RMcGirr83
Uhmmm, where does it state it controls smilies?

Read the description of the mod please.

Re: Signature Image Check

Posted: Sun Aug 09, 2009 1:36 am
by Shadow21
What's suppose to happen when you run db_install.php? When I run it the only thing that happens is it brings me to my forum again but the theme doesn't load.

Re: Signature Image Check

Posted: Sun Aug 09, 2009 6:54 am
by RMcGirr83
It updates the database placing max_sig_img_count and max_sig_img_size into the config table of the database. When completed will state that the database was updated correctly or not.

Re: Signature Image Check

Posted: Thu Aug 13, 2009 7:03 pm
by vlh1217
I installed this mod cleared cache and it's not showing up in acp under signiture settings any idea what is going on files were copied to correct directory and as far as I can tell the page edits were done correctly

Re: Signature Image Check

Posted: Thu Aug 13, 2009 7:10 pm
by RMcGirr83
Are you absolutely positive you uploaded the edited acp files and purged the cache in the ACP itself?

Re: Signature Image Check

Posted: Thu Aug 13, 2009 7:24 pm
by vlh1217
RMcGirr83 wrote:Are you absolutely positive you uploaded the edited acp files and purged the cache in the ACP itself?
yep just re checked and uploaded files again and purged cache and still nothing first time i've ever had a problem with a mod.

Re: Signature Image Check

Posted: Thu Aug 13, 2009 7:57 pm
by Ahri89
I have this 3 times:

Code: Select all

		if (!$update_this_message)
		{
			unset($this->message);
I need help to install this mod.

Re: Signature Image Check

Posted: Thu Aug 13, 2009 8:12 pm
by RMcGirr83
Ahri89 wrote:I have this 3 times:

Code: Select all

		if (!$update_this_message)
		{
			unset($this->message);
I need help to install this mod.
Follow the mod install instructions in order and you will see which one is correct.
vlh1217 wrote:
yep just re checked and uploaded files again and purged cache and still nothing first time i've ever had a problem with a mod.
Zip up the ACP files this mod has you edit and attach them and I will have a look.

Re: Signature Image Check

Posted: Thu Aug 13, 2009 8:50 pm
by Ahri89
RMcGirr83 wrote:
Ahri89 wrote:I have this 3 times:

Code: Select all

		if (!$update_this_message)
		{
			unset($this->message);
I need help to install this mod.
Follow the mod install instructions in order and you will see which one is correct.
mmm i use the fisrt result and add after of ( // Check number of links):

Code: Select all

		// Check number of links
		if ($config['max_' . $mode . '_urls'] && $num_urls > $config['max_' . $mode . '_urls'])
		{
			$this->warn_msg[] = sprintf($user->lang['TOO_MANY_URLS'], $config['max_' . $mode . '_urls']);
			return (!$update_this_message) ? $return_message : $this->warn_msg;
		}

// BEGIN MOD signature image check
		if($config['max_sig_img_count'] && $this->mode == 'sig' && strpos($this->message, '[') !== false)
		{
			$user->add_lang('mods/sig_image_check');
			$num_imgs = 0;
			$num_imgs += $this->parsed_items['img'];
			
			// check the number of images in the sig
			if ($num_imgs > $config['max_sig_img_count'])
			{
				$num_over = $num_imgs - $config['max_sig_img_count'];
				
				if($config['max_sig_img_count'] > 1)
				{
					$this->warn_msg[] = sprintf($user->lang['MAX_IMGS_COUNT_EXCEEDED'], $config['max_sig_img_count'], $num_over);
					return (!$update_this_message) ? $return_message : $this->warn_msg;
				}
				else
				{
					$this->warn_msg[] = sprintf($user->lang['MAX_IMG_COUNT_EXCEEDED'], $config['max_sig_img_count'] , $num_over);
					return (!$update_this_message) ? $return_message : $this->warn_msg;
				}
			}
		}
// END MOD signature image check
		
		if (!$update_this_message)
		{
			unset($this->message);
			$this->message = $tmp_message;
			return $return_message;
		}
Here my spanish translation:

[The extension zip has been deactivated and can no longer be displayed.]