![]() |
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. |
|
I searched, and all I can find is an add-on the Christian's MSN Message Center which still uses a custom field.
|
<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. |
Ok then, didn't see in my search. Thanks.
|
Still a nice hack, much simpler, but I am gonna use the more integrated one. ;)
Nice work. :D |
Yeah, the other has the icon and stuff =P. If mods could delete this, that'd be grrreat :).
|
Like I said though, some people want more simpler ones, so, no need for deletion :)
|
Yeah, don't delete...I'm gonna try it! :)
|
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 |
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
|
Good job austin ;)
|
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; |
[sql]ALTER TABLE user ADD msn varchar(40) NOT NULL;[/sql]
Click the link ;) |
Hey wow, I never knew about that [ sql] dealie =P.
|
can i get a screen shot of this?
|
Quote:
|
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 ;_; |
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? |
(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 >_< |
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.
|
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..
|
if member.php is giving you the problem, then yes, just that file.
|
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
|
simple and useful
thanks for this hack :) |
there's a minor bug in tempkate "modifyprofile"
Code:
<tr bgcolor="{ secondaltcolor}"> Code:
<tr bgcolor="{ secondaltcolor}"> |
It's the same difference.
|
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 |
Weird, I fixed that on my forums, but didn't update the .txt. Thanks. Updated in first post.
|
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.. |
Yeah, anywhere you put it it'll make two of the same color :P
|
Geez, I completely forgot the register.php modifications. Update sent and first post updated.
|
nice hack :)
* All-the-vb clicks install |
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 |
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]!="") { Code:
if ($userinfo[msn]!="") { 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|