Where to get Group variable and value

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Ideas Centre
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
User avatar
ameisez
Registered User
Posts: 1166
Joined: Sun Nov 04, 2007 7:04 am

Where to get Group variable and value

Post by ameisez » Sun Jun 27, 2010 10:46 pm

Hi,

What is the group variable and how can i see its current value?

I want to be able to pass a boolean value within the template files. Something like...

Code: Select all

<!-- IF GROUP_ALLOWED -->
 html codes
<!-- ENDIF -->
But for that to work, I would need something like this in the php page...

Code: Select all

//DISPLAY IF GROUP ALLOWED
if ($group_id == XX)
{
    $template->assign_var('GROUP_ALLOWED', true);
}
The problem is I don't know where to get that group_id value and I am not sure if variable $group_id really represents the group. I want to apply this to a custom group.

Any idea?

Thanks,
ameisez
PHPBB on HOSTGATOR SERVER. MY PERSONAL CHOICE ;)
Need phpBB images and buttons? HIRE ME
my MOD: BB3 Media Player | a phpbb based media player

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50812
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Where to get Group variable and value

Post by stevemaury » Sun Jun 27, 2010 11:05 pm

For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

User avatar
ameisez
Registered User
Posts: 1166
Joined: Sun Nov 04, 2007 7:04 am

Re: Where to get Group variable and value

Post by ameisez » Mon Jun 28, 2010 12:15 am

WOW! thanks a lot.

I did not expect a solid solution like that but that is exactly what I needed.

IMHO, it is a KB material. someone should file it up in the KB ;)

Thanks a lot
ameisez
PHPBB on HOSTGATOR SERVER. MY PERSONAL CHOICE ;)
Need phpBB images and buttons? HIRE ME
my MOD: BB3 Media Player | a phpbb based media player

Locked

Return to “[3.0.x] Support Forum”