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)

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]=" ";
    }

after it add:

Code:

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

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.


All times are GMT. The time now is 10:29 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.01262 seconds
  • Memory Usage 1,769KB
  • 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
  • (42)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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