latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Profile Hyperlinks with s2Member?

Home Forums Community Forum Profile Hyperlinks with s2Member?

This topic contains 1 reply, has 1 voice. Last updated by  Chris Fellini 3 years, 2 months ago.

Topic Author Topic
Posted: Tuesday Oct 22nd, 2013 at 7:31 am #60530

I changed as suggested my Bp custom profile fields to using the s2Member “Custom Registration/Profile Fields” instead because I needed more control of the fields for different membership levels.

However I found that setting up profile fields with the Bp option was much newbie friendlier for someone not techie minded.

How do I get those profile field hyperlinks back and toggle visibility without having to be wizkid?

Thank you all….

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Friday Nov 1st, 2013 at 4:43 pm #60802

The great s2Member team came back to me with a fix. The following fix will hyperlink urls and emails in field created with “Custom Registration/Profile Fields” the same way BuddyPress does:

Paste the following code into your theme’s function.php

add_filter(‘ws_plugin__s2member_custom_field_gen’, ‘s2_filter_custom_profile_views’, 10, 2);
function s2_filter_custom_profile_views($markup, $vars)
{
if($vars[‘_editable_context’] === ‘profile-view’) {

if($vars[‘field’][‘expected’] == ‘url’)
$markup = ‘‘.$markup.’‘;

if($vars[‘field’][‘expected’] == ’email’)
$markup = ‘‘.$markup.’‘;
}

return $markup;
}

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.