Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Social Networking Fieldset in User Profile & Postbit Details »»
Social Networking Fieldset in User Profile & Postbit
Version: 1.00, by ChU v2 ChU v2 is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.x Rating:
Released: 04-01-2008 Last Update: Never Installs: 34
Template Edits
Re-useable Code Translations  
No support by the author.

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>

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-02-2008, 03:11 AM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 04-03-2008, 04:40 AM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Reserved to add more sites*
Reply With Quote
  #4  
Old 04-03-2008, 04:47 AM
Lombardo Lombardo is offline
 
Join Date: Dec 2007
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello mate, do these show up in people's post bits?
Reply With Quote
  #5  
Old 04-03-2008, 10:01 AM
Domenico Domenico is offline
 
Join Date: Oct 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Do you have the linkedin icon implemented?
Reply With Quote
  #6  
Old 04-03-2008, 03:37 PM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lombardo View Post
Hello mate, do these show up in people's post bits?
Added in 2nd post.
Reply With Quote
  #7  
Old 04-03-2008, 03:40 PM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Domenico View Post
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.
Reply With Quote
  #8  
Old 04-04-2008, 09:28 AM
Lombardo Lombardo is offline
 
Join Date: Dec 2007
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will install later. Thanks mate.
Reply With Quote
  #9  
Old 04-06-2008, 03:52 PM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your Welcome
Reply With Quote
  #10  
Old 04-07-2008, 11:51 PM
funkmeister funkmeister is offline
 
Join Date: Oct 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
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 01:57 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.04741 seconds
  • Memory Usage 2,295KB
  • Queries Executed 23 (?)
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
  • (6)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)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