vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Mini Mods - MySpace & FaceBook buttons in member profile and postbit (https://vborg.vbsupport.ru/showthread.php?t=160232)

ChU v2 10-13-2007 10:00 PM

MySpace & FaceBook buttons in member profile and postbit
 
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.

ChU v2 10-14-2007 08:23 PM

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.

iogames 10-16-2007 08:29 PM

Ok :D

Waiting on Zoints too...

jon5221 10-16-2007 08:44 PM

Very nice... Installed, Thanks! :)

ChU v2 10-18-2007 06:59 AM

Thanks for the feedback, if you have problems just post here.

wpeloquin 10-21-2007 05:57 PM

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


wpeloquin 10-21-2007 06:45 PM

Quote:

Originally Posted by ChU v2 (Post 1360029)
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

JadedSouls 10-21-2007 06:48 PM

*installed* and made a slight change to get the actual facebook profile link shown in memberinfo to actually work..

JadedSouls 10-21-2007 06:49 PM

Quote:

Originally Posted by ChU v2 (Post 1360029)
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*

mcyates 10-23-2007 06:39 PM

My images don't show up, strange!!!!


All times are GMT. The time now is 11:15 AM.

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.01224 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (6)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete