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)

DarkDraco07 08-13-2002 11:15 AM

just the hack i needed

[D]Vincent 08-13-2002 11:23 AM

Alot of my members use MSN so I'll install this when my site is back up ^^

globalwin 08-18-2002 08:45 AM

Quote:

Originally posted by Frank
There is a bug in the HTML register code.

Change:

to:


You missed off adding a <tr>

Nice hack.

thanks, hack updated.

Donkeyballz 08-18-2002 09:21 AM

Wow this hack is sweet, man looks great :rambo: Thx

Reverend 09-03-2002 07:43 PM

Nice hack.Thanks.
One question,what template do i need to hack to change the first alt & second alt colors in the profile field.
See attachment.

Koss 09-16-2002 07:58 AM

thanks for the hack, but shouldnt admins be able to edit msn info in the admin cp ??

58sniper 09-28-2002 03:35 AM

Should this show up in the memberlist as well? I installed this with no problem, but it doesn't show up in memberlist like AIM/Yahoo

Icheb 12-09-2002 10:58 PM

PHP Code:

if ($post[msn]!="") {
   eval(
"\$post[msnicon] = \"".gettemplate("msn")."\";");
} else {
   
$post[msn]="";



I do not understand the necessity of the else-condition in step 2. In the if-clause, you check whether $post[msn] is empty or not. If it is not empty, you evaluate the template, else (and that is if the variable is empty) you clear it. Eh?


Icheb

Link14716 12-10-2002 01:20 AM

That's because there is no necessity. It's just how some people writes the code. I myself used to do that.

Erwin 12-10-2002 01:39 AM

vB2 has code like that all over the place. It's just to ensure the variable is empty.

Icheb 12-10-2002 01:56 AM

But it has to be empty in the first place so that the else-clause is parsed, in every other case the if-clause is used.
Although i realize that this discussion is sort of pointless ;) .

Tony DiMera 01-22-2003 04:10 PM

Thanks a lot.

Booba88 01-23-2003 11:44 PM

Hey fellas I've modified this hack so that when you click on the msn icon under the users post it will do the following:

1. Check if you are logged into msn messenger If you are not it will tell you so.
2. Check if the person you clicked on is in your contact list if not it will open a msn add contact box with that users msnid
3. Finally It will ask you whether you want to send a message to this person if you so it will open a msn chat to the person.

Currently it doesn't check whether the person is online. I am working on this.

Well I've enclosed a modified zip with the modified file. I'm not a very experienced vb hacker but I hope you all understand.

Regards,
Booba88

Cyberhouse 01-26-2003 07:28 PM

Great hack, thanks :)

nnjj.net 01-31-2003 08:21 AM

I did every thing that I must do but nothing apper !!!!!

Icheb 01-31-2003 09:05 AM

If no one in your buddy list has either a AIM or MSN number provided, nothing can appear.

nnjj.net 01-31-2003 09:16 AM

so are you saying I must add the member first to my buddy list in my vb in order to see the icon of the msn ??

I can see nothing even in showthread or postbet or any where

Icheb 01-31-2003 09:29 AM

Never mind, just saw the thread title and confused it with another MSN hack.

The user has to provide a MSN number so that you can view the icon. If that's the case for you, you didn't do everything as it is stated in the manual.

nnjj.net 01-31-2003 09:38 AM

I'll recheck it again now
wait :)

nnjj.net 01-31-2003 09:47 AM

I checked everything
nothing wrong or missing but still I can't see it

BTW msn can offer if I put as an ex. ****@hotmail.com
right ?

uzitalk 02-14-2003 09:48 PM

Installed at UZI Talk Forums. Thanks! :banana:

Etcher 02-18-2003 08:57 PM

Does this one work with MSN 5?
The other hack seems to be having problems with that version, has any one tried?

jibious 03-30-2003 01:30 AM

i've added on some things to make this a little more complete. gives search functionality in memberlist.php as well as the admin user section.

===============
in memberlist.php
===============

find:

Code:

aim
after it add:

Code:

,msn
then find:

Code:

    if ($aim!="") {
      $condition.=" AND aim LIKE '%".addslashes(htmlspecialchars($aim))."%' ";
    }

after it add:

Code:

    if ($msn!="") {
      $condition.=" AND msn LIKE '%".addslashes(htmlspecialchars($msn))."%' ";
    }

then find:

Code:

    if ($userinfo[aim]!="") {
      eval("\$userinfo[aimicon] = \"".gettemplate("aim")."\";");
    } else {
      $userinfo[aim]="&nbsp;";
    }

after it add:

Code:

    if ($userinfo[msn]!="") {
      eval("\$userinfo[msnicon] = \"".gettemplate("msn")."\";");
    } else {
      $userinfo[msn]="&nbsp;";
    }

then find:

Code:

&aim=$aim
after it add:

Code:

&msn=$msn

===============
in admin/user.php
===============

find:

Code:

          makeinputcode("AIM Handle","aim");
after it add:

Code:

          makeinputcode("MSN Messenger Handle","msn");
then find:

Code:

aim,
after it add:

Code:

msn,
then find:

Code:

'".addslashes(htmlspecialchars($aim))."',
after it add:

Code:

'".addslashes(htmlspecialchars($msn))."',
then find:

Code:

          makeinputcode("AIM Handle","aim",$user[aim],0);
after it add:

Code:

          makeinputcode("MSN Messenger Handle","msn",$user[msn],0);
then find:

Code:

,aim='".addslashes(htmlspecialchars($aim))."'
after it add:

Code:

,msn='".addslashes(htmlspecialchars($msn))."'
then find:

Code:

  makeinputcode("and AIM Handle contains","aim");
after it add:

Code:

  makeinputcode("and MSN Messenger Handle contains","msn");
then find:

Code:

  makeyesnocode("Display AIM ID","displayaim",0);
after it add:

Code:

  makeyesnocode("Display MSN ID","displaymsn",0);
then find:

Code:

and $displayaim == 0
after it add:

Code:

and $displaymsn == 0
then find:

Code:

  if ($aim!="") {
    $condition.=" AND INSTR(LCASE(aim),'".addslashes(strtolower($aim))."')>0";
  }

after it add:

Code:

  if ($msn!="") {
    $condition.=" AND INSTR(LCASE(msn),'".addslashes(strtolower($msn))."')>0";
  }

then find:

Code:

,aim
after it add:

Code:

,msn
then find:

Code:

                if ($displayaim==1) {
                        echo "<td><p><b><span class='tblhead'>AIM ID</span></b></p></td>";
                }

after it add:

Code:

                if ($displaymsn==1) {
                        echo "<td><p><b><span class='tblhead'>MSN ID</span></b></p></td>";
                }

then find:

Code:

                        if ($displayaim==1) {
                                if ($user[aim]=="") {
                                        $user[aim]="&nbsp;";
                                }
                                echo "<td><p>$user[aim]</p></td>";
                        }

after it add:

Code:

                        if ($displaymsn==1) {
                                if ($user[msn]=="") {
                                        $user[msn]="&nbsp;";
                                }
                                echo "<td><p>$user[msn]</p></td>";
                        }

then find:

Code:

                        makehiddencode("aim",$aim);
after it add:

Code:

                        makehiddencode("msn",$msn);
then find:

Code:

                        makehiddencode("displayaim",$displayaim);
after it add:

Code:

                        makehiddencode("displaymsn",$displaymsn);
==================
In memberlist template
==================

find:

Code:

        <td align="center" bgcolor="{ tableheadbgcolor }"><smallfont color="{ tableheadtextcolor }"><b>AIM</b></smallfont></td>
add under it:

Code:

        <td align="center" bgcolor="{ tableheadbgcolor }"><smallfont color="{ tableheadtextcolor }"><b>MSN</b></smallfont></td>
==================
in memberlistsearch template
==================

find:

Code:

<tr>
        <td bgcolor="{ secondaltcolor }"><normalfont><b>and AIM Handle contains</b></normalfont></td>
        <td bgcolor="{ secondaltcolor }"><normalfont><input type="text" class="bginput" size="35" name="aim" value=""></normalfont></td>
</tr>

add under it:

Code:

<tr>
        <td bgcolor="{ firstaltcolor }"><normalfont><b>and MSN Messenger Handle contains</b></normalfont></td>
        <td bgcolor="{ firstaltcolor }"><normalfont><input type="text" class="bginput" size="35" name="msn" value=""></normalfont></td>
</tr>

==================
in memberlistbit template
==================

find:

Code:

        <td bgcolor="{firstaltcolor}">$ userinfo[aimicon]</td>
add under it:

Code:

        <td bgcolor="{firstaltcolor}">$ userinfo[msnicon]</td>

*note: you will need to remove the spaces (" ") between the {} on the template mods for the colors. also, fix the secondalt and firstalt colors to suit your board (i use the same for both, so i didn't need to make any fixes).

leitel 03-31-2003 02:40 PM

Before i go throught the install, it is important to first determine if the actual handle is EXPOSED to general users? I scanned all threads and haven't found the answer. I LOVE the concept.

jibious 03-31-2003 02:47 PM

if someone puts in their handle and saves their profile, then yes, it will be exposed to general users. its just like AIM and Yahoo and ICQ defaultly setup with vBulletin...

thody 04-10-2003 03:11 PM

Everything seems to work ok, except the javascript for sending a message. I just get a js error. Anyone else?

u2page 04-15-2003 08:02 PM

I'm getting an error too, with MSN 5. Any suggestions?

u2page 04-15-2003 08:33 PM

I found the problem. The script is called InstantMessage in the javascript that is included in headinclude, but it is linked as DoInstantMessage in the link to the icon on the posts. Just change one or the other, that solves it.

deepdark 04-18-2003 08:50 PM

when i want to sen a message via link in showthread is making some error?

kdog316 04-19-2003 05:50 PM

when i register and put in the msn messanger filed my name or if i try to update it it doesnt register it in.

jibious 04-24-2003 01:53 PM

i just enabled the javascript code - and i, too, am getting a javascript error.

Line: 22
Char: 63
Error: Object doesn't support this property or method
Code: 0

Line 22, Char 63:
if(confirm("Add "+username+" to your contact list?")==true)MsgrObj.AddContact(0,msnid);

jibious 04-24-2003 02:26 PM

okay, i've figured out why this doesn't work for MSN 5.0

they clsid used in the javascript is B69003B3-C55E-4b48-836C-BC5946FC3B28, which is found in the registry at:

HKEY_CLASSES_ROOT\CLSID\{B69003B3-C55E-4b48-836C-BC5946FC3B28}

the LocalServer32 key entry for this points to:

C:\Program Files\Messenger\msmsgs.exe

MSN Messenger 5 uses the clsid of:

F81CD990-910B-4bbf-9CB3-6A77F3D697B3

so thats the issue - its trying to call upon Windows Messenger rather than MSN Messenger. so if anyone knows how to fix this, muchos gracias... :)

jibious 04-24-2003 03:43 PM

okay, so with a bit more digging an a guy who helped with the original code hacking of the Messenger API, i found out where most, if not all, the info someone would need to use is found. i attached the .js file from hotmail's webpages (you can view source once you login to your hotmail account and search for .js and grab this file, as an alternative).

anyhow, it seems that with MSN Messenger 5.0, it uses MsngrObj.AddContact rather than MsgrObj.AddContact as well as some other things. i've done testing with just replacing MsgrObj with MsngrObj on all the instances, but i ended up getting the same error i got above...

otto

Sam FT 05-19-2003 05:10 AM

I really like this hack, but I have one problem with it. When a user is registering and then they add their msn username. When they go back to their profile the msn username isn't there. If you add it from in the control panel it stays, but it just doesn't stay when you register. I followed the instructions and I have no hacks installed on my website.

jibious 05-19-2003 06:15 AM

good find :)

==========
in register.php
==========

find:

Code:

,aim
after it, add:

Code:

,msn
find:

Code:

'".addslashes(htmlspecialchars($aim))."',
after it, add:

Code:

'".addslashes(htmlspecialchars($msn))."',

yxboom 05-27-2003 04:41 AM

I installed this 3 times to make sure and now all my Online clients, AIM, ICQ and Yahoo are all messed up. Can't figure out if its just coincidence or if something is going on with this hack. I am on vb2.2.9


All times are GMT. The time now is 04:39 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.01303 seconds
  • Memory Usage 1,839KB
  • 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
  • (46)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)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
  • (36)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