Support Forum
eh, sorry, wasnt really paying attention... you cannot use that template tag in the profile - wont work... its designed for topic view and makes use of data and objects that exist there...
you will have to do something a bit different in the profile... we dont have a template function for helping you there (never been asked for before)...
you will have to format it the way you want in the profile, but basically you can get at the data with:
$spProfileUser->identity_slug
but you will need to replace identity_slug with the slug of the identity you want to output... for your example it should be:
amazon-author-page
so doing this:
echo $spProfileUser->amazon-author-page
should output it... you can add whatever label or styling you want...
Visit Cruise Talk Central and Mr Papa's World
Hello
I want to do the same thing, apply the custom identities to the SpProfilePopupShow and the spProfileShow. However, I try to do it with this line: echo $spProfileUser->amazon-author-page putting it here:
# output section for detailed user info
sp_SectionStart('tagClass=spProfileShowDetailsSection', 'profileDetails');
# show user identities
sp_ColumnStart('tagClass=spProfileShowIdentitiesSection spLeft&width=45%', 'profileIdentities');
echo '<p>'.__sp('Contact').' '.$spProfileUser->display_name.'<br /><hr>';
echo $spProfileUser->amazon-author-page
sp_ProfileShowYIM('', __sp('Yahoo IM ID'));
sp_ProfileShowMSN('', __sp('MSN ID'));
sp_ProfileShowICQ('', __sp('ICQ ID'));
sp_ProfileShowGoogleTalk('', __sp('Google Talk ID'));
sp_ProfileShowSkype('', __sp('Skype ID'));
sp_ProfileShowMySpace('', __sp('MySpace ID'));
sp_ProfileShowFacebook('', __sp('Facebook ID'));
sp_ProfileShowTwitter('', __sp('Twitter ID'));
So this produce an error. Any advise what kind of code I should use?
No it wont. That needs a special dedicated element function.
Just try the echo 'label name'; before the data echo. Although we may need to work out some CSS styling for you..
But... did you look at the Codex examples for this plugin? - http://codex.simple-press.com/.....dentities/
That shows other ways to display the data plus label.
YELLOW
SWORDFISH
|
Yellow Swordfish said
Just try the echo 'label name'; before the data echo.
This nearly did what i need, but the only problem is, that it places the label in the same column with the identities. So the labels and identities still get mismatched.
I checked out the identities page, but I do not have much experience with php.
This code doesn't do anything. Well, I solved it somehow by adding this code:
echo '<p>'.__sp('Steam ID:').' '.$spProfileUser->steam.'<br />';
So this place the new identity, but not inside the style group.
I could go with that, but it could look better.
Any solution how to put the code line into the identities style sheet group?
1 Guest(s)