Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #2  
Old 06-21-2009, 09:13 AM
Yenimuhendis Yenimuhendis is offline
 
Join Date: Nov 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice work thnx.

İnstalled
Reply With Quote
  #3  
Old 06-21-2009, 09:27 AM
metalguy639 metalguy639 is offline
 
Join Date: Dec 2008
Posts: 501
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Yenimuhendis View Post
nice work thnx.

İnstalled
Your welcome.
Reply With Quote
  #4  
Old 06-21-2009, 11:45 AM
MacHack MacHack is offline
 
Join Date: Oct 2008
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great, thanks!
Reply With Quote
  #5  
Old 06-21-2009, 10:22 PM
metalguy639 metalguy639 is offline
 
Join Date: Dec 2008
Posts: 501
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MacHack View Post
Works great, thanks!
No prob
Reply With Quote
  #6  
Old 07-18-2009, 02:44 AM
cmmguy cmmguy is offline
 
Join Date: Oct 2007
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great, thanks. I also tried to add it to the Contact Info tab in the Public User Profile but it seems the variable does not have context in that page. Oh well... still works fine in the postbit.
Reply With Quote
  #7  
Old 07-18-2009, 04:41 AM
metalguy639 metalguy639 is offline
 
Join Date: Dec 2008
Posts: 501
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cmmguy View Post
Works great, thanks. I also tried to add it to the Contact Info tab in the Public User Profile but it seems the variable does not have context in that page. Oh well... still works fine in the postbit.
Not sure. I tried several things myself and they did not work. If I find a way for it to be put there I'll post back.
Reply With Quote
  #8  
Old 07-18-2009, 12:57 PM
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Location: Florida
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cmmguy View Post
Works great, thanks. I also tried to add it to the Contact Info tab in the Public User Profile but it seems the variable does not have context in that page. Oh well... still works fine in the postbit.
Because the post variable is only available in posts. Instead of using $post['field15'], you need to use $userinfo['field15'].
Reply With Quote
  #9  
Old 07-18-2009, 02:28 PM
cmmguy cmmguy is offline
 
Join Date: Oct 2007
Posts: 54
Благодарил(а): 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'].
Oh boy... I feel dumb when the answer is so simple.

Thank you for the help.
Reply With Quote
  #10  
Old 07-18-2009, 02:30 PM
cmmguy cmmguy is offline
 
Join Date: Oct 2007
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by metalguy639 View Post
Not sure. I tried several things myself and they did not work. If I find a way for it to be put there I'll post back.
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?
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 08:59 PM.


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.04570 seconds
  • Memory Usage 2,340KB
  • 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
  • (3)bbcode_code
  • (6)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
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (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_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