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)
-   -   Integrated MSN Hack (https://vborg.vbsupport.ru/showthread.php?t=40471)

globalwin 06-29-2002 10:00 PM

Integrated MSN Hack
 
Hi guys. I made this hack because I was sick of just having the standard messenger fields, so I decided to make a hack that integrated the MSN Messenger Handle professionally in like the other ones. Some screenies below:

Register & Edit Profile:

http://www.elemetrix.net/comp/regnprofile.gif

User Profile View:

http://www.elemetrix.net/comp/profile.gif

Postbit View:

http://www.elemetrix.net/comp/postbit.gif

As you can see this is integrated, and is quite different from Anime-loo's hack.

Install instructions updated!
Extra ability added - View MSN Info in Private Messages

bonnmac 06-30-2002 05:10 PM

Hehe I'm the first one to say Thanks! I'm not a code writer so I really appreciate it when someone releases a hack that I'd really like. Haven't installed yet but I'm getting ready to. I'm sure it will work great!

globalwin 06-30-2002 05:11 PM

Im not a code writer either, just a 14yr old with too much time on his hands :D

bluecat 06-30-2002 06:12 PM

Cool! Thanks.

lordnet 06-30-2002 06:23 PM

great hack ;)

my best wish...

LORD

bluecat 06-30-2002 06:31 PM

edit: all set. :)

Boofo 06-30-2002 06:46 PM

You forgot to add this in your instructions. :) I put it as number 8 and changed the other numbers after it to match.

NOTE: Don't forget to take the spaces out of the altcolor variables.
Code:

8. In getinfo template find:

<tr>
        <td bgcolor="{ firstaltcolor}"><normalfont><b>AOL Instant Messenger Handle:</b></normalfont></td>
        <td bgcolor="{ firstaltcolor}"><normalfont>$userinfo[aim] <!-- $ userinfo[aimicon] AIM ICON - remove comments --></normalfont></td>
</tr>

add under it:

<tr>
        <td bgcolor="{ secondaltcolor}"><normalfont><b>MSN Messenger Handle:</b></normalfont></td>
        <td bgcolor="{ secondaltcolor}"><normalfont>$userinfo[msn] <!-- $ userinfo[msnicon] MSN ICON - remove comments --></normalfont></td>
</tr>


Chris M 06-30-2002 06:50 PM

Very easy to follow:)

Thanks:)

Satan

Enjoy Marcus 06-30-2002 07:15 PM

There is a script that pops up the add a contact screen with the email when the msn icon is clicked, i found this, this is roughly it;

PHP Code:

<SCRIPT language=VBScript id=mcvbs 
src
="mc.vbs"></SCRIPT><SCRIPT language=VBScript event=onReadyStateChange for=mcvbs
If 
mcvbs.readyState="complete" And Not isDrawn_ Then 
isDrawn_
=True 
DrawInitialState 
End 
If 
</
SCRIPT
<
SCRIPT language=VBScript event=onload for=window
If 
Not isDrawn_ Then 
isDrawn_
=True 
DrawInitialState 
End 
If 
</
script
<
script language=VBscript
Function 
AddThisEmail(stremail

If 
HasMsgrApp Then 
MsgrApp
.LaunchAddContactUI(strEmail
end if 

End Function 
</
SCRIPT

<
IMG id=mctrack height=1 alt=""
<
SPAN id=appload 
style
="DISPLAY: none"></SPAN
<
br>
<
a href='vbscript:AddThisEmail("$msnhandle")'><img src=$msnimg border=0></a></center>
<
Div Style="display:none">
      <
script language="JavaScript" src="http://m1.nedstatbasic.net/basic.js">
</
script>


        <
font color="#003399" size="3"><script language="JavaScript">

<!--

  
nedstatbasic("ABLLlwVVIdwIJ5qGuvn+ceABD/Pg"1);

// -->

</script


globalwin 06-30-2002 07:30 PM

cool, will try adding it to the hack! :D

Link14716 06-30-2002 08:00 PM

Cool, I will install it later...

NTLDR 06-30-2002 09:48 PM

Great hack, installed without any problems, I've been looking to add this to my board for a while now.

bluecat 06-30-2002 10:27 PM

Can someone tell me what I've done wrong? This is what I see now...

Under profile, it's the image below:

bluecat 06-30-2002 10:28 PM

And in threads, the bottom lines shows this (below) and isn't linked (i.e. it won't open up the messenger).

globalwin 06-30-2002 11:39 PM

Quote:

Originally posted by bluecat
Can someone tell me what I've done wrong? This is what I see now...

Under profile, it's the image below:

Are you sure you closed the table tags? /

And the hack doesnt open messenger yet, im sure some Uber L33T person e.g. Boofo will add it :D

bluecat 07-01-2002 12:09 AM

I apologize sounding stupid, but what do you mean by closing the tags?

SemperFidelis 07-01-2002 02:17 AM

As per what bluecat asked :

Whats with the green ?

Apart from that, excellent idea.
And thankyou
:)

Boofo 07-01-2002 02:19 AM

Check your colors. You have either firstaltcolor or secondaltcolor misspelled or put in there wrong in the code.

Quote:

Originally posted by v-net
As per what bluecat asked :

Whats with the green ?

Apart from that, excellent idea.
And thankyou
:)


pattox2k1 07-01-2002 03:25 AM

heh looks like you got around to it before me.....

SemperFidelis 07-01-2002 04:50 AM

No good so far
(with the green colour I mean)

Just went thru the install instructions again - including the addtional bit - and its still green

Speeling of both firstaltcolor and secondaltcolor is the same as in the install file (and as above)

Any other ideas ?

Boofo 07-01-2002 04:53 AM

PM me with the chunk of code that is giving you problems. Send the the code right above it too.

SemperFidelis 07-01-2002 04:58 AM

Will do
Thanks Boofo
:)

pattox2k1 07-01-2002 07:06 AM

i might check through the code and look for bugs if you want.....

Boofo 07-01-2002 07:49 AM

I'll have a re-write for it shortly for globalwin to fix some errors and add the option to have the msnicon show up in the private.php and privmsg template.

globalwin 07-01-2002 03:30 PM

looking forward to it :D

globalwin 07-01-2002 03:43 PM

I hav just now made it show in the private.php and privmsg template. About to update...

Link14716 07-01-2002 03:47 PM

/me installs.

globalwin 07-01-2002 03:54 PM

hack updated with View MSN Info in Private Messages :D

Les Shaw 07-01-2002 05:44 PM

Quote:

Originally posted by Enjoy Marcus
There is a script that pops up the add a contact screen with the email when the msn icon is clicked, i found this, this is roughly it;

PHP Code:

<SCRIPT language=VBScript id=mcvbs 
src
="mc.vbs"></SCRIPT><SCRIPT language=VBScript event=onReadyStateChange for=mcvbs
If 
mcvbs.readyState="complete" And Not isDrawn_ Then 
isDrawn_
=True 
DrawInitialState 
End 
If 
</
SCRIPT
<
SCRIPT language=VBScript event=onload for=window
If 
Not isDrawn_ Then 
isDrawn_
=True 
DrawInitialState 
End 
If 
</
script
<
script language=VBscript
Function 
AddThisEmail(stremail

If 
HasMsgrApp Then 
MsgrApp
.LaunchAddContactUI(strEmail
end if 

End Function 
</
SCRIPT

<
IMG id=mctrack height=1 alt=""
<
SPAN id=appload 
style
="DISPLAY: none"></SPAN
<
br>
<
a href='vbscript:AddThisEmail("$msnhandle")'><img src=$msnimg border=0></a></center>
<
Div Style="display:none">
      <
script language="JavaScript" src="http://m1.nedstatbasic.net/basic.js">
</
script>


        <
font color="#003399" size="3"><script language="JavaScript">

<!--

  
nedstatbasic("ABLLlwVVIdwIJ5qGuvn+ceABD/Pg"1);

// -->

</script


Please excuse my ignorance but where exactly do I install this script?

globalwin 07-05-2002 07:17 PM

I think Boofo is adding it for me :)

Boofo 07-05-2002 07:22 PM

[high]* Boofo says he is working on it. :)
[/high]

Quote:

Originally posted by globalwin
I think Boofo is adding it for me :)

-Sidekick- 07-06-2002 05:08 AM

lol, I'm stuck at step 1. Says modify database. Where do I do this?

Go go post #1. :bunny:

scsa20 07-06-2002 09:09 AM

Quote:

Originally posted by Enjoy Marcus
There is a script that pops up the add a contact screen with the email when the msn icon is clicked, i found this, this is roughly it;

PHP Code:

<SCRIPT language=VBScript id=mcvbs 
src
="mc.vbs"></SCRIPT><SCRIPT language=VBScript event=onReadyStateChange for=mcvbs
If 
mcvbs.readyState="complete" And Not isDrawn_ Then 
isDrawn_
=True 
DrawInitialState 
End 
If 
</
SCRIPT
<
SCRIPT language=VBScript event=onload for=window
If 
Not isDrawn_ Then 
isDrawn_
=True 
DrawInitialState 
End 
If 
</
script
<
script language=VBscript
Function 
AddThisEmail(stremail

If 
HasMsgrApp Then 
MsgrApp
.LaunchAddContactUI(strEmail
end if 

End Function 
</
SCRIPT

<
IMG id=mctrack height=1 alt=""
<
SPAN id=appload 
style
="DISPLAY: none"></SPAN
<
br>
<
a href='vbscript:AddThisEmail("$msnhandle")'><img src=$msnimg border=0></a></center>
<
Div Style="display:none">
      <
script language="JavaScript" src="http://m1.nedstatbasic.net/basic.js">
</
script>


        <
font color="#003399" size="3"><script language="JavaScript">

<!--

  
nedstatbasic("ABLLlwVVIdwIJ5qGuvn+ceABD/Pg"1);

// -->

</script


I'm almost done with my hack that does that so stay tune

Roody 07-06-2002 04:37 PM

i'm having problems understanding what this is telling me to do. Can someone break this down for me exactly?

1. Modofy the database (*Database* - Change this to your database name)

ALTER TABLE `*Database*`.`user` ADD `msn` VARCHAR(50) NOT NULL;

^^^^^^^^^^
Edit This

-Sidekick- 07-06-2002 08:54 PM

Quote:

Originally posted by Roody
i'm having problems understanding what this is telling me to do. Can someone break this down for me exactly?

1. Modofy the database (*Database* - Change this to your database name)

ALTER TABLE `*Database*`.`user` ADD `msn` VARCHAR(50) NOT NULL;

^^^^^^^^^^
Edit This

That's what I said. :classic:

scsa20 07-06-2002 08:59 PM

just use this in PHPMyAdmin:

[sql]
ALTER TABLE `user` ADD `msn` VARCHAR(50) NOT NULL;
[/sql]

Roody 07-06-2002 09:15 PM

man i must be dumb man because i cant find a phpmyadmin file.

any help?

scsa20 07-06-2002 09:19 PM

you need to get PHPMyAdmin, ususaly most host comes with PHPMyAdmin alreadly installed for you, with others you need to install it yourself. do a search on the web for PHPMyAdmin

Roody 07-07-2002 08:49 PM

ok two questions regarding this hack. first off i have installed PHPMyAdmin on my server. Do i need to add it into my forums directory or can it reside anywhere on my server? Second, where do i go now SCSA to put that info you listed? Which particular file do i tweak?

Frank 08-13-2002 10:28 AM

There is a bug in the HTML register code.

Change:
Quote:

7. In registeradult and registercopper templates find:

<td bgcolor="#F1F1F1"><normalfont><b>AOL Instant Messenger Handle:</b></normalfont></td>
<td bgcolor="#F1F1F1"><normalfont><input type="text" class="bginput" name="aim" size="25" maxlength="20"></normalfont></td>
</tr>

and under it:

<td bgcolor="#DFDFDF"><normalfont><b>MSN Messenger Handle:</b></normalfont></td>
<td bgcolor="#DFDFDF"><normalfont><input type="text" class="bginput" name="msn" size="25" maxlength="20"></normalfont></td>
</tr>
to:
Quote:

7. In registeradult and registercopper templates find:

<td bgcolor="#F1F1F1"><normalfont><b>AOL Instant Messenger Handle:</b></normalfont></td>
<td bgcolor="#F1F1F1"><normalfont><input type="text" class="bginput" name="aim" size="25" maxlength="20"></normalfont></td>
</tr>

and under it:
<tr>
<td bgcolor="#DFDFDF"><normalfont><b>MSN Messenger Handle:</b></normalfont></td>
<td bgcolor="#DFDFDF"><normalfont><input type="text" class="bginput" name="msn" size="25" maxlength="20"></normalfont></td>
</tr>
You missed off adding a <tr>

Nice hack.


All times are GMT. The time now is 04:50 PM.

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.01543 seconds
  • Memory Usage 1,852KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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