![]() |
Social Networking Fieldset in User Profile & Postbit
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--> Code:
<if condition="$userinfo['fieldXX'] OR $userinfo['fieldXX'] OR $userinfo['fieldXX'] OR $userinfo['fieldXX'] OR $userinfo['fieldXX']"> Then Find: Code:
</fieldset> Code:
</if> |
Adding Social Networking Fieldset to User's Postbit
In the Postbit Legacy Template: Find: Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div> Code:
<if condition="$post['fieldXX'] OR $post['fieldXX'] OR $post['fieldXX'] OR $post['fieldXX'] OR $post['fieldXX']"> |
*Reserved to add more sites*
|
Hello mate, do these show up in people's post bits?
|
It would be nice if one could be selected to be shown in the postbit.
Do you have the linkedin icon implemented? |
Quote:
|
Quote:
|
Will install later. Thanks mate.
|
Your Welcome
|
How do you prevent the added field information from showing up in the "Additional Information" section of the Member's profile?
Thanks, good work :up: |
Quote:
Set the profile fields to private. You as an Admin still can see the private profile fields as far as I know. |
OK, thanks, got that working, but in my case, I had to set "Can View Private Custom Fields" to 'No' in the Usergroup permission section.
The problem I have left now is, that they're not showing up in the Postbit. Any clues where I should look to get that working? As an Admin, everything looks good, but as general user, they're not showing up there. One note of interest, is if I set "Can View Private Custom Fields" to 'Yes', the postbit works for Admin & general users, but then it won't display in the Member Profile for general users! So I'm going around in circles! Any ideas, appreciated!! Many thanks. |
Quote:
Can view member info: Yes Also maybe the profile field has to be NOT set to private. And maybe in vBoptions > User profile options vB code in non forum specific areas: Yes |
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. |
does this work with 3.7?
|
Quote:
|
Thanks - installed
|
Thanks my members have been asking for this :)
EDIT: Ugh... for some reason I can not get these icons to show in the postbit. Am I the only one? |
Got it.... I did all of the editing in my postbit legacy template... I should have been in postbit :( Good to go now :)
Is there any way to make it show next to the standard icons instead of in it's own seperate "Social Networking" section in the postbit? My postbit is starting to stretch the area out and makes the avatar look tiny and out of place. EDIT: I figured it out. I'm pretty new to this so I had never seen the "Fieldset" code before that was surrounding this area and labeling it "Social Networking". Common sense told me that it was putting the box around the icons considering it said "Social Networking" on it. I deleted the codes and it cleaned it up a little bit for me. Good to go now thanks again lol. |
Okay this is the last time I will post I promise :) Okay, though I solved my problem posted above, I still was unsatisfied because I wanted the new icons to show next to the standard ones (yahoo, msn, etc.) I have found that a lot of members really only have Yahoo and AIM so I didn't feel it was necessary to have a second row for icons. So here is what I did...
I completely did away with the Social Networking section that we pasted into the postbit template originally. Here is what I deleted: PHP Code:
In postbit_legacy (just postbit for me) we FOUND: PHP Code:
PHP Code:
Obviously I didn't want this either (starting to see how much trial & error I had? lol). So I played around with conditionals. I went back to the original text Nick (ChU v2) gave us and took the conditionals he used. No need to reinvent the wheel. I put the conditionals around my new icon links as a whole AND I put conditionals around each site seperately. Here is what it looked like after that... PHP Code:
NOTE: I only used MySpace and Facebook. Using all of the ones he gave us will probably cause a problem if the user has info in every field on the profile. I would think that too many icons showing will distort the layout somehow. For my site, even if they have all 5 standard fields AND MySpace & FaceBook, we'll still be good because everything will fit. If you're using everything I don't know if it will work. I would think the icons wouldn't fit. Then again, it may be set up to wrap around and start another row. I have not clue! Alright well that's it. I now have what I want and it only took me forever :) NOTE: Please don't bash me. I have only had my forum for one month and before that, I had never seen this stuff before in my life. If there was a much easier way to do it, I didn't know about it lol. I really just used common sense and patience to figure this out. This is probably basic stuff to most of you. Anyway that's what I did and I have what I want. Thanks to the creator of the hack... I learned a TON of stuff messing around with this one. It's now valued as more than just a hack to me... I appreciate it! Here's how it looks for me now considering I only have AIM, Yahoo, and MySpace... BEFORE: Attachment 79867 AFTER: Attachment 79864 And for those of you looking at my backwards post count... yes I did go back and change it to the way I didn't like it just so I could attach the "BEFORE" picture lol :) |
*********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: Quote:
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... Quote:
|
I added some info for linked in. This hack is awesome! Thanks for the work!
Just add this code into the postbit setting above: Code:
<if condition="$post['fieldXX']"> |
^^^ awesome! :)
|
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']"> |
Quote:
|
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.
|
Quote:
|
It shows up for me in Firefox but not in IE....how to fix this?
|
Quote:
Thank you sdavis for sharing this info -- very helpful !! Great hack. :up: |
Anyone knows how to edit the MEMBERINFO template to show the facebook, linkedin links?
|
Would really like this for 3.7.x, I'm new to vb so not sure what code to look for :(
|
Quote:
Will send $100 to anyone who updates this with clear instructions for adding to 3.7.x |
Quote:
|
How about 3.8..?
Maybe he'll send that $100 to you still. ;) Also will this conflict with the xbox one i have installed already.? ----- I have NO such code in my MEMBERINFO template Code:
<!--Social Networking--> |
Ok so i have a few probelms..
one thing is that the facebook doesn't work, & i dont see where to make the URL edits..? *edit* I found the edits.. they're in the zip folder. lol But i still get - http://www.facebook.com/542920214 Another problem (although im sure it is simple) is that i still have the box that used to go around the Social Networking icons, but now the box is empty & below the icons..!? Code:
<div class="smallfont"> |
Quote:
So everything appears to be working now, except the empty box is still in postbit under the icons. And I dont see these links on my profile. (but im sure that is a whole other story, since im using 3.8 & i have major profile mods) |
HOLY SH*T.. i think i got it.. lol
the links work, the icons are there, my only small issue now is the empty box in postbit.. And that the links on my profile are see-thru, no background.? URL is ugly, is it supposed to look like that.? (i would think that they should work & look just like the postbit where it is just the icon) I think someone should repackage this into one zip. And make the "fb url" edits to the postbit also :) That would help immensely.. |
This is an immense mod somebody needs to work on it.
|
I made some modifications to the codes and was able to install and make it work. The FB bar is displayed under the users avatars, however if the user has not loaded an avatar the function does not show up. Any ideas anyone?
|
Quote:
|
All times are GMT. The time now is 10:42 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|