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

To make the input field display in edit profile page:

Go to your editprofile template.

FIND:

HTML Code:
<legend>$vbphrase[instant_messaging]</legend>
REPLACE WITH:

HTML Code:
<legend>Contact</legend>
FIND:

HTML Code:
<tr>
					<td>$vbphrase[skype_name]<br />
						<img src="$stylevar[imgdir_misc]/im_skype.gif" alt="" />
						<input type="text" class="bginput" name="skype" value="$bbuserinfo[skype]" size="25" maxlength="32" dir="ltr" /></td>
					<td>&nbsp;</td>
				</tr>
ADD UNDER:

HTML Code:
<td>MySpace Friend ID<br>
						<img src="http://www.YOURFORUM.com/forum/images/misc/myspace.gif" alt="" />

                                                <input type="text" class="bginput" 
name="myspace" value="$bbuserinfo[fieldXX]" size="25" maxlength="100" dir="ltr" /></td>

					
</td>


<td>FaceBook UserID<br>
						<img src="http://www.YOURFORUM.com/forum/images/misc/facebook.gif" alt="" />

                                                <input type="text" class="bginput" 
name="myspace" value="$bbuserinfo[fieldXX]" size="25" maxlength="100" dir="ltr" /></td>

					
</td>
Replace the XX's with appropiate field numbers that you created from the above post.
Also replace the YOURFORUM with your forum URL.

All it does is take the field that you enter in the custom fields in put them in the input fields under profile page. In order for it to display the user will have to enter in the custom fields which makes this kind of pointless to begin with. I do not know how to make the input field it's own variable. Maybe someone can figure that out and edit it?

Anyway. There you go.
Reply With Quote
  #3  
Old 10-16-2007, 08:29 PM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok

Waiting on Zoints too...
Reply With Quote
  #4  
Old 10-16-2007, 08:44 PM
jon5221 jon5221 is offline
 
Join Date: Jan 2007
Location: Chicago, IL
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice... Installed, Thanks!
Reply With Quote
  #5  
Old 10-18-2007, 06:59 AM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the feedback, if you have problems just post here.
Reply With Quote
  #6  
Old 10-21-2007, 05:57 PM
wpeloquin wpeloquin is offline
 
Join Date: May 2006
Location: Behind you...
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

instead of
Code:
<legend>$vbphrase[instant_messaging]</legend>

---------------
=Replace With:=
---------------

<legend>Contact</legend>
i just edited the phrase itself
Code:
edit GLOBAL phrase instant_messaging

edit to (or to variation as suits you):

Instant Messaging and Contact
Reply With Quote
  #7  
Old 10-21-2007, 06:45 PM
wpeloquin wpeloquin is offline
 
Join Date: May 2006
Location: Behind you...
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChU v2 View Post
All it does is take the field that you enter in the custom fields in put them in the input fields under profile page. In order for it to display the user will have to enter in the custom fields which makes this kind of pointless to begin with. I do not know how to make the input field it's own variable. Maybe someone can figure that out and edit it?.
I've been playing around with this, because thats where i would like the inputs. i'm not sure if this can be done without a plugin?

still working on it. hopefully it can
Reply With Quote
  #8  
Old 10-21-2007, 06:48 PM
JadedSouls's Avatar
JadedSouls JadedSouls is offline
 
Join Date: May 2007
Location: Canada, eh?
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*installed* and made a slight change to get the actual facebook profile link shown in memberinfo to actually work..
Reply With Quote
  #9  
Old 10-21-2007, 06:49 PM
JadedSouls's Avatar
JadedSouls JadedSouls is offline
 
Join Date: May 2007
Location: Canada, eh?
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChU v2 View Post
To make the input field display in edit profile page:

Go to your editprofile template.

<cut>
And it's modifyprofile template .. I searched for editprofile for awhile *lol*
Reply With Quote
  #10  
Old 10-23-2007, 06:39 PM
mcyates mcyates is offline
 
Join Date: Jan 2003
Location: Middlesbrough, Cleveland
Posts: 798
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My images don't show up, strange!!!!
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 07:00 PM.


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.05922 seconds
  • Memory Usage 2,308KB
  • 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
  • (2)bbcode_code
  • (6)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
  • (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