Welcome, Guest. Please Login or Register.
April 26, 2025, 09:29:08 AM
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  |  [Done 1.4.1][Code]Enhanced IM Box V2 « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [Done 1.4.1][Code]Enhanced IM Box V2  (Read 6335 times)
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
[Done 1.4.1][Code]Enhanced IM Box V2
« on: August 21, 2002, 04:30:41 AM »
Reply with quote

This changes the IM buttons to align along the bottom of both in and out box screens, it also adds a report to webmaster in the inbox view. Qoute features work this time and all pertainent functional changes have succesfully passed inhouse tests.

1. Backup your system setups (shouldn't you always?)

2. Copy/transfer over images in the yabbimages directory if needed.

3. Apply mod manually or with boardmod

Enjoy!

Graphic:

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

Archive:
http://www.the-meeting-place.com/members/uploads/ENH-IM-Box.zip
Logged

Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[Done 1.4.1][Code]Enhanced IM Box V2
« Reply #1 on: August 30, 2002, 06:15:37 PM »
Reply with quote

Parse error: parse error, unexpected '<' in E:\wampp2c\htdocs\yabb14\Sources\InstantMessage.php on line 265

Fatal error: Call to undefined function: imindex() in E:\wampp2c\htdocs\yabb14\index.php on line 232

Line 265:
<a href="javascript:DoConfirm('$txt[154]?','$cgi&action=imremove&caller=1&id=$messageid');">$img[im_remove]</a>
Line 232:
if ($action == 'im') { include_once "$sourcedir/InstantMessage.php"; IMIndex(); }
Logged

Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Done 1.4.1][Code]Enhanced IM Box V2
« Reply #2 on: August 30, 2002, 06:25:25 PM »
Reply with quote

Thanks for the bug report, strange that it's not been found by anyone else yet. Where are you making these corrections? index.php?
Logged

Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[Done 1.4.1][Code]Enhanced IM Box V2
« Reply #3 on: August 30, 2002, 06:29:39 PM »
Reply with quote

Sorry, these are the lines with the bugs :-[. Do you see the error ? I can't handle PHP good enough to see that.
Logged

Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Done 1.4.1][Code]Enhanced IM Box V2
« Reply #4 on: August 30, 2002, 06:37:38 PM »
Reply with quote

Maybe you didnt apply the mod or that %^% boardmod didnt apply. You should have in instantmessage.php at and along that reported line (256 to 274) this:

EOT;

// ENH IM

if ($modSettings['enableReportToMod'] == '1')
   print "<font size=1><a href=\"mailto:$webmaster_email\">$img[report]</a></font>";

}

// This marks the spot where I finished making changes

print <<<EOT
   <a href="javascript:DoConfirm('$txt[154]?','$cgi&action=imremove&caller=1&id=$messageid');">$img[im_remove]</a>
        </font></td>
      </tr>
    </table>
    </td>
  </tr>
EOT;
Logged

Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[Done 1.4.1][Code]Enhanced IM Box V2
« Reply #5 on: August 30, 2002, 06:53:29 PM »
Reply with quote

It seems, that the *.mod file is "corrupt". There are some errors:

<add after>
// ENH IM         
         $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>
The tags are different, but this isn't the solution.

<search for>
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;
}
print <<<EOT
</search for>


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

// ENH IM

if ($modSettings['enableReportToMod'] == '1')
   print "<font size=1><a href=\"mailto:$webmaster_email\">$img[report]</a></font>";

}

// ENd ENH IM
</replace>
Is it right that you miss "print <<<EOT" here ? Hmm, but that's not the point ! I'm getting now some error in line 483 in InstantMessage.php.

Can't figure it out...
Logged

Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Done 1.4.1][Code]Enhanced IM Box V2
« Reply #6 on: August 30, 2002, 07:30:24 PM »
Reply with quote

instead of using boardmod try modding a virgin instantmessege.php by hand. If you find this to be difficult im me with your email address and I'll send you the php file. This mod change has been tested not only by me but also by another web op dev, for all theory applied it should be working. Besides, your pointing errors out to code lines that I had not modified, indicating that there must be a mod process error (boardmod?).
Logged

Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[Done 1.4.1][Code]Enhanced IM Box V2
« Reply #7 on: August 30, 2002, 07:42:30 PM »
Reply with quote

Quote from: Wiziwig on August 30, 2002, 07:30:24 PM...If you find this to be difficult im me...
No, it's not that difficult ;D. Hmm, I should think about that next time :-[
* Daniel D. is a noob* ;)

QuoteBesides, your pointing errors out to code lines that I had not modified...
I know, it's still strange because after uninstalling it, the board works ! I checked the modifications - only the ones from the file.

Ok, I'll test the "Human BoardMod" ;)...
Logged

Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Done 1.4.1][Code]Enhanced IM Box V2
« Reply #8 on: August 30, 2002, 07:46:50 PM »
Reply with quote

no no not saying or refering that you are a * noob * . Shoot I can see your not, you're a "" yabb god "" .. Pardon if I offended thee oh great and mighty one! :) It could very well be my interpretation of how I was supposed to had written the mod for boardmod to work with it. Seriously, do me the favor and pass me your mail and I'll send you my copy of instantmsg. If it works let me know and I'll go back over line by line the mod file..
Logged

Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[Done 1.4.1][Code]Enhanced IM Box V2
« Reply #9 on: August 30, 2002, 07:52:44 PM »
Reply with quote

Hey, don't worry ! I made a joke about myself !! ;D

It's good if you can do this ! It wakes me up ;) !
Logged

Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Done 1.4.1][Code]Enhanced IM Box V2
« Reply #10 on: August 30, 2002, 07:57:05 PM »
Reply with quote

Ok great! :) I'm happy to oblige with the humor, it helps you guys get this yabb in the fine art you've made it into. Now, may I please have your email? (offering up the slaughtered lambs to the yabb gods)  :P
Logged

Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[Done 1.4.1][Code]Enhanced IM Box V2
« Reply #11 on: August 30, 2002, 08:06:06 PM »
Reply with quote

Hmm, "Human BoardMod" didn't work.
Parse error: parse error, unexpected '<' in E:\wampp2c\htdocs\yabb14\Sources\InstantMessage.php on line 260

Fatal error: Call to undefined function: imindex() in E:\wampp2c\htdocs\yabb14\index.php on line 232

Ok, one thought before the address ;):
There are some lines in 'InstantMessage.php', which exists several times. BoardMod starts to search from the beginning after each command, therefore it's hard to insert a mod which has to change these parts. You have to grab big parts with <search for> and change them with <replace>. But it's only a thought, I think you know that...
Logged

Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Done 1.4.1][Code]Enhanced IM Box V2
« Reply #12 on: August 30, 2002, 08:10:37 PM »
Reply with quote

I mailed you, thanks! If try the attachment and if it works then I'll re-work that ^&^ mod file..

(slaughters the sacrificial sheep with enjoyment to vent his frustrations)

Logged

Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[Done 1.4.1][Code]Enhanced IM Box V2
« Reply #13 on: August 30, 2002, 08:19:05 PM »
Reply with quote

Worked with your file ! :D
Logged

CandyMann_69
Full Member
***
Posts: 143


:)

Re:[Done 1.4.1][Code]Enhanced IM Box V2
« Reply #14 on: December 11, 2002, 02:11:41 AM »
Reply with quote

I was just curious what features this mod had.  I was looking at the mod for yabb 1 Gold and was thinking about what improments might be made to the IM.

http://boardmod.yabbforum.com/mods.php?searchfor=aimb_2_sp11-final.zip

Description: Advanced IM Box 2.0 for YaBB 1 Gold - SP 1.1

New in V2.0:
- BuddyList
- Prev-Next Links to IM-Display
- List ALL Messages on IM-Display
- checkbox for checking all IMs for delete
- whole Subject cell is now a link to view the IM
- Admin can see the IP of the sender
- moved IM-Preferences completely to Modify-Profile
- Bug with multiple IMs fixed
- Storage Box (thx to Homey for the idea and his mod)
- IM Preview choosable
- User can choose to view IMs in same window or in a new window
- user online status
- option for admins to send all users an IM by MemberGroups
- security popup on deleting messages
- SP1.1 style icons
- Instant Message restrictions
- enable/disable popup and sound as default for new regged users
- ability to call Instant Messages back from recipient
- print Instant Messages
- ability to setup an auto-away message
- reply/quote without open Instant Messages
- percent of box - usage if Instant Messages are limited

:)
Logged
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.1][Code]Enhanced IM Box V2 « 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.098 seconds with 20 queries.