Support Forum

An issue on Custom Profile Fields

RK Ruben Kalitzki
Ruben Kalitzki
Member

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.

5 Answers

New Answer

MP Mr Papa
Mr Papa
Member

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…

RK Ruben Kalitzki
Ruben Kalitzki
Member

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.

MP Mr Papa
Mr Papa
Member

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-fieldstemplate-tagssp-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…

RK Ruben Kalitzki
Ruben Kalitzki
Member

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

MP Mr Papa
Mr Papa
Member

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