Support Forum
I'm still use default theme and this is my code in spProfileShow.php
if ( ! empty( $spProfileUser->gender ) ){
echo '<div class="spColumnSection spProfileLeftCol">';
echo '<p class="spProfileLabel">Gender:</p>';
echo '</div>';
echo '<div class="spColumnSection spProfileSpacerCol"></div>';
echo '<div class="spColumnSection spProfileRightCol">';
echo '<p class="spProfileLabel">';
sp_CustomProfileFieldsDisplay('Gender', $spProfileUser->ID);
echo '</p>';
echo '</p></div>';
}
if ( ! empty( $spProfileUser->city ) ){
echo '<div class="spColumnSection spProfileLeftCol">';
echo '<p class="spProfileLabel">City:</p>';
echo '</div>';
echo '<div class="spColumnSection spProfileSpacerCol"></div>';
echo '<div class="spColumnSection spProfileRightCol">';
echo '<p class="spProfileLabel">';
sp_CustomProfileFieldsDisplay('City', $spProfileUser->ID);
echo '</p>';
echo '</p></div>';
}
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>';
}
Well - the update to the custom field plugin made things a lot easier in that you can now do all of that in three lines of code and correct the alignment at the same time! Like this:
sp_CustomProfileFieldsProfileDisplay('gender', $spProfileUser->ID, 'Gender');
where the first parameter is the CF name. the second the user ID and the third the label.
Just repeat this for your city and steam entries.
YELLOW
SWORDFISH
|
Many thanks for your respond again and I already try your code but the data can't appear and after I check with detail, the CF name should be changed like the below:
sp_CustomProfileFieldsProfileDisplay('Gender', $spProfileUser->ID, 'Gender');
But, the are small issue again. My data that has http:// can't click-able again like hyperlink. Do you know what should I do again?
Thanks for your respond again.
see your other topic for answer to the hyperlink question...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)