[ABD] Group Template Variables

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
nou nou
Registered User
Posts: 702
Joined: Sat Oct 29, 2016 8:08 pm

Re: [RC] Group Template Variables

Post by nou nou »

Just stumbled on this and would love to give it a shot. Seems this has been an [RC] for a while - any chance it may be added to the Extensions DB (ever)?

:)
sakkiotto
Registered User
Posts: 236
Joined: Mon Jun 13, 2005 9:45 pm

Re: [RC] Group Template Variables

Post by sakkiotto »

the extension works without problems.. respect all other RC extension :D

don't worry
User avatar
nou nou
Registered User
Posts: 702
Joined: Sat Oct 29, 2016 8:08 pm

Re: [RC] Group Template Variables

Post by nou nou »

Sweet - thanks for letting me know, I'll test it :)
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: [RC] Group Template Variables

Post by jackennils »

I would like to use it in viewtopic postrow. Can you add support for displaying it in postrow?

Code: Select all

<!-- IF S_GROUP_23 -->
works, but not for individual users in viewtopic like

Code: Select all

<!-- IF postrow.S_GROUP_23 -->
User avatar
martti
Registered User
Posts: 914
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [RC] Group Template Variables

Post by martti »

jackennils wrote: Fri Apr 27, 2018 9:08 pm I would like to use it in viewtopic postrow. Can you add support for displaying it in postrow?

Code: Select all

<!-- IF S_GROUP_23 -->
works, but not for individual users in viewtopic like

Code: Select all

<!-- IF postrow.S_GROUP_23 -->
The scope of this extension is only the current user.
It would be better to put the functionality that you want in another extension.
That's more optimal.
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: [RC] Group Template Variables

Post by jackennils »

I understand. Thank you. You would mind making such another extension? ;)
Last edited by jackennils on Sat Apr 28, 2018 11:49 am, edited 1 time in total.
User avatar
John Rambo
Registered User
Posts: 84
Joined: Tue Jun 18, 2013 8:46 pm

Re: [RC] Group Template Variables

Post by John Rambo »

topic put in bookmarks đź“–
User avatar
martti
Registered User
Posts: 914
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [RC] Group Template Variables

Post by martti »

jackennils wrote: Sat Apr 28, 2018 10:04 am I understand. Thank you. You would not mind making such another extension? ;)
Is it only for the posters in viewtopic? No other places? What do you want to use it for?
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: [RC] Group Template Variables

Post by jackennils »

I'm using the official extension "Auto Groups" to track some "achievements" of my users. Basically, I'm building a simple badge system to display nice little images inside the users miniprofile and profile.

Stuff like: When the user has been registered for over a year, he is moved into the Auto Group "1+ year". And if he is in that group, I want to show the icon xyz.png in the (mini)profile.

I'd like to display the icons in:
- viewtopic_body
- ucp_pm_viewmessage
- memberlist_view

That is the reason why I need an extension that checks if a user (not just me) is in a certain group.
User avatar
nou nou
Registered User
Posts: 702
Joined: Sat Oct 29, 2016 8:08 pm

Re: [RC] Group Template Variables

Post by nou nou »

Wouldn't the profile flair extension do that?

https://www.phpbb.com/customise/db/exte ... ile_flair/
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: [RC] Group Template Variables

Post by jackennils »

No it does not.
User avatar
martti
Registered User
Posts: 914
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [RC] Group Template Variables

Post by martti »

jackennils wrote: Sat Apr 28, 2018 10:04 am I understand. Thank you. You would mind making such another extension? ;)
I've started something.
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: [RC] Group Template Variables

Post by jackennils »

Wow, this looks very promising. Thank you. Right now I'm not at home, but I'll check it out in a couple of hours and will report back. :)
Mohammed AlSarsawi
Registered User
Posts: 72
Joined: Fri Mar 03, 2017 1:35 pm

Re: [RC] Group Template Variables

Post by Mohammed AlSarsawi »

Thank you for this Ext.
it solved a lot of my problems

How can I write more than 1 group id
I tried several things but didn't work

also it not working with "test user permissions"
User avatar
martti
Registered User
Posts: 914
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [RC] Group Template Variables

Post by martti »

Mohammed AlSarsawi wrote: Tue Jun 05, 2018 10:04 am How can I write more than 1 group id
I tried several things but didn't work

also it not working with "test user permissions"
You mean like:

Code: Select all

{%- if S_GROUP_2 or S_GROUP_3 -%}
This is visible when the current user is in group 2 or 3 or both
{%- endif -%}
?

Return to “Abandoned Extensions”