Multiple Special Ranks

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)
Ideas Centre
Bruce Banner
Registered User
Posts: 624
Joined: Thu Sep 25, 2014 10:36 am

Multiple Special Ranks

Post by Bruce Banner » Fri Sep 28, 2018 4:32 pm

Could someone give this a try, please? Or tell me where I can find it if it exists already?

User avatar
Restless Rancor
Registered User
Posts: 183
Joined: Tue Sep 18, 2018 1:51 pm

Re: Multiple Special Ranks

Post by Restless Rancor » Fri Sep 28, 2018 5:02 pm

Hi, I'd like to register my interest in an extension that would allow this. To provide a bit more information than the OP provided, here's how I'd envision it working. It would essentially expand the functionality of the built in ranks system whilst touching on what this extension already does: https://www.phpbb.com/customise/db/exte ... ial_ranks/

Uses

Normal Ranks
Expanding on the existing system you would be able to set a new set of normal ranks with different criteria such as total topics and date of registration.
You could also have rank criteria based on other extensions, such as Thanks for Posts (times thanked/been thanked etc.), Referrals, Mentions count, Ultimate Points balance - the list can go on.
Example usage could be if someone has X Posts, Y Topics and have been a member for Z years they would have an "X Posts", "Y Topics" and "Z Years of Membership" rank.

Special Ranks
Simply allowing someone to have more than one special rank.
Example usage would be having one rank for "Admin", "Moderator", "Contributor", "VIP" etc.

I wouldn't know the first step about making an extension but would imagine having integration with many other extensions would be a mammoth task.
These aren't the droids you're looking for...
My Extensions and Snippets (Ref link)

User avatar
GanstaZ
Registered User
Posts: 566
Joined: Wed Oct 11, 2017 10:29 pm
Location: Zverse

Re: Multiple Special Ranks

Post by GanstaZ » Fri Sep 28, 2018 6:34 pm

About above post & ranks: Well.. i'm doing something similar for my own project, but it's not directly connected to ranks (at least not at the moment), but can be used/integrated with anything that have numerical values.
"When answer lies in the question,.. question becomes redundant!"

User avatar
Restless Rancor
Registered User
Posts: 183
Joined: Tue Sep 18, 2018 1:51 pm

Re: Multiple Special Ranks

Post by Restless Rancor » Fri Sep 28, 2018 6:57 pm

GanstaZ wrote:
Fri Sep 28, 2018 6:34 pm
About above post & ranks: Well.. i'm doing something similar for my own project, but it's not directly connected to ranks (at least not at the moment), but can be used/integrated with anything that have numerical values.
You have my attention :lol:
These aren't the droids you're looking for...
My Extensions and Snippets (Ref link)

User avatar
Noomcat
Registered User
Posts: 22
Joined: Tue May 15, 2018 3:26 pm

Re: Multiple Special Ranks

Post by Noomcat » Fri Oct 12, 2018 11:19 am

I would like to see this made a reality too. Currently I use Poseys's "Multi Ranks" which works with the latest PHPBB but it only allows up too 3 special ranks. I would like to see an extension that goes beyond that perhaps up to 5 special ranks? Is that possible?

Naomi

User avatar
Restless Rancor
Registered User
Posts: 183
Joined: Tue Sep 18, 2018 1:51 pm

Re: Multiple Special Ranks

Post by Restless Rancor » Fri Oct 12, 2018 11:52 am

Noomcat wrote:
Fri Oct 12, 2018 11:19 am
I would like to see this made a reality too. Currently I use Poseys's "Multi Ranks" which works with the latest PHPBB but it only allows up too 3 special ranks. I would like to see an extension that goes beyond that perhaps up to 5 special ranks? Is that possible?

Naomi
Hi Naomi, is it this extension you're referring to? I've not installed it as it's been abandoned.
Recently I've been looking into this a lot more and have found a way to make template edits to have extra ranks display, but it can get a bit messy. I'm in the process of writing it up in a readable "how to install" post for myself, but can share it with you once it's finished if you'd like?
These aren't the droids you're looking for...
My Extensions and Snippets (Ref link)

User avatar
KevC
Support Team Member
Support Team Member
Posts: 68401
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Multiple Special Ranks

Post by KevC » Fri Oct 12, 2018 12:03 pm

If you have more than one rank image that will be fairly 'permanent' for that user, you can always make them one graphic file. That way they have two visible ranks but it's only actually one rank 'slot'. Not the exact solution but for some instances it'll work fine.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

User avatar
Restless Rancor
Registered User
Posts: 183
Joined: Tue Sep 18, 2018 1:51 pm

Re: Multiple Special Ranks

Post by Restless Rancor » Fri Oct 12, 2018 12:16 pm

KevC wrote:
Fri Oct 12, 2018 12:03 pm
If you have more than one rank image that will be fairly 'permanent' for that user, you can always make them one graphic file. That way they have two visible ranks but it's only actually one rank 'slot'. Not the exact solution but for some instances it'll work fine.
Occam's Razor (kind of). I always forget.

I am still interested in seeing an extension which enables more customization features for ranks. I don't want to use the term 'to give us more freedom when assigning them', but it would essentially be this, but a key factor would be to include Normal and Special ranks- hopefully with multiple of each.
These aren't the droids you're looking for...
My Extensions and Snippets (Ref link)

koraldon
Registered User
Posts: 483
Joined: Sat Jun 30, 2007 12:42 pm

Re: Multiple Special Ranks

Post by koraldon » Sat Oct 13, 2018 9:22 am

Check out the profile flair extension

User avatar
Noomcat
Registered User
Posts: 22
Joined: Tue May 15, 2018 3:26 pm

Re: Multiple Special Ranks

Post by Noomcat » Mon Oct 15, 2018 10:28 am

Restless Rancor wrote:
Fri Oct 12, 2018 11:52 am
Noomcat wrote:
Fri Oct 12, 2018 11:19 am
I would like to see this made a reality too. Currently I use Poseys's "Multi Ranks" which works with the latest PHPBB but it only allows up too 3 special ranks. I would like to see an extension that goes beyond that perhaps up to 5 special ranks? Is that possible?

Naomi
Hi Naomi, is it this extension you're referring to? I've not installed it as it's been abandoned.
Recently I've been looking into this a lot more and have found a way to make template edits to have extra ranks display, but it can get a bit messy. I'm in the process of writing it up in a readable "how to install" post for myself, but can share it with you once it's finished if you'd like?
Oh yes, that is the one I am currently using. It works brilliantly but I would love to be add extra ranks if needed. Did you say you know a method or is it too complicated?
KevC wrote:
Fri Oct 12, 2018 12:03 pm
If you have more than one rank image that will be fairly 'permanent' for that user, you can always make them one graphic file. That way they have two visible ranks but it's only actually one rank 'slot'. Not the exact solution but for some instances it'll work fine.
I have done this but unfortunatley I have to change the ranks frequently as it's kinda oa rewards thing!

User avatar
Restless Rancor
Registered User
Posts: 183
Joined: Tue Sep 18, 2018 1:51 pm

Re: Multiple Special Ranks

Post by Restless Rancor » Mon Oct 15, 2018 2:29 pm

Noomcat wrote:
Mon Oct 15, 2018 10:28 am

Oh yes, that is the one I am currently using. It works brilliantly but I would love to be add extra ranks if needed. Did you say you know a method or is it too complicated?
The method I found was to use IF statements to read the members posts and display an image true or move onto the next IF statement if false. If you have the NASR extension installed you only need to do this to the memberlist to get them to show, as they show by default on the viewtopic screens, but you can apply the same method basically anywhere to get the desired result without the extension installed.

With the extension installed it's quite simple to add to the memberlist with an IF statement like this:
<!-- IF memberrow.POSTS < 500 and memberrow.POSTS >= 250 --><br /><img src="images/ranks/new/250.png"><!-- ENDIF -->
You need to add to the memberlist.php file though:

Find:

Code: Select all

'FORUMS'		=> $row['forums'],
'FORUM_OPTIONS'	=> (isset($row['forums_options'])) ? true : false,
'RANK_TITLE'	=> $user_rank_data['title'],
Add After:

Code: Select all

'U_POSTS'	    => $row['user_posts'],
So as I said the method is very messy and requires core file changes. If you understand what I mean and can take it from there, great, but I am writing these up as instructions for myself today so I can poke you the link if you'd like :)
These aren't the droids you're looking for...
My Extensions and Snippets (Ref link)

User avatar
Noomcat
Registered User
Posts: 22
Joined: Tue May 15, 2018 3:26 pm

Re: Multiple Special Ranks

Post by Noomcat » Tue Oct 16, 2018 10:35 am

Restless Rancor wrote:
Mon Oct 15, 2018 2:29 pm
Noomcat wrote:
Mon Oct 15, 2018 10:28 am

Oh yes, that is the one I am currently using. It works brilliantly but I would love to be add extra ranks if needed. Did you say you know a method or is it too complicated?
The method I found was to use IF statements to read the members posts and display an image true or move onto the next IF statement if false. If you have the NASR extension installed you only need to do this to the memberlist to get them to show, as they show by default on the viewtopic screens, but you can apply the same method basically anywhere to get the desired result without the extension installed.

With the extension installed it's quite simple to add to the memberlist with an IF statement like this:
<!-- IF memberrow.POSTS < 500 and memberrow.POSTS >= 250 --><br /><img src="images/ranks/new/250.png"><!-- ENDIF -->
You need to add to the memberlist.php file though:

Find:

Code: Select all

'FORUMS'		=> $row['forums'],
'FORUM_OPTIONS'	=> (isset($row['forums_options'])) ? true : false,
'RANK_TITLE'	=> $user_rank_data['title'],
Add After:

Code: Select all

'U_POSTS'	    => $row['user_posts'],
So as I said the method is very messy and requires core file changes. If you understand what I mean and can take it from there, great, but I am writing these up as instructions for myself today so I can poke you the link if you'd like :)
I am so sorry lovely and I appreciate everything you just said but I am not a coder and I have no idea what you just tried to explain too me. What I really want is to apply "Special" ranks to members manually when they preform certain duties in the forum like rewards for winning competitions etc, not ranks that are awarded for post counts etc. This, I believe is what Posey's "Multi Ranks" add-on does but unfortunately it only allows you too add 3 special ranks. I wanted to know if it was possible to mess with the code of that add-on to extend it too, lets say 5. I am guessing it is more difficult than I anticipated. Some one on the forum did say they figured out a way but they can not be contacted anymore which is unfortunate!

Image

User avatar
Restless Rancor
Registered User
Posts: 183
Joined: Tue Sep 18, 2018 1:51 pm

Re: Multiple Special Ranks

Post by Restless Rancor » Tue Oct 16, 2018 10:51 am

Noomcat wrote:
Tue Oct 16, 2018 10:35 am

I am so sorry lovely and I appreciate everything you just said but I am not a coder and I have no idea what you just tried to explain too me. What I really want is to apply "Special" ranks to members manually when they preform certain duties in the forum like rewards for winning competitions etc, not ranks that are awarded for post counts etc. This, I believe is what Posey's "Multi Ranks" add-on does but unfortunately it only allows you too add 3 special ranks. I wanted to know if it was possible to mess with the code of that add-on to extend it too, lets say 5. I am guessing it is more difficult than I anticipated. Some one on the forum did say they figured out a way but they can not be contacted anymore which is unfortunate!
Nothing to apologize for!
So, the often forgotten method is as KevC suggested:
KevC wrote:
Fri Oct 12, 2018 12:03 pm
If you have more than one rank image that will be fairly 'permanent' for that user, you can always make them one graphic file. That way they have two visible ranks but it's only actually one rank 'slot'. Not the exact solution but for some instances it'll work fine.
Or, this extension may help you towards your goal: https://www.phpbb.com/customise/db/exte ... ile_flair/


:)
These aren't the droids you're looking for...
My Extensions and Snippets (Ref link)

User avatar
Noomcat
Registered User
Posts: 22
Joined: Tue May 15, 2018 3:26 pm

Re: Multiple Special Ranks

Post by Noomcat » Tue Oct 16, 2018 11:39 am

Restless Rancor wrote:
Tue Oct 16, 2018 10:51 am
Noomcat wrote:
Tue Oct 16, 2018 10:35 am

I am so sorry lovely and I appreciate everything you just said but I am not a coder and I have no idea what you just tried to explain too me. What I really want is to apply "Special" ranks to members manually when they preform certain duties in the forum like rewards for winning competitions etc, not ranks that are awarded for post counts etc. This, I believe is what Posey's "Multi Ranks" add-on does but unfortunately it only allows you too add 3 special ranks. I wanted to know if it was possible to mess with the code of that add-on to extend it too, lets say 5. I am guessing it is more difficult than I anticipated. Some one on the forum did say they figured out a way but they can not be contacted anymore which is unfortunate!
Nothing to apologize for!
So, the often forgotten method is as KevC suggested:
KevC wrote:
Fri Oct 12, 2018 12:03 pm
If you have more than one rank image that will be fairly 'permanent' for that user, you can always make them one graphic file. That way they have two visible ranks but it's only actually one rank 'slot'. Not the exact solution but for some instances it'll work fine.
Or, this extension may help you towards your goal: https://www.phpbb.com/customise/db/exte ... ile_flair/


:)
I just downloaded the "flair" one yesterday. I love it but am waitting on a response on how to resize the icons as they are soooooooo small :D

User avatar
Restless Rancor
Registered User
Posts: 183
Joined: Tue Sep 18, 2018 1:51 pm

Re: Multiple Special Ranks

Post by Restless Rancor » Tue Oct 16, 2018 2:41 pm

Noomcat wrote:
Tue Oct 16, 2018 11:39 am
I just downloaded the "flair" one yesterday. I love it but am waitting on a response on how to resize the icons as they are soooooooo small :D
Awesome, good to hear!

Have a look in root/ext/stevotvr/flair/styles/all/theme/flair.css, that should point you in the right direction to change the icon sizes :)
These aren't the droids you're looking for...
My Extensions and Snippets (Ref link)

Post Reply

Return to “Extension Requests”

Who is online

Users browsing this forum: Leinad4Mind and 11 guests