protected function bbcode_action($tag, $part, $position, $tag_extended = false)
	{
		for ($i = 1; $i <= $this->array_size; $i++)
		{
			if ($this->bbcode_list[$this->array_size - $i]['bbcode_tag'] == $tag)
			{
				if (!$this->bbcode_list[$this->array_size - $i][$part])
				{
					$this->bbcode_list[$this->array_size - $i][$part] = $position;
					if ($tag_extended)
					{
						$this->bbcode_list[$this->array_size - $i]['bbcode_tag'] = $tag_extended;
					}
					return;
				}
			}
		}
	}