Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Forum Ranks/Special Ranks --> Groups
Avatar
Mongfevned
Member
Free Members
sp_UserOfflineSmall Offline
Oct 22, 2014 - 7:00 am

Hello SP Team !

And here my next question ;)

At components, forum ranks it is able to put in special ranks but only connected to registered Members. For me it is very bad because at the end i will have some hundred members in 1 group (MNSG Members). so atm i dont want to put all registered to a group and then again in a special rank group -  this is double work...

Is it posible to connect to a group? so i can put a badge to 1 whole group to let shown it in the forum... ?

ng, markus/mong

sig_mong.jpg

 www.mnsg.net

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 22, 2014 - 7:40 am

I'm not sure I fully understand the question,

'Is it posible to connect to a group?' - You can certainly do this with automatic user group membership on the ranks page..

If I am on the wrong track please try and rephrase the question! sorry..

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 22, 2014 - 7:47 am

Perhaps user group level badges?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mongfevned
Member
Free Members
sp_UserOfflineSmall Offline
Oct 22, 2014 - 9:46 am

hello, thx for the answers. i try to answer more specific.

When i go to Components, Forum Rank and put in a Special Forum Rank like Moderator and put in a badge all is ok but there i have to put in users instead of grps. But this works, then i see the badges below the avatar in forum.

when i type in into Forum Ranks ae. Super-Moerator withour any post for rank or <1000 and i put in a badge i cant see it below the avatar - i cant see it anywhere.

and when i got to manage user groups and edit the user grp and put in a badges there, i also cant see it below the avatar icon....

 

sorry for my bad english and for my questions - maybe i am doing something completely wrong ... :(

 

ng markus / mong

sig_mong.jpg

 www.mnsg.net

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 22, 2014 - 11:55 am

This might sound like a bit of a pointless question but I'd kick myself if I didn't ask and it turned out to be the problem...

At the bottom of the ranks page do you have the right check's to display special ranks?

Avatar
Mongfevned
Member
Free Members
sp_UserOfflineSmall Offline
Oct 22, 2014 - 5:56 pm

yes it is enabled.

i can see the special ranks and also the badges below the avatar, but i must put single users to a special rank. in our community we have some hundreds members and so i want to connect a group like MNSG Member to a special rank.

for this i have to create this group, then put all people who deserve it to this grp. This Group is not the members group wehre u get in when u register on the page.

in special ranks i only can get the users by hand... user by user. so i have to do this job twice. once when they register to put them into the group and then to put them into the special ranks.

as special rank u get a badge below your avatar and this is a bonus for our members VS the normal registered and it gives them home ;)

and the other badges in group menu or forum rank doesnt work like the special rank....

thx in advance for your help and your time ;)

 

PS: At the Special Rank it would be kewl not only to get a button "add member" there but also a button with add group .... i hope u understand what i mean

sig_mong.jpg

 www.mnsg.net

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 22, 2014 - 10:36 pm

yes, you can only add individual users to a special rank (though multiple at once)...

As Andy said in post #3 you might be better off looking at usergroup badges...  that way you can specify a badge for an entire usergroup which sounds like what you want...

just edit the usergroup on forum - usergroups - manage usergroups and you can select a badge for any or all of the usergroups...

to display the usergroup badges, see:  https://simple-press.com/docum.....mberships/

by default, our themes show ranks, not usergroup badges... but you can add them with that template tag...

Avatar
Mongfevned
Member
Free Members
sp_UserOfflineSmall Offline
Oct 23, 2014 - 7:03 am

thx for the answer but...

after some long searching i found the right file... so i see this in it:

function sp_PostIndexUserMemberships($args='', $noMembershipLabel='', $adminLabel='') {
    global $spThisPost, $spThisPostUser, $spPaths;

 

how must it looks like ? like that ?

function sp_PostIndexUserMemberships('showBadge=1' $args='', $noMembershipLabel='', $adminLabel='') {
    global $spThisPost, $spThisPostUser, $spPaths;

sig_mong.jpg

 www.mnsg.net

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 23, 2014 - 8:28 am

It looks like you are looking at the core files which is incorrect. In the article posted by Mr Papa in post #7 it explains that the function is not used anywhere in our themes, so the only place you would find it if searching would be the core files which you don't want to change.

You will need to put the template function into the theme templates in a place where you would like it to display.

Theme templates for default theme as an example are in sp-resources > forum-themes > default > templates

If you want it to appear under a users avatar for example in a post, then you will need to open spTopicView.php from the default templates folder, and add the function sp_PostIndexUserMemberships() additionally, or instead of the current ranks function sp_PostIndexUserSpecialRank() (located on line 125 I believe)

In the brackets you can add arguments in the same way the surrounding functions in the template work, leaving it blank will display the default arguments as outlined in the article posted by Mr Papa in post #7

Hope this helps..

Avatar
Mongfevned
Member
Free Members
sp_UserOfflineSmall Offline
Oct 23, 2014 - 9:42 am

ah oki, thx a lot. now i understand a lot more. i will try to to modify this in the sptopicview - there where i chandeg the thing for the signature. ill let u know if it works ;)

sig_mong.jpg

 www.mnsg.net

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625