Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

Reply
 
Thread Tools
Add Your LinkedIn Account To Your postbit/postbit_legacy Details »»
Add Your LinkedIn Account To Your postbit/postbit_legacy
Version: 1.00, by metalguy639 metalguy639 is offline
Developer Last Online: Jan 2014 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.8.1 Rating:
Released: 06-20-2009 Last Update: Never Installs: 15
Template Edits
Additional Files  
No support by the author.

THIS TEMPLATE EDIT BROUGHT TO YOU BY:


www.skinsnstyles.com

CLICK INSTALLED TO GET SUPPORT FOR THIS ADD-ON. IF YOU DO NOT CLICK INSTALLED I CANNOT HELP YOU.

This mod is based on the Twitter Profile Link mod. With the exception that this is for a different social networking type of web page following.

If you have members who have LinkedIn accounts and you want to be able to add their LinkedIn accounts to their postbit or the postbit_legacy, you can use this little mod to do so. It's been tested in 3.8.1 so far, but I'm pretty sure that it would work with most recent copies of vbulletin 3.6X and up.

YOU MUST CLICK INSTALL TO GET ANY SUPPORT FROM ME, THOSE WHO DO NOT CLICK INSTALL WILL BE IGNORED WHEN ASKING FOR HELP.

Step 1:

To set up your profile field for this mod you must first make/create a new profile field.

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 = Only post the last part of the URL with the name or words you choose to use for your custom URL. If you have not set your custom URL, then do so first in your Profile on LinkedIn.
Max length of allowed user input: 20
Field Length 25
Field Required - no
Field Editable by User - yes
Private Field - no
6. Click "Save"

Keep in mind the field ID number.

Step 2:

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"
2. Find the skin that you want to make the changes to on the right and click the drop down box next to it choosing "Edit Templates"
3. In The "Controls" box to the right click the button to the left of the words "All Template Groups" to expand the templates.
4. Scroll down and find the postbit or postbit_legacy template and double click on it to open it. (Again this is which ever one you use on your site)
5. Now FIND:

Code:
$post[skypeicon]
6. AFTER ADD:

Code:
<if condition="$post['field15']">
<a href="http://www.linkedin.com/in/$post[field15]" target="_blank">
<img alt="LinkedIn" border="0" src="http://www.yoursite.com/images/linkedin.gif" border="0"/>
</if>
You must change The field ID number to match yours, they are in red. You must also change the image link to match where you uploaded your image.

7. Click "save"

Now go to your UserCP and edit your profile. Click on the "Edit Profile" link and scroll down until you find this in your profile add your Custom URL ending in the box and click save.

Hack Limitations:

1. You MUST use only your Custom URL word(s) that you added to your profile. If you do not this hack will not work.

To set up your custom URL in LinkedIn:

1. Login to your LinkedIn account.
2. Look to the far right at the top you should see a link called "Edit Public Profile Settings" click it.
3. Now at the top you will have a box called "Your Public Profile URL" click the edit link and put what you want your custom URL to be in the blank space.
4. Click the "Set Address" button.

Use the LinkedIn button that I modified here:

Just right click and choose "Save as"

Screenshot can be seen below...

Screenshots

File Type: jpg postbit.jpg (114.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
sofrehkhune

Comments
  #12  
Old 07-18-2009, 04:26 PM
metalguy639 metalguy639 is offline
 
Join Date: Dec 2008
Posts: 501
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cmmguy View Post
Thanks to EagleNick it is figured out, but I have another question.

Why cant you use the entire path of the LinkedIn Account instead of requiring the user to create a custom linkin public name? Is there a technical reason for not allowing the full path?
The reason I set it up that way was because it was the only way that the linkedin account would allow a direct link to a person's account. They have it set up where you HAVE to set the account up in that way or else it does not work.
Reply With Quote
  #13  
Old 07-18-2009, 04:26 PM
metalguy639 metalguy639 is offline
 
Join Date: Dec 2008
Posts: 501
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EagleNick View Post
Because the post variable is only available in posts. Instead of using $post['field15'], you need to use $userinfo['field15'].
Thanks Nick
Reply With Quote
  #14  
Old 07-18-2009, 06:56 PM
cmmguy cmmguy is offline
 
Join Date: Oct 2007
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by metalguy639 View Post
The reason I set it up that way was because it was the only way that the linkedin account would allow a direct link to a person's account. They have it set up where you HAVE to set the account up in that way or else it does not work.
After a day, I found that the instructions(mine, not yours) confused my users. So I changed your code a little to allow a complete URL in the profile and then added better directions.

Code:
<a href="$post[field16]" target="_blank">
<img alt="LinkedIn" border="0" src="/forum/images/misc/linkedin.gif" border="0"/>
This seems to work fine and doesnt require the user to setup the custom profile name.
Reply With Quote
  #15  
Old 07-19-2009, 03:35 AM
metalguy639 metalguy639 is offline
 
Join Date: Dec 2008
Posts: 501
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no prob, if it works for you.
Reply With Quote
  #16  
Old 07-20-2012, 09:05 PM
cbiweb cbiweb is offline
 
Join Date: May 2004
Location: Nova Scotia, Canada
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Some members have used the LinkedIn profile to insert spammy links to other sites. Is there a way to ensure that members can add links to only a LinkedIn profile in that field?
Reply With Quote
  #17  
Old 07-23-2012, 05:18 PM
metalguy639 metalguy639 is offline
 
Join Date: Dec 2008
Posts: 501
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cbiweb View Post
Some members have used the LinkedIn profile to insert spammy links to other sites. Is there a way to ensure that members can add links to only a LinkedIn profile in that field?
No I'm afraid not. There maybe a way but its beyond my scope of coding. If its possible it would have to be a php fix or a plugin.
Reply With Quote
  #18  
Old 07-23-2012, 06:34 PM
cbiweb cbiweb is offline
 
Join Date: May 2004
Location: Nova Scotia, Canada
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay then, thanks for the reply.
Reply With Quote
  #19  
Old 07-23-2012, 11:59 PM
metalguy639 metalguy639 is offline
 
Join Date: Dec 2008
Posts: 501
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No prob.
Reply With Quote
Reply

Thread Tools

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 12:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07550 seconds
  • Memory Usage 2,316KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (1)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete