![]() |
just the hack i needed
|
Alot of my members use MSN so I'll install this when my site is back up ^^
|
Quote:
|
Wow this hack is sweet, man looks great :rambo: Thx
|
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. |
thanks for the hack, but shouldnt admins be able to edit msn info in the admin cp ??
|
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
|
PHP Code:
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 |
That's because there is no necessity. It's just how some people writes the code. I myself used to do that.
|
vB2 has code like that all over the place. It's just to ensure the variable is empty.
|
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 ;) . |
Thanks a lot.
|
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 |
Great hack, thanks :)
|
I did every thing that I must do but nothing apper !!!!!
|
If no one in your buddy list has either a AIM or MSN number provided, nothing can appear.
|
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 |
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. |
I'll recheck it again now
wait :) |
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 ? |
Installed at UZI Talk Forums. Thanks! :banana:
|
Does this one work with MSN 5?
The other hack seems to be having problems with that version, has any one tried? |
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 Code:
,msn Code:
if ($aim!="") { Code:
if ($msn!="") { Code:
if ($userinfo[aim]!="") { Code:
if ($userinfo[msn]!="") { Code:
&aim=$aim Code:
&msn=$msn =============== in admin/user.php =============== find: Code:
makeinputcode("AIM Handle","aim"); Code:
makeinputcode("MSN Messenger Handle","msn"); Code:
aim, Code:
msn, Code:
'".addslashes(htmlspecialchars($aim))."', Code:
'".addslashes(htmlspecialchars($msn))."', Code:
makeinputcode("AIM Handle","aim",$user[aim],0); Code:
makeinputcode("MSN Messenger Handle","msn",$user[msn],0); Code:
,aim='".addslashes(htmlspecialchars($aim))."' Code:
,msn='".addslashes(htmlspecialchars($msn))."' Code:
makeinputcode("and AIM Handle contains","aim"); Code:
makeinputcode("and MSN Messenger Handle contains","msn"); Code:
makeyesnocode("Display AIM ID","displayaim",0); Code:
makeyesnocode("Display MSN ID","displaymsn",0); Code:
and $displayaim == 0 Code:
and $displaymsn == 0 Code:
if ($aim!="") { Code:
if ($msn!="") { Code:
,aim Code:
,msn Code:
if ($displayaim==1) { Code:
if ($displaymsn==1) { Code:
if ($displayaim==1) { Code:
if ($displaymsn==1) { Code:
makehiddencode("aim",$aim); Code:
makehiddencode("msn",$msn); Code:
makehiddencode("displayaim",$displayaim); Code:
makehiddencode("displaymsn",$displaymsn); In memberlist template ================== find: Code:
<td align="center" bgcolor="{ tableheadbgcolor }"><smallfont color="{ tableheadtextcolor }"><b>AIM</b></smallfont></td> Code:
<td align="center" bgcolor="{ tableheadbgcolor }"><smallfont color="{ tableheadtextcolor }"><b>MSN</b></smallfont></td> in memberlistsearch template ================== find: Code:
<tr> Code:
<tr> in memberlistbit template ================== find: Code:
<td bgcolor="{firstaltcolor}">$ userinfo[aimicon]</td> 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). |
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.
|
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...
|
Everything seems to work ok, except the javascript for sending a message. I just get a js error. Anyone else?
|
I'm getting an error too, with MSN 5. Any suggestions?
|
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.
|
when i want to sen a message via link in showthread is making some error?
|
when i register and put in the msn messanger filed my name or if i try to update it it doesnt register it in.
|
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); |
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... :) |
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 |
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.
|
good find :)
========== in register.php ========== find: Code:
,aim Code:
,msn Code:
'".addslashes(htmlspecialchars($aim))."', Code:
'".addslashes(htmlspecialchars($msn))."', |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|