Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-22-2011, 07:48 AM
Fergal C Fergal C is offline
 
Join Date: Dec 2004
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 05-22-2011, 08:15 AM
RobbieZ RobbieZ is offline
 
Join Date: Jul 2008
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 05-23-2011, 06:04 AM
Fergal C Fergal C is offline
 
Join Date: Dec 2004
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks RobbieZ, anyone else got a suggestion on how to do this?
Reply With Quote
  #4  
Old 05-28-2011, 09:54 AM
RobbieZ RobbieZ is offline
 
Join Date: Jul 2008
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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:

Code:
$post[skypeicon]
AFTER ADD:

Code:
<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.

Reply With Quote
  #5  
Old 05-28-2011, 10:57 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See? You didn't need Boofo at all.

Actually, I just saw this thread for the first time.
Reply With Quote
  #6  
Old 05-28-2011, 12:30 PM
Fergal C Fergal C is offline
 
Join Date: Dec 2004
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 05-30-2011, 07:07 PM
Fergal C Fergal C is offline
 
Join Date: Dec 2004
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

RobbieZ that's been implemented in the business forum in my sig and it worked perfectly, thanks again for your help.
Reply With Quote
  #8  
Old 01-24-2012, 09:04 PM
Fergal C Fergal C is offline
 
Join Date: Dec 2004
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 02-27-2012, 09:51 PM
cbiweb cbiweb is offline
 
Join Date: May 2004
Location: Nova Scotia, Canada
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fergal C View Post
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?
Reply With Quote
  #10  
Old 05-02-2012, 12:10 PM
cbiweb cbiweb is offline
 
Join Date: May 2004
Location: Nova Scotia, Canada
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fergal C View Post
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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:19 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
  • Page Generation 0.04147 seconds
  • Memory Usage 2,252KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete