Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Change "Members list" URL
Avatar
Julian Paul Francis Kitagawa
Member
Free Members
sp_UserOfflineSmall Offline
Feb 6, 2015 - 7:25 pm

I want to direct the "Members" button to a members directory generated by Wishlist member (i.e. an external page).

Is there any way to do this?

I thought maybe I could just change the URL in the Simple Press functions... but I can't find where determines the URL.

If you want to know why I want to do this, the default page generated by Simple Press shows people who have cancelled their account, and people who are on courses which don't have forum access... so it's quite confusing for members.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 6, 2015 - 9:06 pm

see;  https://simple-press.com/docum.....berbutton/

you would change the link argument to the function call...  you can find the function usage in your sp theme, spHead.php template file...

remember, we strongly suggest a child theme for before making any theme edits...

btw, you can also custom the members shown...  even limit it to only usergroups the member is a member of...

Avatar
Julian Paul Francis Kitagawa
Member
Free Members
sp_UserOfflineSmall Offline
Feb 6, 2015 - 10:44 pm

Mr Papa said

btw, you can also custom the members shown...  even limit it to only usergroups the member is a member of...

Thank you.

The problem with this is that there seems to be no easy way to create user groups based on Wishlist member levels (which controls registration and access to all my courses). I did see a way to do this by creating a custom "role" in wordpress, but that only works for people who are registering a new account (which is generally not the case for me).

Sorry, can I ask, which part of this is the "link argument"? 

sp_MemberButton('tagClass=spButton spRight', __sp('Members'), __sp('View the members list'));

Say I wanted this to go to, http://myurl.com/members-directory ... how would I do that?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 7, 2015 - 12:29 am

sorry, not following you...

you can map any wp role (and thus wishlist level) to any sp usergroup...  if you set up the mapping, it does only happen for new users... but on forum - usergroups - map users to usergroups, you can force the wp role to sp usergroup mapping to happen at anytime for existing users...

something like this:

sp_MemberButton('tagClass=spButton spRight&link=http://myurl.com/members-directory', __sp('Members'), __sp('View the members list'));
Avatar
Julian Paul Francis Kitagawa
Member
Free Members
sp_UserOfflineSmall Offline
Feb 7, 2015 - 1:26 am

Thank you, that works!

Yes, I'll admit an external members directory isn't the best way to do it.

Basically I have a membership programme (with forum) and several stand-alone products (no forum) all managed by wishlist levels.

I guess the real problem I have is not being able to automatically assign existing users to roles based on wishlist level. I can use a plugin that lets me assign multiple roles to a user (which I can then map to SP) ... and I can map future new registrations... but that doesn't help me with my 500 existing members (not everybody is on all levels) or with people who register for a stand alone product, and then move to the membership programme.

The amount of manual work involved just far outweighs the benefits, really. Unless I'm totally misunderstanding the way it all works.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 7, 2015 - 4:57 am

Will the automatic mapping not help here? Or is it more arranging all of these users into a WP role that is the issue. I agree it sounds a little painful to contemplate but I would think there is much to gain by trying to get it done.

andy-signature.png
YELLOW
SWORDFISH
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: 639
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17342
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10116
Posts: 79581