View Full Version : Adding Linked In to Member's Profile in VB4
Fergal C
05-22-2011, 07:48 AM
Is there an easy way to allow members to add a link to their LinkedIn profile on a VB4 forum? I've seen this mod, but it is for VB3 - Add Your LinkedIn Account To Your postbit/postbit_legacy (https://vborg.vbsupport.ru/showthread.php?t=216678).
Thanks!
RobbieZ
05-22-2011, 08:15 AM
Edit: Sorry I though I nearly had it.
I need to find out how to make the link work for vb4 as it doesnt read this properly: http://www.linkedin.com/in/$userinfo[field[XX]
I think Boofo may know this :)
Fergal C
05-23-2011, 06:04 AM
Thanks RobbieZ, anyone else got a suggestion on how to do this?
RobbieZ
05-28-2011, 09:54 AM
Ok, this works for full LinkedIN URL path.
1. Login to your admincp as admin
2. Scroll down in your left side menu until you find "User Profile Fields"
3. Click on "Add New User Profile Field"
4. For Profile Field Type choose "Single-Line Text Box"
5. Put the following into your new profile field.
Title: LinkedIn Account
Description: Place your LinkedIn Profile URL (Full URL) eg http://www.linkedin.com/pub/****
Max length of allowed user input: 100
Field Length 100
Field Required - no
Field Editable by User - yes
Private Field - no
6. Click "Save"
Keep in mind the field ID number.
Now you will need to edit your postbit or your postbit_legacy whichever one you are currently using on your forum.
1. Scroll to "Styles & Templates" click on "Style Manager"
FIND:
$post[skypeicon]
AFTER ADD:
<vb:if condition="$post['fieldX']">
<a target ="blank" href="{vb:raw post.fieldX}"><img src="http://i43.tinypic.com/902b0l.gif" alt="LinkedIN"></a>
</vb:if>
You must change The field ID number to match yours, they are in red. You can also change the image link to match where you can uploaded your image.
https://vborg.vbsupport.ru/external/2011/05/3.gif
Boofo
05-28-2011, 10:57 AM
See? You didn't need Boofo at all. ;)
Actually, I just saw this thread for the first time.
Fergal C
05-28-2011, 12:30 PM
Thanks a million for that RobbieZ, I will update my forum with that in the next few days and post back here then to confirm it worked.
Fergal C
05-30-2011, 07:07 PM
RobbieZ that's been implemented in the business forum in my sig and it worked perfectly, thanks again for your help.
Fergal C
01-24-2012, 09:04 PM
I've been using RobbieZ's solution (post #4) and it has been working very well. I've recently noticed that some members have been using that LinkedIn profile to insert spammy links to other sites.
Would anyone happen to know of way to ensure that members can only add links to a LinkedIn profile in that field?
cbiweb
02-27-2012, 09:51 PM
Would anyone happen to know of way to ensure that members can only add links to a LinkedIn profile in that field?
I'd like to know this as well. Anyone?
cbiweb
05-02-2012, 12:10 PM
I've been using RobbieZ's solution (post #4) and it has been working very well. I've recently noticed that some members have been using that LinkedIn profile to insert spammy links to other sites.
Would anyone happen to know of way to ensure that members can only add links to a LinkedIn profile in that field?
Can anyone help with this?
cbiweb
07-20-2012, 09:01 PM
Nobody???
I think you could just change the instructions to tell users to enter only the part that comes after "http://www.linkedin.com/pub/", then change the template edit to use href="http://www.linkedin.com/pub/{vb:raw post.fieldX}".
I guess you might also want to run a query to fix the existing fields by removing "http://www.linkedin.com/pub/" from the beginning.
cbiweb
07-20-2012, 10:57 PM
Thanks! I'll try that and post back. Might be a couple days before I get around to doing it, though. :)
--------------- Added 1342911800 at 1342911800 ---------------
hmmm... I don't think that is doable without writing a plugin, which I have no idea how to do. The issue is, the LinkedIn profile field is a custom one, and uses the userfield_textbox template, which in turn is used for all profile fields. So I can't actually make a LinkedIn-specific edit to the template. :(
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.