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
Can the Member page be modded?
Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Aug 7, 2017 - 10:36 am

Sorry, I do have one more question: I noticed Member URLs open in the same window. I'd like to modify this to open in a new window. Would the be possible?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 7, 2017 - 12:44 pm

Can you explain what you mean by 'member url' please? Or do you just mean the members listing? If so then we cannot redirect to another WP page I am afraid., All forum content uses the single, WP page object. It is possible to check what is about to be displayed if that might be of help...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 7, 2017 - 10:27 pm

@yellow-swordfish he is talking about the member url listed for each member if they have entered one...

yes, you can change the target if you like... in the template file, find this similar to this line from reboot:

sp_MemberListUrl('', __sp('Member URL')); sp_MemberListUrl('', __sp('Member URL'));

and change it to:

sp_MemberListUrl('targetNew=1', __sp('Member URL')); sp_MemberListUrl('', __sp('Member URL'));

note, you are adding targetNew=1 to the first string... its possible you already have something in there while my example is empty string...  if there is something in that string, enter '&targetNew=1'..

Oddly though, the new tab option should be the default...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 7, 2017 - 10:36 pm

oh darn... I see why... what I gave you wont work...  we do that only for website icon, not for the text...  not sure why, but how it currently is...

we use a WordPress function to build the url and it does not offer the option to add the target attribute...

two options...

one change the template tag call to be:

sp_MemberListUrl('showIcon=1', __sp('Member URL'));

this will show an icon instead of the url text, but the icon will be clickable and will open in an new tab...

two, filter the url yourself and add the target attribute...  filter 'sph_MemberListUrl' and add ' target="_blank"' to the url after the '<a' characters...

Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Aug 9, 2017 - 12:57 pm

Thank you so much. I've added the icon, easiest solution. That looks good too.

For some reason I didn't get a email notification for new posts on this thread, even though I am subscribed. Just wanted to mention that briefly.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 9, 2017 - 3:49 pm

No - we are not getting our admin emails either. Were are investigating... thanks for the confirmation.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 9, 2017 - 9:33 pm

believe its been resolved... is working for me now...

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: 643
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17343
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10117
Posts: 79590