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

Reply
 
Thread Tools
MySpace & FaceBook buttons in member profile and postbit Details »»
MySpace & FaceBook buttons in member profile and postbit
Version: 2.00, by ChU v2 ChU v2 is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.8 Rating:
Released: 10-13-2007 Last Update: 10-27-2007 Installs: 130
Template Edits
Re-useable Code Translations  
No support by the author.

Updated version with more options here: https://vborg.vbsupport.ru/showthread.php?t=174863



What is it?

This modification adds the MySpace & FaceBook icons to the Postbit/Postbit_legacy & MEMBERINFO templates. It will display and link to the member's myspace and facebook profiles from there postbit and profiles.

How is it done?

- 2 Image uploads
- 2 Profile fields
- 2 Template edits

Other Info

What gave me this idea was this: https://vborg.vbsupport.ru/showthread.php?t=142290
I did not copy any of his code. He said he was going to try and add it to the member profile, so I went ahead and did it.

Instructions

Instructions and images and located in the .zip folder attached to this post.

PLEASE CLICK INSTALL!



UPDATES:


v2.0:

- Added stylevar so that it cuts down 2 temp edits.
- Changed image directory to /forum/images/YOURSKIN/misc instead of /forum/images/misc.
- Fixed </if> coding error.

No real need to update or re download if you have it working already! This update is mainly for user's that have never installed or can't get it working.

v3.0

Just one minor template edit. This was brought to my attention by jmurrayhead. Go to the MEMBERINFO template.

FIND:

HTML Code:
<if condition="$show['hasimicons']">
REPLACE WITH:

HTML Code:
<if condition="$show['hasimicons'] OR $userinfo['fieldXX'] OR $userinfo['fieldXX']">
Replace the XX's with the field numbers for your MySpace & Facebook profile fields.

Show Your Support

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

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

Quote:
Originally Posted by jenai View Post
Nice works well, only prob is i cant get the icons to align properly they are out of place. I added the icons you did to the ones i have but want to know how to make them straight. http://www.uptownrecords.com/forum/s...ad.php?t=68337

Thanks very much
Didn't see the images with that link.
Reply With Quote
  #43  
Old 02-13-2008, 08:26 PM
Lombardo Lombardo is offline
 
Join Date: Dec 2007
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The facebook links just take you to your own profile instead of the persons site you are clicking,how do i sort that,the links are correct as they say in your instructions
Reply With Quote
  #44  
Old 02-15-2008, 11:57 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
The facebook links just take you to your own profile instead of the persons site you are clicking,how do i sort that,the links are correct as they say in your instructions
Make sure you adjust the feild number in the link code.

Like fieldXX
Reply With Quote
  #45  
Old 03-03-2008, 04:42 AM
queengoc queengoc is offline
 
Join Date: Jun 2007
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, thank you for this. I thought I did everything correct but obviously I didn't. My myspace page URL is showing up in the additional information section not the contact section and I don't see the gifs and it doesn't show up as a link just a url. Do you have any recommendations or idea of what I did wrong?

Thanks!
Reply With Quote
  #46  
Old 03-03-2008, 06:23 PM
queengoc queengoc is offline
 
Join Date: Jun 2007
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I figured everything out. Thanks!
Reply With Quote
  #47  
Old 03-04-2008, 11:59 AM
queengoc queengoc is offline
 
Join Date: Jun 2007
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Me again :erm:

OK I didn't know this until someone else pointed it out since I don't have facebook but the facebook link is not working properly. Here is what I have in the postbit legacy and the memberinfo section. What am I doing wrong?

Thanks!

Leiha



Postbit legacy

<!-- ChU's MySpace & FaceBook Icon's -->
<if condition="$post[field5]">
<a href ="http://www.myspace.com/$post[field5]"target="_blank"><img src ="$stylevar[imgdir_misc]/myspace.gif"border="0"alt="View Member's Myspace Profile"></a>
</if>
<if condition="$post[field6]">
<a href ="http://www.facebook.com/profile.php?id=$post[field6]"target="_blank"><img src ="$stylevar[imgdir_misc]/facebook.gif"border="0"alt="View Member's FaceBook Profile"></a>
</if>
<!-- End ChU's MySpace & FaceBook Icon's -->

Memberinfo

<!-- ChU's MySpace & FaceBook Icon's -->
<if condition="$userinfo['field5']">
<tr>
<td><a href="http://www.myspace.com/$userinfo[field5]"target="_blank"><img src="$stylevar[imgdir_misc]/myspace.gif"border="0"alt="View Member's Myspace Profile"></td></a>
<td><a href="http://www.myspace.com/$userinfo[field5]"target="_blank">http://www.myspace.com/$userinfo[fieldXX]</a></td>
</tr>
</if>
<if condition="$userinfo['field6']">
<tr>
<td><a href="http://www.facebook.com/$userinfo[field6]"target="_blank"><img src="$stylevar[imgdir_misc]/facebook.gif"border="0"alt="View Member's FaceBook Profile"></td></a>
<td><a href="http://www.facebook.com/user/profile.php?id=$userinfo[field6]"target="_blank">http://www.facebook.com/profile.php?id=$userinfo[field6]</a></td>
</tr>
</if>
<!-- End ChU's MySpace & FaceBook Icon's -->
Reply With Quote
  #48  
Old 03-05-2008, 10:00 PM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Link me to your forum and I'll look
Reply With Quote
  #49  
Old 03-05-2008, 10:18 PM
queengoc queengoc is offline
 
Join Date: Jun 2007
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://www.karenmoning.com/forum/index.php" target="_blank">http://www.karenmoning.com/forum/index.php</a>

Thank you CHu!
Reply With Quote
  #50  
Old 03-07-2008, 11:18 PM
kingmotox's Avatar
kingmotox kingmotox is offline
 
Join Date: Jun 2005
Location: HB
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool hack the only problem i am having is the fields are showing up in the additional information box under occupation. I think your plan was to have them show up where the aim and skype boxes are. I followed your instructions that came with the download. Any suggestions
http://www.dezertrangers.com

thanks
Reply With Quote
  #51  
Old 03-09-2008, 04:39 AM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

queengoc: I don't know why it wouldn't be showing up, from what I can tell you've done nothing wrong. I would go back and re do everything to make sure it's right.

kingmotox: You probably put the code in the wrong spot in the MEMBERINFO template. Go back and check.
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 10:51 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.05517 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_html
  • (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
  • (4)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_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