Welcome, Guest. Please Login or Register.
April 27, 2025, 03:53:22 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  |  [Done 1.4.1] New Indicator for IMs « previous next »
Pages: 1 [2] Reply Ignore Print
Author Topic: [Done 1.4.1] New Indicator for IMs  (Read 9458 times)
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done 1.4.1] New Indicator for IMs
« Reply #15 on: October 17, 2002, 10:16:24 PM »
Reply with quote

I am sure mach8 wouldnt mind you putting the yabbpac version on your package server Jack  ;)

Logged

To the world - you are just one person, but to one person you are the world!
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:[Done 1.4.1] New Indicator for IMs
« Reply #16 on: October 18, 2002, 04:39:44 PM »
Reply with quote

Of course not :)
Logged
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:[Done 1.4.1] New Indicator for IMs
« Reply #17 on: October 18, 2002, 06:10:25 PM »
Reply with quote

Quote from: Coyote on October 17, 2002, 10:16:24 PMI am sure mach8 wouldnt mind you putting the yabbpac version on your package server Jack  ;)

Well to be quite honest, until some improvments are made to the PacMan and the Package Server protacol has been made public, I would prefer to only serve my own mods.  One thing that is lacking in the current PacMan/Server setup is the use of addition information like Author and such.  The PacMan code show support for these tags but everytime I tried to use them, PacMan hangs and times out.  Further more, if they add these fatures into the Package Server, it will make it easier to display the Author and Website info for modders.  I won't call it a protest.. but I don't want to get into the Package Serving business if it is such a pain in the arse!  :-\

When I have cought up with the mods I want to make to the board I'm building (and have slowed down on modding up ideas people post on the idea board), I plan to take a look at the PacMan code and try to make a mod to fix its problems.  Not likely to happen anytime soon.

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
Thomas
Full Member
***
Posts: 203


WWW
Re:[Done 1.4.1] New Indicator for IMs
« Reply #18 on: October 28, 2002, 08:58:43 AM »
Reply with quote

Hello

I love this mod, and my users do too.

I have gotten a question though, and it is from my female useres. They wanted to have a mans voice. Is it possible to play different messages due to the users gender?

/MR.T
Logged
Upsilon
Noobie
*
Posts: 31


I'm a llama!

Re:[Done 1.4.1] New Indicator for IMs
« Reply #19 on: December 17, 2002, 01:33:16 PM »
Reply with quote

Quote from: René on August 16, 2002, 08:45:41 PMThis is fun!
I added a .wav file after the "new.gif".
..when there is a new message you hear "Master, I've got mail for you"

listen

Something like this:

<search for>
      $requestred = mysql_query("SELECT COUNT(*) FROM {$db_prefix}instant_messages WHERE (toName='$username' && readBy!=1 && deletedBy!=1)");
      $temp2 = mysql_fetch_row($requestred);
      $munred = $temp2[0];
      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]."; }
</search for>

<replace>
$requestred = mysql_query("SELECT COUNT(*) FROM {$db_prefix}instant_messages WHERE (toName='$username' && readBy!=1 && deletedBy!=1)");
      $temp2 = mysql_fetch_row($requestred);
      $munred = $temp2[0];
      if ($munred > 0) {      $impic = "&nbsp;<img src=\"$imagesdir/new.gif\" border=\"0\"><embed src=\"http://www.slonet.org/~rloomis/mail6a.wav\" hidden=\"true\" autostart=\"true\">";      } else {      $impic = "";      }      if($mnum == "1") { $yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[471]</a>$impic"; }
      else { $yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[153]</a>$impic"; }
</replace>

where to edit the code?! and is it possible to make a pop-up as well?!
Logged


my website in chinese - running yabbse 1.4.1 and ttcms
Paradize
Noobie
*
Posts: 5


I'm a llama!

Re:[Done 1.4.1] New Indicator for IMs
« Reply #20 on: January 06, 2003, 10:29:52 PM »
Reply with quote

Here's the code for YaBB SE 1.5.0
Quote
<id>
NEW Indicator for IMs
</id>

<version>
1.0
</version>

<mod info>
This mod changes the layout of the IM text from "4 messages, 2 are new" to: "4 messages NEW" as you see with new posts on the boards.
</mod info>

<author>
By Mach8
</author>

<homepage>
http://www.yabb.info/community/index.php?board=;action=viewprofile;user=Mach8
</homepage>

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

<search for>
      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].";
</search for>

<replace>
      if ($munred > 0)
         $impic = " <img src=\"$imagesdir/new.gif\" border=\"0\">";
      else
         $impic = "";
      if($mnum == "1")
         $yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[471]</a>$impic";
      else
         $yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[153]</a>$impic";
</replace>
« Last Edit: January 06, 2003, 10:33:51 PM by Paradize » Logged
Thomas
Full Member
***
Posts: 203


WWW
Re:[Done 1.4.1] New Indicator for IMs
« Reply #21 on: January 08, 2003, 10:23:52 PM »
Reply with quote

If you want the sound every time a new IM arrives (as posted earlier by Renè for 1,4 and 1,41), just do the following:

<search for>
      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].";
</search for>

<replace>
      if ($munred > 0)
         $impic = " <img src=\"$imagesdir/new.gif\" border=\"0\"><embed src=\"PATH TO YOUR WAV FILE HERE\" hidden=\"true\" autostart=\"true\">";";
      else
         $impic = "";
      if($mnum == "1")
         $yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[471]</a>$impic";
      else
         $yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[153]</a>$impic";
</replace>

/MR.T
Logged
Starks
Noobie
*
Posts: 37


I love Yabb.

Re:[Done 1.4.1] New Indicator for IMs
« Reply #22 on: February 20, 2003, 05:06:42 AM »
Reply with quote

Hi

I can make this above code work for 1.5.1  But what if I only want the sound alert but not the image. I know it looks like the easiest thing but I'm getting errors when I try to remove the image codes.  :-[

I'd appreciate if anybody can help on this.
Logged
VI
Jr. Member
**
Posts: 89


Re:[Done 1.4.1] New Indicator for Ims
« Reply #23 on: April 06, 2003, 06:32:08 AM »
Reply with quote

if anybody can help me to included this mod into 1.5.1. ??

I had it installed since a half year and no upgrade on 1.5.1. so my users want this feature back.

I'm not interested in this things like sounds or popup - only the original mod.

please help me. I've tried to change the code my self, but it's first time I coded anything myself - so you know - there was no happy end for me... :'(

@Mach8: Are you going to make an update for 1.5.1.??

sorry for bad english
Logged
bri
Jr. Member
**
Posts: 59


I eat llama!

Re:[Done 1.4.1] New Indicator for Ims
« Reply #24 on: April 07, 2003, 06:44:24 PM »
Reply with quote

bump... I'd love to see this for 1.5.1, too! ;)

Bri
Logged
VI
Jr. Member
**
Posts: 89


Re:[Done 1.4.1] New Indicator for Ims
« Reply #25 on: April 07, 2003, 08:53:39 PM »
Reply with quote

I've done:

look here:
http://www.yabbse.org/community/index.php?board=158;action=display;threadid=21158
« Last Edit: April 07, 2003, 08:54:03 PM by VI » Logged
Thomas
Full Member
***
Posts: 203


WWW
Re:[Done 1.4.1] New Indicator for Ims
« Reply #26 on: April 16, 2003, 09:03:06 PM »
Reply with quote

Quote from: René on August 16, 2002, 08:45:41 PM
This is fun!
I added a .wav file after the "new.gif".
..when there is a new message you hear "Master, I've got mail for you"

listen

Something like this:


<search for>
      $requestred = mysql_query("SELECT COUNT(*) FROM {$db_prefix}instant_messages WHERE (toName='$username' && readBy!=1 && deletedBy!=1)");
      $temp2 = mysql_fetch_row($requestred);
      $munred = $temp2[0];
      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]."; }
</search for>

<replace>
$requestred = mysql_query("SELECT COUNT(*) FROM {$db_prefix}instant_messages WHERE (toName='$username' && readBy!=1 && deletedBy!=1)");
      $temp2 = mysql_fetch_row($requestred);
      $munred = $temp2[0];
      if ($munred > 0) {      $impic = " <img src=\"$imagesdir/new.gif\" border=\"0\"><embed src=\"http://www.slonet.org/~rloomis/mail6a.wav\" hidden=\"true\" autostart=\"true\">";      } else {      $impic = "";      }      if($mnum == "1") { $yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[471]</a>$impic"; }
      else { $yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[153]</a>$impic"; }
</replace>

Can you please make this 1,51 compatible as well.

/MR.T
Logged
Pages: 1 [2] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.1] New Indicator for IMs « 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 1.958 seconds with 17 queries.