Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
An issue on Custom Profile Fields
Avatar
Ruben Kalitzki
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2015 - 8:41 pm

Hi, I'm really glad because the profile page on our forum site already done but we still have an issue again in there.

Before we update Custom Profile Fields, we use this code into spProfileShow.php

if ( ! empty( $spProfileUser->steam ) ){
echo ‘<div class=”spColumnSection spProfileLeftCol”>';
echo ‘<p class=”spProfileLabel”>Steam:</p>';
echo ‘</div>';
echo ‘<div class=”spColumnSection spProfileSpacerCol”></div>';
echo ‘<div class=”spColumnSection spProfileRightCol”>';
echo ‘<p class=”spProfileLabel”>';
sp_CustomProfileFieldsDisplay(‘Steam’, $spProfileUser->ID);
echo ‘</p>';
echo ‘</p></div>';
}

and after we update, the code to be very very simple (its amazing) like the below

sp_CustomProfileFieldsProfileDisplay('Steam', $spProfileUser->ID, 'Steam');

The issue is the data doesn't has hyperlink like we want although we already add http://

Before we update, the data still has hyperlink if the data has "http://". Would you like let me know what should I do for the code again?

Many thanks for your next respond.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2015 - 10:05 pm

was it hyperlinked before??  it shouldnt have been....  and not easy to do since we have no idea if a custom profile field is supposed to be a link or not...  perhaps a different custom type is needed...

unfortunately, since that routine was added to explicitly output the html and there are no filters, not much we can do about it...

I can open a ticket for adding a filter or return option (vice echo'ing), or a new html field type, so that this can be done...

Avatar
Ruben Kalitzki
Member
Free Members
sp_UserOfflineSmall Offline
Feb 13, 2015 - 1:16 am

Hi Mr. Papa, many thanks for your respond. It has link/problem-with-post-edit-buttonyperlink before I upgrade to the latest version for Custom Profile Fields except I don't add "http://" in the beginning of the text.

But now, it hasn't link/problem-with-post-edit-buttonyperlink after I upgrade to the latest version.

I can use the old code if I want the hyperlink activate again, unfortunately the label with the data not straight. And in the new update the label with the data not straight has solved but the hyperlink not activate again for the data beginning with "http://"

So, what should I do now?

Many thanks for your next respond.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 13, 2015 - 1:35 am

so it did do it before, eh?  the new tag was just recently added... perhaps its filtering differently then...

can you try something for me?  edit the plugin file custom-profile-fields\template-tags\sp-custom-profile-fields-display-tag.php...   around line  159 you should see:

                    $cfData = sp_filter_title_display($cfData);

can you try changing that to:

                    $cfData = sp_filter_text_display($cfData);

I will have to get with Andy to see why that subtle change was made for the profile... it will prevent links from being clickable, I think... your test would verify...

Avatar
Ruben Kalitzki
Member
Free Members
sp_UserOfflineSmall Offline
Feb 13, 2015 - 2:19 am

Many thanks for your help Mr. Papa, my issue already done. Your suggest really help me know. I can relax now :D

I think this topic should be closed and SOLVED remark.

Thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 13, 2015 - 2:21 am

thanks for confirmation... as I said, though, will have to check with Andy and see if the change was intentional or not...

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: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625