Support Forum
?????? Andy was asking if you use the profile page display or the popup display.... it makes a difference in which template file to adjust...
Visit Cruise Talk Central and Mr Papa's World
OK this looks worse than it is but actually it is pretty straightforward.
I am assuming you want to display this data in the top section under the last item which, by default, is 'Bio'.
For this you will need to edit the template file named 'spProfileShow.php'. Scroll down until you find the function sp_ProfileShowBio() and we are going to add code blocks underneath that line.
For EACH custom profile field you want to display use the following code. Use the ' Raw Code' button and then select and copy it from the popup window: paste it into the template.
echo '<div class="spColumnSection spProfileLeftCol">'; echo '<p class="spProfileLabel">Gender:</p>'; echo '</div>'; echo '<div class="spColumnSection spProfileSpacerCol"></div><p>'; echo '<div class="spColumnSection spProfileRightCol">'; echo '<p class="spProfileLabel">'; sp_CustomProfileFieldsDisplay('Gender', $spProfileUser->ID); echo '</p></div>';
You will want to change the label in line 2 currently showing Gender. And you will want to change the name of the custom field in line 7 to the name you used when you set the field up.
repeat for each custom field.
YELLOW
SWORDFISH
|
Actually I can't see anything useful from that image.
They should be below each other as they are block elements. try putting a br tag in between them but if that doesn't work you better paste here the code you used. Use the syntax highlghter button in the toolbar for that.
YELLOW
SWORDFISH
|
# show profile info
sp_ColumnStart('tagClass=spProfileShowInfoSection spRight&width=65%', 'profileInfo');
sp_ProfileShowDisplayName('', __sp('Username'));
sp_ProfileShowFirstName('', __sp('First Name'));
sp_ProfileShowLastName('', __sp('Last Name'));
sp_ProfileShowLocation('', __sp('Location'));
sp_ProfileShowWebsite('', __sp('Website'));
sp_ProfileShowBio('', __sp('Bio'));
sp_CustomProfileFieldsDisplay('Country', $spProfileUser->ID);
sp_CustomProfileFieldsDisplay('Gender', $spProfileUser->ID);
sp_CustomProfileFieldsDisplay('Orientation', $spProfileUser->ID);
sp_CustomProfileFieldsDisplay(‘Lookingfor’, $spProfileUser->ID);
sp_CustomProfileFieldsDisplay(‘Preference’, $spProfileUser->ID);
sp_ColumnEnd('', 'profileInfo');
I don't see any of the code I gave you in there. This is either because you missed it out or because it has been stripped for the post. You do need to use the Syntax Highlighter button as suggested.
Paste in the code. Select VERY carefully JUST the code. Click the syntax button on the toolbar above (far right) and select php.
YELLOW
SWORDFISH
|
1 Guest(s)