[ok] IS IN GROUP ?

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
Locked
ldd
Registered User
Posts: 26
Joined: Thu Feb 12, 2004 9:16 am
Location: France

[ok] IS IN GROUP ?

Post by ldd »

Hello to all (and thank you in advance for your help).

As part of the adaptation of a style, I seek to test belonging to a group within index_body to display
specific.

I've tried different combinations, but with just little success ...

in : \includes\functions.php

after :

Code: Select all

'S_USER_LOGGED_IN'      => ($user->data['user_id'] != ANONYMOUS) ? true : false,
I add :

Code: Select all

'S_USER_GROUP_IN'      => ($user->data['group_id'] == 14) ? true : false,

in : index_body

I test :

Code: Select all

    <!-- IF S_USER_GROUP_IN --> 
        mon code 
    <!-- ENDIF --> 

But this procedure only works if the user to this group as default group ...

How to improve the operation and allow the test of belonging to a group even if it is not the default group ... ?

Thank you for your help!
Last edited by stickerboy on Thu May 20, 2010 1:43 am, edited 2 times in total.
Reason: Topic icon changed
LDD

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

Re: IS IN GROUP ?

Post by RMcGirr83 »

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

ldd
Registered User
Posts: 26
Joined: Thu Feb 12, 2004 9:16 am
Location: France

Re: IS IN GROUP ?

Post by ldd »

YOU ARE THE BEST !

Very thank you !

Image
LDD

Locked

Return to “[3.0.x] Styles Support & Discussion”