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

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
  #32  
Old 09-20-2008, 08:44 AM
Daisyboo Daisyboo is offline
 
Join Date: Jul 2008
Location: Somerset UK
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would really like this for 3.7.x, I'm new to vb so not sure what code to look for
Reply With Quote
  #33  
Old 10-07-2008, 07:02 AM
MarkoP MarkoP is offline
 
Join Date: Jul 2008
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Daisyboo View Post
Would really like this for 3.7.x, I'm new to vb so not sure what code to look for
Same here.

Will send $100 to anyone who updates this with clear instructions for adding to 3.7.x
Reply With Quote
  #34  
Old 01-02-2009, 09:14 PM
R1lover's Avatar
R1lover R1lover is offline
 
Join Date: Apr 2006
Location: Northern Ca
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkoP View Post
Same here.

Will send $100 to anyone who updates this with clear instructions for adding to 3.7.x
Send me the 100.00 as it's the same and works in 3.7 as is...
Reply With Quote
  #35  
Old 01-31-2009, 09:31 PM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about 3.8..?
Maybe he'll send that $100 to you still.

Also will this conflict with the xbox one i have installed already.?

-----

I have NO such code in my MEMBERINFO template
Code:
<!--Social Networking-->
Reply With Quote
  #36  
Old 02-01-2009, 04:47 AM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok so i have a few probelms..

one thing is that the facebook doesn't work, & i dont see where to make the URL edits..?
*edit*
I found the edits.. they're in the zip folder. lol
But i still get - http://www.facebook.com/542920214


Another problem (although im sure it is simple) is that i still have the box that used to go around the Social Networking icons, but now the box is empty & below the icons..!?

Code:
<div class="smallfont"> 
&nbsp;<br /> 
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if> 
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if> 
$template_hook[postbit_userinfo_right] 
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
<if condition="$post['field18'] OR $post['field19'] OR $post['field20']">
<if condition="$post['field18']">
<a href="http://www.facebook.com/$post[field18]"target="_blank"><img src="$stylevar[imgdir_misc]/facebook.gif"border="0"alt="View Member's FaceBook Profile"></a>
</if>
<if condition="$post['field19']">
<a href="http://www.myspace.com/$post[field19]"target="_blank"><img src="$stylevar[imgdir_misc]/myspace.gif"border="0"alt="View Member's Myspace Profile"></a>
</if>
<if condition="$post['field20']">
<a href="http://youtube.com/user/$post[field20]"target="_blank"><img src="$stylevar[imgdir_misc]/youtube.gif"border="0"alt="View Member's YouTube Profile"></a>
</if>
</fieldset>
</div>
<!--/Social Networking-->
</if>
</div> 



</div></div> 

    </td>
Reply With Quote
  #37  
Old 02-01-2009, 05:34 AM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sdavis2702 View Post
*********One more thing. This one is important though*********

There is a mistake in the Facebook section of the MEMBERINFO text given in the zip. Here is what it reads with the issues in BOLD:

Notice the difference in the links. 2 different URLs are created for the icon that displays in the postbit and the link that will show in the member's profile. Also.... the word "user" in the second URL has no place there at all... no need for it.

They should either both read "facebook.com/$userinfo[fieldXX]" which means the user would have to put "profile.php?id=1234567" in their profile field...

OR

They should both read "facebook.com/profile.php?id=$userinfo[fieldXX]" which means the user would have to put "1234567" in their profile.

I chose the second choice... less room for error for the user. Until those two URLs match, you will have an issue. In the member's profile, you'll have the icon sitting next to the link like it's supposed to. However, one will work, and one won't.
I had to make this edits in the Postbit Legacy also..!?


So everything appears to be working now, except the empty box is still in postbit under the icons.
And I dont see these links on my profile. (but im sure that is a whole other story, since im using 3.8 & i have major profile mods)
Reply With Quote
  #38  
Old 02-01-2009, 05:53 AM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HOLY SH*T.. i think i got it.. lol
the links work, the icons are there, my only small issue now is the empty box in postbit..
And that the links on my profile are see-thru, no background.?

URL is ugly, is it supposed to look like that.? (i would think that they should work & look just like the postbit where it is just the icon)


I think someone should repackage this into one zip.
And make the "fb url" edits to the postbit also

That would help immensely..
Reply With Quote
  #39  
Old 04-14-2009, 09:12 AM
Gersfan Gersfan is offline
 
Join Date: Dec 2007
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is an immense mod somebody needs to work on it.
Reply With Quote
  #40  
Old 07-26-2009, 07:44 PM
Yesica Yesica is offline
 
Join Date: Jul 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I made some modifications to the codes and was able to install and make it work. The FB bar is displayed under the users avatars, however if the user has not loaded an avatar the function does not show up. Any ideas anyone?
Reply With Quote
  #41  
Old 08-07-2009, 12:03 AM
Yesica Yesica is offline
 
Join Date: Jul 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Yesica View Post
I made some modifications to the codes and was able to install and make it work. The FB bar is displayed under the users avatars, however if the user has not loaded an avatar the function does not show up. Any ideas anyone?
Edited to load above avatar pics. No problems.
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 01:44 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.04568 seconds
  • Memory Usage 2,318KB
  • Queries Executed 27 (?)
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
  • (4)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • 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