![]() |
Adding Linked In to Member's Profile in VB4
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.
Thanks! |
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 :) |
Thanks RobbieZ, anyone else got a suggestion on how to do this?
|
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. Code:
Title: LinkedIn Account 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: Code:
$post[skypeicon] Code:
<vb:if condition="$post['fieldX']"> https://vborg.vbsupport.ru/external/2011/05/3.gif |
See? You didn't need Boofo at all. ;)
Actually, I just saw this thread for the first time. |
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.
|
RobbieZ that's been implemented in the business forum in my sig and it worked perfectly, thanks again for your help.
|
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? |
Quote:
|
Quote:
|
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. |
Thanks! I'll try that and post back. Might be a couple days before I get around to doing it, though. :)
--------------- Added [DATE]1342911800[/DATE] at [TIME]1342911800[/TIME] --------------- 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. :( |
All times are GMT. The time now is 02:55 AM. |
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:
|