BBCode for a group of "ID" (phpBB3.1)

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Get Involved
Post Reply
FinStar
Registered User
Posts: 8
Joined: Sat Feb 27, 2016 2:08 pm

BBCode for a group of "ID" (phpBB3.1)

Post by FinStar » Sat Feb 27, 2016 2:17 pm

Hi, I have a slight problem with the power using one adaptation viewtopic.php?f=456&t=2214031 I work perfectly, but there is one BBCode [hidden], and he works so that users who are not registered and do not see content that is "hidden" but registered users and login, so they see it and see it all, but I ask you if this is somehow You can do this only for certain groups to Fork? or "ID" groups.
bbcodes_parser.php (Line 87.)

Code: Select all

	protected function hidden_pass($matches)
	{
		if ($this->user->data['user_id'] == ANONYMOUS || $this->user->data['is_bot'])
		{
			$replacements = array(
				$this->user->lang('ABBC3_HIDDEN_ON'),
				$this->user->lang('ABBC3_HIDDEN_EXPLAIN'),
				'hidebox_hidden',
			);
		}
		else
		{
			$replacements = array(
				$this->user->lang('ABBC3_HIDDEN_OFF'),
				$matches[1],
				'hidebox_visible',
			);
		}

		return str_replace(
			array('{HIDDEN_TITLE}', '{HIDDEN_CONTENT}', '{HIDDEN_CLASS}'),
			$replacements,
			'<div class="hidebox {HIDDEN_CLASS}"><div class="hidebox_title {HIDDEN_CLASS}">{HIDDEN_TITLE}</div><div class="{HIDDEN_CLASS}">{HIDDEN_CONTENT}</div></div>'
		);
	}
}
EDIT:

I made you follow these instructions

https://www.phpbb.com/customise/db/mod/ ... pic/102657

User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 6031
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: BBCode for a group of "ID" (phpBB3.1)

Post by Raul [ThE KuKa] » Sat Feb 27, 2016 3:41 pm

If relative Advanced BBCode BOX, ask in the Support Section of the extension please. ;)

Edit:

You are mixing issues extensions and MODs, and are different cases.
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
:flag_es: phpBB Spain - Online Since 2003 :heart:



FinStar
Registered User
Posts: 8
Joined: Sat Feb 27, 2016 2:08 pm

Re: BBCode for a group of "ID" (phpBB3.1)

Post by FinStar » Sat Feb 27, 2016 7:03 pm

I know, but I need only condition for moderators / administrators / some group, pleas.

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

Re: BBCode for a group of "ID" (phpBB3.1)

Post by RMcGirr83 » Sun Feb 28, 2016 11:09 am

Raul [ThE KuKa] wrote:If relative Advanced BBCode BOX, ask in the Support Section of the extension please. ;)
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 “Extension Requests”