extending the characters allowed in a smilies' names

zaiger

Active member
I am trying to add a short quote for the name of an emote so that it is shown when a user hovers over it, but I am getting the error "Please enter a value using 50 characters or fewer".

Anyone know how I can raise this limit? I have no problems with editing core files if that is the only way.
 
You would need to modify:

XenForo_DataWriter_Smilie

Code:
	protected function _getFields()
	{
		return array(
			'xf_smilie' => array(
				'smilie_id'   => array('type' => self::TYPE_UINT, 'autoIncrement' => true),
				'title'       => array('type' => self::TYPE_STRING, 'required' => true, 'maxLength' => 50,
						'requiredError' => 'please_enter_valid_title'
				),
				'smilie_text' => array('type' => self::TYPE_STRING, 'required' => true,
						'verification' => array('$this', '_verifySmilieText'), 'requiredError' => 'please_enter_valid_smilie_text'
				),
				'image_url'   => array('type' => self::TYPE_STRING, 'required' => true, 'maxLength' => 200,
						'requiredError' => 'please_enter_valid_url'
				),
				'sprite_mode' => array('type' => self::TYPE_BOOLEAN, 'default' => false),
				'sprite_params' => array('type' => self::TYPE_SERIALIZED, 'default' => ''),
			)
		);
	}

As well as edit the xf_smilie table in the database.
 
Top Bottom