vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Add MSN Messenger Field to profile (https://vborg.vbsupport.ru/showthread.php?t=42184)

Austin Dea 08-11-2002 10:00 PM

Add MSN Messenger Field to profile
 
I was fiddling around today with templates and stuff, and decided that I wanted my MSN messenger field(which was a custom field at the time) up next to the AIM and YAHOO messenger fields (it looks kind of silly down there with Location, etc). So I moved it up there, just adding a row with MSN: and $bbuserinfo[fieldx] in it. Well, the bottom one still showed up( as it is supposed to ;)). So I made it so it doesn't appear to users, and the name didn't appear in the new row I made; it was blank also. So I made this hack =P. (my first :D)

---------------------------------------------

Files Edits: 3 (member.php, register.php(2))
Templates Edits: 4 (getinfo, modifyprofile, registeradult, registercoppa)
Queries: 1
Install Time: 5 minutes

Very simple, post here if any problems. If you want a screenshot, Just Look at the AOL instant messenger field and pretend it says MSN.

Link14716 08-11-2002 10:21 PM

'Tis been done.

Edit: https://vborg.vbsupport.ru/showthrea...&highlight=MSN

Austin Dea 08-11-2002 10:23 PM

I searched, and all I can find is an add-on the Christian's MSN Message Center which still uses a custom field.

Link14716 08-11-2002 10:25 PM

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=40471&highlight=MSN" target="_blank">https://vborg.vbsupport.ru/showt...&highlight=MSN</a>

And there is another one, released around the same time that is less like the others, but it doesn't use a custom field.

Austin Dea 08-11-2002 10:27 PM

Ok then, didn't see in my search. Thanks.

Link14716 08-11-2002 10:28 PM

Still a nice hack, much simpler, but I am gonna use the more integrated one. ;)

Nice work. :D

Austin Dea 08-11-2002 10:29 PM

Yeah, the other has the icon and stuff =P. If mods could delete this, that'd be grrreat :).

Link14716 08-11-2002 10:30 PM

Like I said though, some people want more simpler ones, so, no need for deletion :)

zootsuit 08-11-2002 10:36 PM

Yeah, don't delete...I'm gonna try it! :)

Austin Dea 08-12-2002 03:54 PM

Bah, I had the instrucs wrong. If you installed, re-do it. Or change all the places it says $bbuserinfo[msn] to $userinfo[msn] except in the 'modifyprofile' template.

>:BBBBBBbb

Brad 08-13-2002 12:09 AM

i also did this one frist, then the intergraded one was made because people wanted the msn feild under the other contacts. my verson put a button in post, a link is in my sig. anyways nice job man

clouds_kid 08-14-2002 04:52 PM

Good job austin ;)

banjolawyer 09-01-2002 04:54 PM

I am a beginner. Can you please answer a very simple question for me? Where do I go to comply with the following:

Step 1

Run this query:

ALTER TABLE user ADD msn varchar(40) NOT NULL;

Link14716 09-01-2002 06:31 PM

[sql]ALTER TABLE user ADD msn varchar(40) NOT NULL;[/sql]

Click the link ;)

Austin Dea 09-02-2002 12:13 AM

Hey wow, I never knew about that [ sql] dealie =P.

concept 09-16-2002 09:37 AM

can i get a screen shot of this?

Austin Dea 09-17-2002 12:28 AM

Quote:

Originally posted by Austin Dea
If you want a screenshot, Just Look at the AOL instant messenger field and pretend it says MSN.
:)

Hypey 05-15-2003 06:40 PM

I don't mean to bug anyone (Okay, I do >_>) but I'm an idiot when it comes to SQL stuff.. I tried to install this hack (Which I thought would be simple enough) and now, when people click on Profile/Options etc within their CP, this error pops up -

"Parse error: parse error in /homepages/7/d69116374/htdocs/forums/member.php on line 596"

I tried deleting the query and reverting the Member.php file back, yet I still have that error.. Can anyone help me please? I'm desperate ;_;

Austin Dea 05-15-2003 08:19 PM

If you reverted the file to the original member.php, and you still get the error, there's nothing I can do about that.

Can you post the code in and around line 596?

Hypey 05-16-2003 11:41 AM

(NULL,'$bbuserinfo[userid]','".time()."','$activateid',0)");

^ I think thats line 596 anyway :D

Edit - Heres a bit of code around it -

//save to DB
$DB_site->query("INSERT INTO useractivation VALUES (NULL,'$bbuserinfo[userid]','".time()."','$activateid',0)");

$username=unhtmlspecialchars($bbuserinfo['username']);
$userid=$bbuserinfo['userid'];

I've had reports from people on my forum that they when they log out, they can't log in again afterwards.. Which is not good o_O;; I'm seriously praying that I haven't killed the forum off here >_<

Austin Dea 05-16-2003 02:48 PM

Just re-download the file from vB.com and upload Then reapply your hacks one by one. Sorry, but I can't provide any more support here, since it wasn't my hack that messed it up.

Hypey 05-16-2003 04:56 PM

Just the member.php or the whole lot? I wasn't the one that did the hacks in the first place, thus I'm not even totally sure what hacks we have..

Austin Dea 05-17-2003 04:23 AM

if member.php is giving you the problem, then yes, just that file.

Hypey 05-18-2003 01:00 PM

Hehe, thanks for all your help, I only had to reinstall about four hacks (Out of hundreds we have) and the MSN hack is working now :D

padblaz 05-23-2003 06:43 AM

simple and useful
thanks for this hack :)

kevinnguyen 05-25-2003 09:05 PM

there's a minor bug in tempkate "modifyprofile"
Code:

<tr bgcolor="{ secondaltcolor}">
                <td><b><normalfont>MSN Instant Messenger Handle:</normalfont></b></td>
                <td><normalfont><input type="text" class="bginput" name="msn" value="$userinfo[msn]" size="30" maxlength="40"></normalfont></td>
        </tr>

it should be
Code:

<tr bgcolor="{ secondaltcolor}">
                <td><b><normalfont>MSN Instant Messenger Handle:</normalfont></b></td>
                <td><normalfont><input type="text" class="bginput" name="msn" value="$bbuserinfo[msn]" size="30" maxlength="40"></normalfont></td>
        </tr>


Austin Dea 05-25-2003 10:04 PM

It's the same difference.

kevinnguyen 05-25-2003 10:09 PM

if u use $userinfo[msn], the value will not be displayed in the MSN field when u go to Edit Profile page
so everytime u edit your profile, u have to type your MSN oterwise it will be blank

Austin Dea 05-25-2003 10:55 PM

Weird, I fixed that on my forums, but didn't update the .txt. Thanks. Updated in first post.

Oblivion Knight 05-26-2003 07:57 AM

Installed. Thanks for sharing :)

Though it makes the altcolors for the profile templates go weird and you end up with at least one field with the same altcolor.. Since there's no easy way to fix this, there's nothing much you can do about it..

Austin Dea 05-26-2003 04:47 PM

Yeah, anywhere you put it it'll make two of the same color :P

Austin Dea 05-27-2003 02:42 AM

Geez, I completely forgot the register.php modifications. Update sent and first post updated.

all-the-vb 06-12-2003 05:58 PM

nice hack :)

* All-the-vb clicks install

Sam FT 06-22-2003 12:13 AM

This is hack is very simple to install in comparison to all the other MSN profiles that I have seen on here.

*I also clicked install

Scott-E 10-12-2003 08:57 AM

Nice hack!

I like it, nice and simple.. although if you have nothing in the field it won't display anything so I added this to it:

Open up member.php and search for:

Code:

if ($userinfo[icq]!="") {
    eval("\$userinfo[icqicon] = \"".gettemplate("icq")."\";");
  } else {
    $userinfo[icq]="None";
  }

and above it add:

Code:

if ($userinfo[msn]!="") {
    $userinfo[msn]=$userinfo[msn];
  } else {
    $userinfo[msn]="None";
  }

Save and upload.

Just a quick little addition so if you don't have anything it'll display None like the rest.


All times are GMT. The time now is 05:42 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.01132 seconds
  • Memory Usage 1,779KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (35)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete