[3.2][RC] Group Template Variables

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
nou nou
Registered User
Posts: 194
Joined: Sat Oct 29, 2016 8:08 pm

Re: [RC] Group Template Variables

Post by nou nou » Thu Apr 26, 2018 10:14 pm

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: 224
Joined: Mon Jun 13, 2005 9:45 pm

Re: [RC] Group Template Variables

Post by sakkiotto » Thu Apr 26, 2018 10:30 pm

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

don't worry

nou nou
Registered User
Posts: 194
Joined: Sat Oct 29, 2016 8:08 pm

Re: [RC] Group Template Variables

Post by nou nou » Thu Apr 26, 2018 10:32 pm

Sweet - thanks for letting me know, I'll test it :)

jackennils
Registered User
Posts: 159
Joined: Mon Jun 01, 2009 7:48 pm

Re: [RC] Group Template Variables

Post by jackennils » 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 -->

User avatar
martti
Registered User
Posts: 583
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [RC] Group Template Variables

Post by martti » Sat Apr 28, 2018 3:50 am

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.

jackennils
Registered User
Posts: 159
Joined: Mon Jun 01, 2009 7:48 pm

Re: [RC] Group Template Variables

Post by jackennils » Sat Apr 28, 2018 10:04 am

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: 74
Joined: Tue Jun 18, 2013 8:46 pm

Re: [RC] Group Template Variables

Post by John Rambo » Sat Apr 28, 2018 10:11 am

topic put in bookmarks 📖

User avatar
martti
Registered User
Posts: 583
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [RC] Group Template Variables

Post by martti » Sat Apr 28, 2018 11:06 am

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?

jackennils
Registered User
Posts: 159
Joined: Mon Jun 01, 2009 7:48 pm

Re: [RC] Group Template Variables

Post by jackennils » Sat Apr 28, 2018 11:47 am

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.

nou nou
Registered User
Posts: 194
Joined: Sat Oct 29, 2016 8:08 pm

Re: [RC] Group Template Variables

Post by nou nou » Sat Apr 28, 2018 5:10 pm

Wouldn't the profile flair extension do that?

https://www.phpbb.com/customise/db/exte ... ile_flair/

jackennils
Registered User
Posts: 159
Joined: Mon Jun 01, 2009 7:48 pm

Re: [RC] Group Template Variables

Post by jackennils » Sat Apr 28, 2018 5:40 pm

No it does not.

User avatar
martti
Registered User
Posts: 583
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [RC] Group Template Variables

Post by martti » Sun Apr 29, 2018 4:43 am

jackennils wrote:
Sat Apr 28, 2018 10:04 am
I understand. Thank you. You would mind making such another extension? ;)
I've started something.

jackennils
Registered User
Posts: 159
Joined: Mon Jun 01, 2009 7:48 pm

Re: [RC] Group Template Variables

Post by jackennils » Sun Apr 29, 2018 7:43 am

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: 67
Joined: Fri Mar 03, 2017 1:35 pm

Re: [RC] Group Template Variables

Post by Mohammed AlSarsawi » Tue Jun 05, 2018 10:04 am

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: 583
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [RC] Group Template Variables

Post by martti » Tue Jun 05, 2018 10:14 am

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 -%}
?

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: Ibedejo, oBot and 22 guests