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
  #12  
Old 10-26-2007, 03:39 PM
Spank Spank is offline
 
Join Date: Jan 2007
Location: Scotland
Posts: 809
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've installed these but it the data in the filed is not getting put after the / so it just goes to the main myspace/facebook page =/
Reply With Quote
  #13  
Old 10-26-2007, 06:32 PM
iardon's Avatar
iardon iardon is offline
 
Join Date: Oct 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, thanks!
Reply With Quote
  #14  
Old 10-27-2007, 02:57 PM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spank View Post
I've installed these but it the data in the filed is not getting put after the / so it just goes to the main myspace/facebook page =/
check to see if the URL is typed correctly and also make sure your that 1. you have the field filled out meaning your username/id saved in your member profile and 2. that you replaced the XX in the code with the field number you set up in the ACP.
Reply With Quote
  #15  
Old 10-28-2007, 03:36 PM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
 
Join Date: Sep 2006
Location: Washington, D.C.
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mcyates View Post
My images don't show up, strange!!!!
Make sure you correct the URL to go to the exact location your images are stored. For example, I don't have a folder called "forum" so I had to modify the URL to:

http://www.mypage.com/images/mics/myspace.gif

instead of

http://www.mypage.com/forum/images/misc/myspace.gif
Reply With Quote
  #16  
Old 10-28-2007, 03:43 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You forgot to close the facebook if statement...
Code:
<!-- ChU's MySpace & FaceBook Icon's -->
<if condition="$post[fieldXX]">
<a href ="http://www.myspace.com/$post[fieldXX]"target="_blank"><img src ="http://www.YOURFORUM.com/forum/images/misc/myspace.gif"border="0"alt="View Member's MySpace Profile"></a>
</if>
<if condition="$post[fieldXX]">
<a href ="http://www.facebook.com/profile.php?id=$post[fieldXX]"target="_blank"><img src ="http://www.YOURFORUM.com/forum/images/misc/facebook.gif"border="0"alt="View Member's FaceBook Profile"></a>
<!-- End ChU's MySpace & FaceBook Icon's -->
should be:
Code:
<!-- ChU's MySpace & FaceBook Icon's -->
<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/profile.php?id=$post[fieldXX]"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 -->
I also changed the www.YOURFORUM.com/forum/images/misc/ to $stylevar[imgdir_misc]/

also- the reason that many people are not seeing the myspace and facebook icons in their forum is that they go in the misc images folder, and if you simply upload the "Images" folder it will not go there. It would be better if you didn't capitalize the "Images" folder and also added a "misc" folder with the icons inside of that so people could just upload the contents of the "upload" folder.

There is no editprofile template - it is modifyprofile.
Reply With Quote
  #17  
Old 10-28-2007, 04:08 PM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
 
Join Date: Sep 2006
Location: Washington, D.C.
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also noticed that if a user doesn't have an Instant Messenger listed, then the links won't show up like they should and the user ID's will just display in the regular profile section.
Reply With Quote
  #18  
Old 10-28-2007, 05:14 PM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default


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

Quote:
Originally Posted by yoyoyoyo View Post

There is no editprofile template - it is modifyprofile.
Where in the instructions is this? I could not find it. The only template edits are in postbit/postbit legacy and MEMBERINFO. Unless I forgot and am missing it.

Quote:
Originally Posted by jmurrayhead View Post
I also noticed that if a user doesn't have an Instant Messenger listed, then the links won't show up like they should and the user ID's will just display in the regular profile section.
You mean, if they don't AIM, MSN, Yahoo, or Skype in the one of the other profile fields, the myspace and facebook images don't work? I tried this and didn't have a problem.
Reply With Quote
  #20  
Old 10-28-2007, 05:37 PM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
 
Join Date: Sep 2006
Location: Washington, D.C.
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChU v2 View Post
You mean, if they don't AIM, MSN, Yahoo, or Skype in the one of the other profile fields, the myspace and facebook images don't work? I tried this and didn't have a problem.
If they don't have either of those, then nothing appears under "Contact" in the user profile.

I worked on it for a while and was able to fix it by changing this in MEMBERINFO:

Code:
<if condition="$show['hasimicons']">
to this:

Code:
<if condition="$show['hasimicons'] OR $userinfo['field7'] OR $userinfo['field8']">
Now it works as it should. Thanks!
Reply With Quote
  #21  
Old 10-28-2007, 07:40 PM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh I see what you are saying, ya that fixes it thank you.
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 05:37 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.09504 seconds
  • Memory Usage 2,312KB
  • 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
  • (4)bbcode_code
  • (2)bbcode_html
  • (5)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
  • (3)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