vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Profile Enhancements - Social Networking Fieldset in User Profile & Postbit (https://vborg.vbsupport.ru/showthread.php?t=174863)

ChU v2 04-01-2008 10:00 PM

Social Networking Fieldset in User Profile & Postbit
 
This template modification adds links to user's social networking profiles like MySpace, FaceBook, Youtube, eBay, Xbox etc.

Instructions:

In order to add each site ie. MySpace, FaceBook, Youtube, etc. You will need to add Profile Fields via the Admin Control Panel. Like this:


Admin CP > User Profile Fields > Add new profile field

Title: *Social Networking Site*
Description: *Your Social Networking Site Profile*
Max length of allowed user input: 20
Field editable by user: Yes
Private Field: No

And a new profile field for each site. Each profile field will be represented by a field number. ie. field5 . You will need to know which field number represents which site in the template editing!

- Don't forget to upload the images to YOUR SKINS /misc folder.

:: Refer to the attached text file for template edits and further instructions! ::

*Please Mark as Installed*

Make the Fieldset not show when the user hasn't entered anything in the profile fields!

Go to the MEMBERINFO template:

Find:
Code:

<!--Social Networking-->
Add Below:
Code:

<if condition="$userinfo['fieldXX'] OR $userinfo['fieldXX'] OR $userinfo['fieldXX'] OR $userinfo['fieldXX'] OR $userinfo['fieldXX']">
Replacing the XX's with your field numbers.

Then Find:
Code:

</fieldset>
</div>

Add After:
Code:

</if>

ChU v2 04-02-2008 03:11 AM

Adding Social Networking Fieldset to User's Postbit

In the Postbit Legacy Template:

Find:
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
Add After:
Code:

<if condition="$post['fieldXX'] OR $post['fieldXX'] OR $post['fieldXX'] OR $post['fieldXX'] OR $post['fieldXX']">
<!--Social Networking-->
<div class="smallfont" align="left">
<fieldset><legend>Social Networking</legend>
<if condition="$post['fieldXX']">
<a href="http://www.myspace.com/$post[fieldXX]"target="_blank"><img src="$stylevar[imgdir_misc]/myspace.gif"border="0"alt="View Member's Myspace Profile"></a>
</if>

<if condition="$post['fieldXX']">
<a href="http://www.facebook.com/$post[fieldXX]"target="_blank"><img src="$stylevar[imgdir_misc]/facebook.gif"border="0"alt="View Member's FaceBook Profile"></a>
</if>

<if condition="$post['fieldXX']">
<a href="http://youtube.com/user/$post[fieldXX]"target="_blank"><img src="$stylevar[imgdir_misc]/youtube.gif"border="0"alt="View Member's YouTube Profile"></a>
</if>

<if condition="$post['fieldXX']">
<a href="http://myworld.ebay.com/$post[fieldXX]"target="_blank"><img src="$stylevar[imgdir_misc]/ebay.gif"border="0"alt="View Member's eBay Profile">
</if>

<if condition="$post['fieldXX']">
<a href="http://live.xbox.com/member/$post[fieldXX]"target="_blank"><img src="$stylevar[imgdir_misc]/xbox.gif"border="0"alt="View Member's Xbox Profile"></a>
</if>
</fieldset>
</div>
<!--/Social Networking-->
</if>

Replace all the XX's with the correct field numbers and delete the sites you don't have Profile fields for.

ChU v2 04-03-2008 04:40 AM

*Reserved to add more sites*

Lombardo 04-03-2008 04:47 AM

Hello mate, do these show up in people's post bits?

Domenico 04-03-2008 10:01 AM

It would be nice if one could be selected to be shown in the postbit.

Do you have the linkedin icon implemented?

ChU v2 04-03-2008 03:37 PM

Quote:

Originally Posted by Lombardo (Post 1481659)
Hello mate, do these show up in people's post bits?

Added in 2nd post.

ChU v2 04-03-2008 03:40 PM

Quote:

Originally Posted by Domenico (Post 1481835)
It would be nice if one could be selected to be shown in the postbit.

Do you have the linkedin icon implemented?

No but if you give me a link to a user profile on linkedin I could draw up the code, it's not hard. You can PM the link if you'd like.

Lombardo 04-04-2008 09:28 AM

Will install later. Thanks mate.

ChU v2 04-06-2008 03:52 PM

Your Welcome

funkmeister 04-07-2008 11:51 PM

How do you prevent the added field information from showing up in the "Additional Information" section of the Member's profile?

Thanks, good work :up:


All times are GMT. The time now is 07:39 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.01182 seconds
  • Memory Usage 1,739KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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