Welcome, Guest. Please Login or Register.
September 01, 2014, 11:14:25 PM
Home Help Search Login Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  Topic: [Done 1.4.0] New Instant Messages Alert Box « previous next »
Pages: 1 2 [3] 4 5 ... 7 Reply Ignore Print
Author Topic: [Done 1.4.0] New Instant Messages Alert Box  (Read 39438 times)
h20
Noobie
*
Posts: 13


I'm a llama!


Re:[Done 1.4.0] New Instant Messages Alert Box
« Reply #30 on: September 23, 2002, 01:31:40 PM »
Reply with quote

Can you update this to work with 1.4.1? I hate to do stuff by hand unless it's one of my own mods.
Logged
1979Z28
Sr. Member
****
Posts: 324



WWW
Re:[Done 1.4.0] New Instant Messages Alert Box
« Reply #31 on: September 23, 2002, 01:53:55 PM »
Reply with quote

It should work for 1.4.1. That's what I'm running, and I was able to manually do it without any problems.
Logged
bri
Jr. Member
**
Posts: 59


I eat llama!


Re:[Done 1.4.0] New Instant Messages Alert Box
« Reply #32 on: September 28, 2002, 01:20:10 AM »
Reply with quote

i am really having trouble here, i got the php script to run effectivly, but where do i put the mod file to make it appear in the mod center? sorry i am such a n00b ::), but you all are so kind to lend your wisdom!

running 1.4.1

thanks friends
bri
Logged
pege
Full Member
***
Posts: 146



Re:[Done 1.4.0] New Instant Messages Alert Box
« Reply #33 on: October 20, 2002, 11:44:46 AM »
Reply with quote


hey i am new to all this, but all i did was edit the source code to implement my own instant messaging "pop up alert" with version 1.4.1.

really simple like 8 lines of code.



Please post the mod for installing this on 1.4.1

Thanks
Logged
1979Z28
Sr. Member
****
Posts: 324



WWW
Re:[Done 1.4.0] New Instant Messages Alert Box
« Reply #34 on: October 20, 2002, 06:31:59 PM »
Reply with quote

As I said earlier, just use the file that's already around here. I'm running 1.4.1, and I was able to get it to work perfectly
Logged
[=FPS=]Don Glenn
Noobie
*
Posts: 22



WWW
Re:[Done 1.4.0] New Instant Messages Alert Box
« Reply #35 on: October 24, 2002, 06:36:04 AM »
Reply with quote

OK.

1) This didn't work at all.
2) It removed the ability to stay loggedin forever.

I use YaBB SE 1.4.1 and I think I did everything right.

Anyone experienced this??
Logged

charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com


WWW
Re:[Done 1.4.0] New Instant Messages Alert Box
« Reply #36 on: November 24, 2002, 01:21:30 PM »
Reply with quote

well, i had to manually step through boardmod cause of one of the steps...so i did that and am pretty sure everything was done properly...then i ran the php file and it created the tables successfully...

however, the subs page is causing my whole forum to not display...it reports something about a parse error in subs.php (line 1240 which is the very last line) and an index.php (display) error...anyone having this problem?

Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
1979Z28
Sr. Member
****
Posts: 324



WWW
Re:[Done 1.4.0] New Instant Messages Alert Box
« Reply #37 on: November 30, 2002, 08:32:17 PM »
Reply with quote

Uh, anybody have this somewhere? I've got it installed on my board, but someone else I know wants this, but the file in the first post isn't working anymore..
Logged
phark
Sr. Member
****
Posts: 482



Re:[Done 1.4.0] New Instant Messages Alert Box
« Reply #38 on: December 17, 2002, 04:42:28 PM »
Reply with quote

Uh, anybody have this somewhere? I've got it installed on my board, but someone else I know wants this, but the file in the first post isn't working anymore..

The link doesn't work any longer because the author switched to Invisionboard.   :-\

The good news is, you can download it here: http://www.lowellmi.net/downloads/YaBB Files/NewMessageAlert14.zip
« Last Edit: December 17, 2002, 04:53:54 PM by phark » Logged

I'm not scared of dying, I just don't want to.
1979Z28
Sr. Member
****
Posts: 324



WWW
Re:[Done 1.4.0] New Instant Messages Alert Box
« Reply #39 on: December 30, 2002, 12:07:44 PM »
Reply with quote

Anybody know if this'll work for 1.5.0? ;) I'm about to download it and edit the correct files for it, but before I upload stuff it'd be nice to know if someone else has gotten it to work for 1.5.0 ;D
Logged
QuicKsiLveR
Noobie
*
Posts: 9


Where Am I?


WWW
Re:[Done 1.4.0] New Instant Messages Alert Box
« Reply #40 on: December 30, 2002, 04:43:25 PM »
Reply with quote

no, doesn't work for 1.5.0. i used it fine for 1.4.1 and am waiting for a 1.5.0 update.
Logged
Nesseight
Noobie
*
Posts: 8


The Matrix Owns You...


WWW
Re:[Done 1.4.0] New Instant Messages Alert Box
« Reply #41 on: January 18, 2003, 03:10:08 PM »
Reply with quote

If the author switched to InvisionBoard, that means he probably won't be making a 1.5.0 version.
Logged

Nobody can be told what the Matrix is, you'll just have to see it for yourself...
Nesseight
Noobie
*
Posts: 8


The Matrix Owns You...


WWW
Re:[Done 1.4.0] New Instant Messages Alert Box
« Reply #42 on: January 18, 2003, 06:23:00 PM »
Reply with quote

*Cough*The below works with 1.5.0*Cough*

Code: [Select]
<id>
New messages
</id>

<version>
1.0alt. for YaBB SE 1.5.0
</version>

<mod info>
This mod makes it so that each user can see how many new instant messages they have, instead of only knowing how many you have all together. This version adds an alert box.

Upload "Newmessagesdbalert.php" to your YaBB SE directory and type in http://www.yoursite.com/yabbse/Newmessagesdbalert.php to update your database.

Keep in mind that the 1.5.0 forum this was updated on has [Unknown]s Bugfix 01-02-03
</mod info>

<author>
Created by Chris Cromer, 1.4.0 update by Shaun, 1.5.0 update by Nesseight
</author>

<homepage>
http://www.agigames.comhttp://www.clubcelica.com
</homepage>

<edit file>
Sources/Subs.php
</edit file>

<search for>
if ($username != 'Guest')
{
$request = mysql_query("SELECT COUNT(*), readBy FROM {$db_prefix}instant_messages WHERE (ID_MEMBER_TO=$ID_MEMBER AND deletedBy != 1) GROUP BY readBy");
if (mysql_num_rows($request) == 0)
$munred = $mnum = 0;
elseif (mysql_num_rows($request) == 1)
{
list($mnum, $readBy) = mysql_fetch_array($request);
if ($readBy == 0)
$munred = $mnum;
else
$munred = 0;
}
else
{
list($munred, $dummy) = mysql_fetch_row($request);
list($mnum, $dummy) = mysql_fetch_row($request);
$mnum += $munred;
}
if ($munred == "1")
$isare = $txt['newmessages0'];
else
$isare = $txt['newmessages1'];
if ($mnum == "1")
$yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[471]</a>$txt[newmessages4] $munred $isare $txt[newmessages2].";
else
$yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[153]</a>$txt[newmessages4] $munred $isare $txt[newmessages2].";
if ($maintenance)
$yyim .= "<br /><b>$txt[616]</b>";
</search for>

<add after>
$request4 = mysql_query("SELECT im_alert FROM {$db_prefix}members WHERE memberName='$username'");
$alerter = mysql_fetch_array($request4);
$request3 = mysql_query("SELECT COUNT(*) FROM {$db_prefix}instant_messages WHERE (toName='$username' && alerted!=1 && deletedBy!=1)");
$tempalert = mysql_fetch_row($request3);
$unalerted = $tempalert[0];
if($unalerted > 0) {
if($alerter[0] == 0) {
if($munred > 0) {
if ($munred == 1) {
print ("<SCRIPT>alert ('$txt[newmessages6] $munred $txt[newmessages7].')</SCRIPT>");
$request = mysql_query("UPDATE {$db_prefix}instant_messages SET alerted='1' WHERE (toName='$username')");
}
else {
print ("<SCRIPT>alert ('$txt[newmessages6] $munred $txt[newmessages8].')</SCRIPT>");
$request = mysql_query("UPDATE {$db_prefix}instant_messages SET alerted='1' WHERE (toName='$username')");
}
}
}
}
}
</add after>

<edit file>
Sources/InstantMessage.php
</edit file>

<search for>
$yySetLocation = "$cgi;action=im";
</search for>

<replace>
$yySetLocation = "$cgi;action=imoutbox";
</replace>

<search for>
$request = mysql_query("SELECT im_ignore_list,im_email_notify FROM {$db_prefix}members WHERE ID_MEMBER=$ID_MEMBER");
</search for>

<replace>
$request = mysql_query("SELECT im_ignore_list,im_email_notify,im_alert FROM {$db_prefix}members WHERE ID_MEMBER=$ID_MEMBER");
</replace>

<search for>
$sel0 = ($imconfig[1] ? '' : ' selected="selected"');
$sel1 = ($imconfig[1] ? ' selected="selected"' : '');
</search for>

<add after>
$aler0 = ($imconfig[2] ? '' : ' selected="selected"');
$aler1 = ($imconfig[2] ? ' selected="selected"' : '');
</add after>

<search for>
</tr><tr>
<td valign="top" align="right">
<font size="2"><b>' . $txt[327] . ':</b></font>
</td>
<td>
<font size="2">
<select name="notify">
<option value="0"' . $sel0 . '>' . $txt[164] . '</option>
<option value="1"' . $sel1 . '>' . $txt[163] . '</option>
</select>
</font>
</td>
</tr>
</search for>

<add after>
    <tr>
     <td valign=top>
       <font size=2><b>$txt[newmessages5]:</b></font>
      </td>
      <td>
       <font size=2>
<select name="alerter">
<option value="0"$aler0>$txt[163]
<option value="1"$aler1>$txt[164]
</select>
       </font>
      </td>
     </tr>
</add after>

<search for>
function IMPreferences ()
{
global $username, $txt, $ID_MEMBER, $yytitle, $cgi, $img, $imagesdir, $scripturl, $color, $mbname;
global $db_prefix, $settings, $menusep, $color, $modSettings, $sc;
</search for>

<add after>
global $alerter;
</add after>

<search for>
function IMPreferences2 ()
{
global $username, $ID_MEMBER, $yySetLocation, $ignore, $notify, $cgi, $db_prefix;
</search for>

<add after>
global $alerter;
</add after>

<search for>
$request = mysql_query("UPDATE {$db_prefix}members SET im_ignore_list='$ignorelist',im_email_notify=$notify WHERE ID_MEMBER=$ID_MEMBER");
</search for>

<replace>
$request = mysql_query("UPDATE {$db_prefix}members SET im_ignore_list='$ignorelist',im_email_notify=$notify,im_alert=$alerter WHERE ID_MEMBER=$ID_MEMBER");
</replace>

<edit file>
English.lng
</edit file>

<search for>
$txt['newmessages0'] = "is";
$txt['newmessages1'] = "are";
$txt['newmessages2'] = "new";
$txt['newmessages3'] = "New";
$txt['newmessages4'] = ",";
</search for>

<add after>
$txt['newmessages5'] = "Show alert for new messages";
$txt['newmessages6'] = "You have";
$txt['newmessages7'] = "new message";
$txt['newmessages8'] = "new messages";
</add after>
« Last Edit: January 21, 2003, 09:23:39 AM by Nesseight » Logged

Nobody can be told what the Matrix is, you'll just have to see it for yourself...
Nesseight
Noobie
*
Posts: 8


The Matrix Owns You...


WWW
Re:[Done 1.4.0] New Instant Messages Alert Box
« Reply #43 on: January 18, 2003, 06:28:12 PM »
Reply with quote

Be sure to download the original 1.4.0 file, and update your MySQL database with the PHP update thing before you apply this, the database updater seems to still work, also I had [Unknown]'s bugfix installed on my forum when I altered this to work.

Also, I was copying and pasting source to source, I didn't use BoardMod or whatever it's called, When I was done making out the differences, I copied back over to the .mod file, If I missed something please IM me and I'll try to correct it, other than that it seems to work fine on my forum.
« Last Edit: January 18, 2003, 06:34:24 PM by Nesseight » Logged

Nobody can be told what the Matrix is, you'll just have to see it for yourself...
DJ747
Noobie
*
Posts: 1


I'm King


WWW
Re:[Done 1.4.0] New Instant Messages Alert Box
« Reply #44 on: January 28, 2003, 12:27:26 PM »
Reply with quote

Will that work with YaPP 0.6? I don't have board Mod, will it work if I edit the files manually?
Logged
Pages: 1 2 [3] 4 5 ... 7 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  Topic: [Done 1.4.0] New Instant Messages Alert Box « previous next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
2001-2003, YaBB SE Dev Team. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
Page created in 0.04 seconds with 15 queries.