vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Profile Enhancements - Add Your LinkedIn Account To Your postbit/postbit_legacy (https://vborg.vbsupport.ru/showthread.php?t=216678)

metalguy639 07-18-2009 04:26 PM

Quote:

Originally Posted by cmmguy (Post 1851135)
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. :(

metalguy639 07-18-2009 04:26 PM

Quote:

Originally Posted by EagleNick (Post 1851112)
Because the post variable is only available in posts. Instead of using $post['field15'], you need to use $userinfo['field15']. ;)

Thanks Nick :D

cmmguy 07-18-2009 06:56 PM

Quote:

Originally Posted by metalguy639 (Post 1851209)
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.

metalguy639 07-19-2009 03:35 AM

no prob, if it works for you. :)

cbiweb 07-20-2012 09:05 PM

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?

metalguy639 07-23-2012 05:18 PM

Quote:

Originally Posted by cbiweb (Post 2349955)
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.

cbiweb 07-23-2012 06:34 PM

Okay then, thanks for the reply. :)

metalguy639 07-23-2012 11:59 PM

No prob.


All times are GMT. The time now is 03:05 PM.

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.01005 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete