Version: 1.00, by ChU v2
Developer Last Online: Oct 2013
Category: Profile Enhancements -
Version: 3.6.x
Rating:
Released: 04-01-2008
Last Update: Never
Installs: 34
Template Edits
Re-useable Code Translations
No support by the author.
This template modification adds links to user's social networking profiles like MySpace, FaceBook, Youtube, eBay, Xbox etc.
Instructions:
In order to add each site ie. MySpace, FaceBook, Youtube, etc. You will need to add Profile Fields via the Admin Control Panel. Like this:
Admin CP > User Profile Fields > Add new profile field
Title: *Social Networking Site*
Description: *Your Social Networking Site Profile*
Max length of allowed user input: 20
Field editable by user: Yes
Private Field: No
And a new profile field for each site. Each profile field will be represented by a field number. ie. field5 . You will need to know which field number represents which site in the template editing!
- Don't forget to upload the images to YOUR SKINS /misc folder.
:: Refer to the attached text file for template edits and further instructions! ::
*Please Mark as Installed*
Make the Fieldset not show when the user hasn't entered anything in the profile fields!
Go to the MEMBERINFO template:
Find:
Code:
<!--Social Networking-->
Add Below:
Code:
<if condition="$userinfo['fieldXX'] OR $userinfo['fieldXX'] OR $userinfo['fieldXX'] OR $userinfo['fieldXX'] OR $userinfo['fieldXX']">
Replacing the XX's with your field numbers.
Then Find:
Code:
</fieldset>
</div>
Add After:
Code:
</if>
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Notice the difference in the links. 2 different URLs are created for the icon that displays in the postbit and the link that will show in the member's profile. Also.... the word "user" in the second URL has no place there at all... no need for it.
They should either both read "facebook.com/$userinfo[fieldXX]" which means the user would have to put "profile.php?id=1234567" in their profile field...
OR
They should both read "facebook.com/profile.php?id=$userinfo[fieldXX]" which means the user would have to put "1234567" in their profile.
I chose the second choice... less room for error for the user. Until those two URLs match, you will have an issue. In the member's profile, you'll have the icon sitting next to the link like it's supposed to. However, one will work, and one won't.
sdavis-if you're doing them without a containing field, your probably don't need this conditional
Code:
<if condition="$post['field13'] OR $post['field14']">
from what i can tell, that was added to decide whether or not there are any of the social networking icons to decide whether or not to make the container for them. since you're not using the container at all, and using an individual conditional to decide whether or not their is a value for a specific site in order to show the icon, you can get rid of that if statement and the corresponding closing of the if statement.
Thanks for the ideas, but the only option that helps is the one I was asking about initially.
If I make the new profile field NOT private, it does indeed work in the Postbit as well, but then I'm left with that field name and user info shown in the Member Profile, under "Additional Information". So it's displaying there on it's own and also to the right of that, in the new "Social Networking" section. Which is not really good to look at
Is this not what everyone else is experiencing? Am I alone with this? I don't understand what could be different for me? Or is this the way it's supposed to display?
Thanks.
I'm getting this too. As far as I'm concerned this renders this other wise useful hack utterly useless, someone please help with this.
Ok I got this to work. You might want to include in the main description that you as an admin WILL see that information in the "Additional Information" section but normal users will not so it doesn't matter.
sdavis-if you're doing them without a containing field, your probably don't need this conditional
Code:
<if condition="$post['field13'] OR $post['field14']">
from what i can tell, that was added to decide whether or not there are any of the social networking icons to decide whether or not to make the container for them. since you're not using the container at all, and using an individual conditional to decide whether or not their is a value for a specific site in order to show the icon, you can get rid of that if statement and the corresponding closing of the if statement.
*********One more thing. This one is important though*********
There is a mistake in the Facebook section of the MEMBERINFO text given in the zip. Here is what it reads with the issues in BOLD:
Notice the difference in the links. 2 different URLs are created for the icon that displays in the postbit and the link that will show in the member's profile. Also.... the word "user" in the second URL has no place there at all... no need for it.
They should either both read "facebook.com/$userinfo[fieldXX]" which means the user would have to put "profile.php?id=1234567" in their profile field...
OR
They should both read "facebook.com/profile.php?id=$userinfo[fieldXX]" which means the user would have to put "1234567" in their profile.
I chose the second choice... less room for error for the user. Until those two URLs match, you will have an issue. In the member's profile, you'll have the icon sitting next to the link like it's supposed to. However, one will work, and one won't.
Here is my code now...
Everything works perfectly now
Thank you sdavis for sharing this info -- very helpful !!