Welcome, Guest. Please Login or Register.
May 06, 2024, 08:24:38 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [beta - code] Inbox IM Enhancement « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [beta - code] Inbox IM Enhancement  (Read 9709 times)
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
[beta - code] Inbox IM Enhancement
« on: April 14, 2002, 08:41:21 PM »
Reply with quote

Features:
Places all the IM buttons neatly along the bottom of the msg view in the IM box msgs, adds MSN, ICQ, YIM, and AIM along the bottom of the IM msg. Adds a report to webadmin ( a feature so my users can report abusive im's ). It also boarders the msg view, making it more attractive.

It is based on dOCda S!'s and Shreddies cosmetic modifications to msg display. I wanted some of the same features in the IM box. I don't have this written as a mod. It works fine for me and does what I wanted it to do and I think my inbox display looks so much better. This is my first crack at modifications so don't flame me too hard :) If you have a better way to do this share your changes!

[Edit InstantMessege.php]
[search for]
         $yim = $yimon[$musername];
[add after, making sure you change the email address to yours!]
         $webmaster = "[email protected]";
    $msn = $userprofile[$musername]['MSN'];
   if (OnlineStatus($musername) > 0) { $sendIM = $img[message_sm_on]; } else $sendIM = $img[message_sm_off];
         $sendm = "$menusep<a href=\"$cgi;action=imsend;to=$musername\">$sendIM</a>";
[search for]
   {$userprofile[$musername]['gender']}
    <center>{$userprofile[$musername]['avatar']} {$userprofile[$musername]['personalText']} {$userprofile[$musername]['ICQ']} $icq   {$userprofile[$musername]['YIM']} $yim   {$userprofile[$musername]['AIM']}
    </center></font></td>
    <td class="$windowcss" bgcolor="$windowbg" valign=top>
    <table border="0" cellspacing="0" cellpadding="3" width="100%" height="100%" align="center" bgcolor="$color[bordercolor]" class="bordercolor">
      <tr class="$windowcss" bgcolor="$windowbg" height="10" width="100%">
        <td class="$windowcss" bgcolor="$windowbg"><a name="$messageid"><font size=1> <b>$msub</b></font></td>
        <td class="$windowcss" bgcolor="$windowbg" align="right"><font size=1><b>$txt[30]:</b> $mydate</font></td>
      </tr><tr height="*">
        <td colspan="2" class="$windowcss" bgcolor="$windowbg" height="100%">
        <hr width="100%" size="1" color="$color[windowbg3]">
        <font size=2>$message</font>
        </td>
      </tr><TR height="10">
        <td colspan="2" class="$windowcss" bgcolor="$windowbg" height="10">
        <font size=2>{$userprofile[$musername]['signature']}</font>
        <hr width="100%" size="1" color="$color[windowbg3]">
        </td>
      </tr><tr height="10" width="100%">
   <td class="$windowcss" bgcolor="$windowbg" height="10">
        <font size=2>
EOT;
if ($userprofile[$musername]['hideEmail'] != '1' || $settings[7] == "Administrator" || $allow_hide_email != 1)
   print ("   {$userprofile[$musername]['websiteUrl_IM']}<a href=\"mailto:$memail\">$img[email]</a>$profbutton\n");
else
   print ("   {$userprofile[$musername]['websiteUrl_IM']}$profbutton\n");

print <<<EOT
        </font></td>
        <td class="$windowcss" bgcolor="$windowbg" height="10" align="right"><font size=2>
EOT;
if (!$deleted) {
   print <<<EOT
   <a href="$cgi&action=imsend&caller=1&imsg=$messageid"e=1&to=$musername">$img[replyquote]</a>$menusep<a href="$cgi&action=imsend&caller=1&imsg=$messageid&reply=1&to=$musername">$img[im_reply]</a>$menusep
EOT;
}
[replace with]
   {$userprofile[$musername]['gender']}
    <center>{$userprofile[$musername]['avatar']} <br> {$userprofile[$musername]['personalText']}</center></font></td>
    <td class="$windowcss" bgcolor="$windowbg" valign=top>
    <table border="1" cellspacing="0" cellpadding="1" width="100%" height="10%" align="center" bgcolor="$color[bordercolor]" class="bordercolor">
      <tr class="$windowcss" bgcolor="$windowbg" height="10%" width="100%">
        <td class="$windowcss" bgcolor="$windowbg" align="left"><a name="$messageid"><font size=1> <b>$msub</b></font></td>
        <td class="$windowcss" bgcolor="$windowbg" align="left"><font size=1><b>$txt[30]:</b> $mydate</font></td>
      </tr><tr height="10%">
        <td colspan="2" class="$windowcss" bgcolor="$windowbg" height="200" valign=top>
        <font size=2>$message</font>
        </td>
      </tr><tr height="10%">
        <td colspan="2" class="$windowcss" height="10%">
        <font size=2>{$userprofile[$musername]['signature']}</font>
      </tr><tr height="10%" width="100%" height="100%" align="right" class="$windowcss" bgcolor="$windowbg">
   <td class="$windowcss" bgcolor="$windowbg" height="100%" align="right">
        <font size=2>
EOT;
if ($userprofile[$musername]['hideEmail'] != '1' || $settings[7] == "Administrator" || $allow_hide_email != 1)
   print (" $msn {$userprofile[$musername]['ICQ']} $icq   $yim   {$userprofile[$musername]['AIM']} {$userprofile[$musername]['websiteUrl_IM']}<a href=\"mailto:$memail\">$img[email]</a>$profbutton\n");
else
   print (" $msn {$userprofile[$musername]['ICQ']} $icq   $yim   {$userprofile[$musername]['AIM']} {$userprofile[$musername]['websiteUrl_IM']}$profbutton\n");

print <<<EOT
        </font></td>
        <td class="$windowcss" bgcolor="$windowbg" height="10%" align="left"><font size=2>
EOT;

if (!$deleted) {
   print <<<EOT
   <a href="$cgi&action=imsend&caller=1&imsg=$messageid"e=1&to=$musername">$img[replyquote]</a>$menusep<a href="$cgi&action=imsend&caller=1&imsg=$messageid&reply=1&to=$musername">$img[im_reply]</a>$menusep
EOT;

if ($modSettings['enableReportToMod'] == '1')
    print "<font size=1><a href=\"mailto:$webmaster\"><img src=\"$imagesdir/report.gif\" alt=\"Report this post to the Administrator\" border=0></a></font>";
}

[end modifications]

Hope you find this usefull. Example menu below:

http://www.the-meeting-place.com/members/uploads/imboxmenu.jpg


« Last Edit: January 18, 2003, 04:21:15 AM by Nemesis » Logged

Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:[beta] Inbox IM Enhancement
« Reply #1 on: April 15, 2002, 03:14:20 AM »
Reply with quote

What exactly does that do?
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[beta] Inbox IM Enhancement
« Reply #2 on: April 15, 2002, 03:32:27 AM »
Reply with quote

Just like dOCda S!'s and Shreddies cosmetics in the msg display forums, it places all the IM buttons neatly along the bottom of the msg view in the IM box msgs, adds MSN and all the other IM'rs along the bottom, adds a report to webadmin ( a feature so my users can report abusive im's ). It also boarders the msg view, making it more attractive.



Quote from: Daniel Hofverberg on April 15, 2002, 03:14:20 AMWhat exactly does that do?

Logged

tazthedev
Full Member
***
Posts: 161


I'm a llama!

Re:[beta] Inbox IM Enhancement
« Reply #3 on: April 15, 2002, 11:03:32 PM »
Reply with quote

can we see it in action ?!???? ;D
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[beta] Inbox IM Enhancement
« Reply #4 on: April 15, 2002, 11:28:17 PM »
Reply with quote

Your welcome to see it in action if you want to follow the link. It's a graphic of what the IM box msg display will look like. Note that it'll only show the IM buttons for what IM's the user filled in on the profile. Just like the cosmetic msg display in the forums.

http://www.the-meeting-place.com/members/uploads/imboxmenu.jpg

Quote from: tazthedev on April 15, 2002, 11:03:32 PMcan we see it in action ?!???? ;D
« Last Edit: April 16, 2002, 03:18:49 AM by Wiziwig » Logged

Delinquently insane
Foolish One
YaBB God
*****
Posts: 529


The One Surpassed By God!!!!

Re:[beta] Inbox IM Enhancement
« Reply #5 on: April 16, 2002, 12:43:59 AM »
Reply with quote

Nice Work!!!! Thanx Another Fine Mod  =)
Logged

ALL MODS Cancelled projected terminated
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[beta] Inbox IM Enhancement
« Reply #6 on: April 16, 2002, 01:02:56 AM »
Reply with quote

Ahh gosh your welcome! :) Wonder when these coderz will give me a bumpup from noobie lol..  Thanks!

Quote from: mcguire on April 16, 2002, 12:43:59 AMNice Work!!!! Thanx Another Fine Mod  =)
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[beta] Inbox IM Enhancement
« Reply #7 on: April 16, 2002, 02:44:51 AM »
Reply with quote

Will you please make a test account?
Logged

John R
PHP Challenged
Global Moderator
Sr. Member
*****
Posts: 387


Click, Click, Click, Bang!

ICQ - 3166233codehammer@thevortex.com
Re:[beta] Inbox IM Enhancement
« Reply #8 on: April 16, 2002, 03:14:39 AM »
Reply with quote

Quote from: Wiziwig on April 16, 2002, 01:02:56 AMAhh gosh your welcome! :) Wonder when these coderz will give me a bumpup from noobie lol..  Thanks!

In about 6 more posts if memory serves..........

cheers........
Logged

Be careful what you wish for, it might come true!

Note: I do not acknowledge support requests via PM, MSN or ICQ, please use the support boards.
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[beta] Inbox IM Enhancement
« Reply #9 on: April 16, 2002, 03:17:57 AM »
Reply with quote

No but I did include the graphic link,

http://www.the-meeting-place.com/members/uploads/imboxmenu.jpg

P.S.

Jeff..  5 more posts now.. lol.


Quote from: David on April 16, 2002, 02:44:51 AMWill you please make a test account?
« Last Edit: April 16, 2002, 03:19:19 AM by Wiziwig » Logged

Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[beta] Inbox IM Enhancement
« Reply #10 on: May 11, 2002, 08:07:25 PM »
Reply with quote

I used this (great) mod, BUT :

when I want to QUOTE somebody, their username will not automatically be filled in !

I noticed this before, but didn't know where to look for this error.

I know it is in the second part of the code, but where exactly ??

Can you check if it is a problem on my board, or an error in the code ??

I used the original InstantMessage.php (v1.3.1), and applied your code.....nothing more or less.
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
iamdamnsam
Full Member
***
Posts: 225


RamchargerCentral.Com

WWW
Re:[beta] Inbox IM Enhancement
« Reply #11 on: May 12, 2002, 01:16:53 AM »
Reply with quote

Quote from: Webby on May 11, 2002, 08:07:25 PMI used this (great) mod, BUT :

when I want to QUOTE somebody, their username will not automatically be filled in !

I noticed this before, but didn't know where to look for this error.

I know it is in the second part of the code, but where exactly ??

Can you check if it is a problem on my board, or an error in the code ??

I used the original InstantMessage.php (v1.3.1), and applied your code.....nothing more or less.

It isn't included because they are the only one it could possibly be, and if they are recieving the IM reply, they know that is there words in the qoute.
Logged

Koth
Jr. Member
**
Posts: 91


Your mother was a ham sandwich.

Re:[beta] Inbox IM Enhancement
« Reply #12 on: May 12, 2002, 03:43:15 AM »
Reply with quote

Quote from: iamdamnsam on May 12, 2002, 01:16:53 AM
Quote from: Webby on May 11, 2002, 08:07:25 PMI used this (great) mod, BUT :

when I want to QUOTE somebody, their username will not automatically be filled in !

I noticed this before, but didn't know where to look for this error.

I know it is in the second part of the code, but where exactly ??

Can you check if it is a problem on my board, or an error in the code ??

I used the original InstantMessage.php (v1.3.1), and applied your code.....nothing more or less.


Actually you can quote one user and adress the Pm to another.
It isn't included because they are the only one it could possibly be, and if they are recieving the IM reply, they know that is there words in the qoute.
Logged


 
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[beta] Inbox IM Enhancement
« Reply #13 on: May 12, 2002, 09:11:02 AM »
Reply with quote

QuoteActually you can quote one user and adress the Pm to another.
It isn't included because they are the only one it could possibly be, and if they are recieving the IM reply, they know that is there words in the qoute.

Strange, because it IS like that WITHOUT your mod......

When I "quote" without your mod, the sender's name is used in the "to" box.  Now it is not.  Couldn't you make it like it is without the mod ?  
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[beta] Inbox IM Enhancement
« Reply #14 on: May 18, 2002, 10:24:44 PM »
Reply with quote

AND, when I quote, the text isn't quoted.  So, could you please have a look at it ?!

I like the mod, and want to use it, but it isn't yet working 100%....
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [beta - code] Inbox IM Enhancement « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.056 seconds with 19 queries.