Welcome to Geeklog Thursday, September 23 2021 @ 01:16 am EDT

Geeklog Forums

YAPM - Yet Another Private Messenger

Page navigation


Status: offline

Robin

Forum User
Full Member
Registered: 15/02/02
Posts: 725
Quote by mugen: Hi Robin, nope not working

Yes I've noticed that later. After several tests I modified the block code and the problem on my site has gone.
Try this slightly modified code:
PHP Formatted Code
function phpblock_getpm()
{
        global $_CONF, $_USER, $_NEWM, $_NOM, $new_pm, $_TABLES;
        $uid=$_USER['uid'];
        $popup = false; //comment out this line to stop popups!
        $result = DB_query("SELECT * FROM " . $_TABLES['pm'] . " WHERE sentto='$uid' AND receiverdelete='' AND rd=''");

        $new_pm = DB_numRows($result);
        if($new_pm <= 0){
                $_NOM = "";
                return $_NOM;
        }else{  
                if ($popup){
                        include($_CONF['path_html'] . "/pm/popupbasic.js");
                        //print $_CONF['site_url'];
                        echo "
                                <script language=\"javascript\">
                                <!--
                                chatAlert('"
. $_CONF['site_url'] . "/pm/alert.php');
                                //-->
                                </script>"
;
                }
                $_NEWM .= '<b><u><A href="' . $_CONF['site_url'] . '/pm/index.php">You have ' .
                $new_pm . ' new message' . $plural . '</a></u></b>';
                return $_NEWM ;
        }              
}


 

Geeklog Polish Support Team
 Quote

Status: offline

mugen

Forum User
Chatty
Registered: 22/02/06
Posts: 53
caffeinated
Thx Robin, it works now! You just made my day!

Big Celebration Big Celebration Big Celebration Big Celebration Big Celebration

You can test it at: cedko.com

Cheers, mugen Its a deal - shaking hands
cedko.com -- Cartoonin' The World :)
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 15/02/02
Posts: 725
Quote by mugen: Thx Robin, it works now!

Glad to hear that Very Happy
Geeklog Polish Support Team
 Quote

Status: offline

mugen

Forum User
Chatty
Registered: 22/02/06
Posts: 53
caffeinated
I'm trying to add more smilies to the PM send message page. I can get the javascript to place the smiley code into the message, but the smilies don't display when I'm reading the message. Is there a setting in Geeklog I need to change to activate new smilies?

Thanks, mugen

PHP Formatted Code
<a href="javascript:emoticon(':shakehands:')"><img align=absmiddle src="{layout_dir}images/smilies/shakehands.gif" alt="Hand Shake" title="Hand Shake" border="0" ></a>
| <a href="javascript:emoticon(':chestslam:')"><img align=absmiddle src="{layout_dir}images/smilies/chestram2.gif" alt="Chest Slam" title="Chest Slam" border="0" ></a>
<table>
<td height="2"></td>
</table>                                                       
<a href="javascript:emoticon(':banghead:')"><img align=absmiddle src="{layout_dir}images/smilies/banghead.gif" alt="Head Banging" title="Head Banging" border="0" ></a>                                                
| <a href="javascript:emoticon(':twocents:')"><img align=absmiddle src="{layout_dir}images/smilies/twocents.gif" alt="My 2 Cents" title="My 2 Cents" border="0" ></a>                                                          
| <a href="javascript:emoticon(':doh:')"><img align=absmiddle src="{layout_dir}images/smilies/doh.gif" alt="Doh!" title="Doh!" border="0" ></a>

 

cedko.com -- Cartoonin' The World :)
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 15/02/02
Posts: 725
Quote by mugen:I can get the javascript to place the smiley code into the message, but the smilies don't display when I'm reading the message.


You have to update functions.inc also.
Smile
Geeklog Polish Support Team
 Quote

Status: offline

mugen

Forum User
Chatty
Registered: 22/02/06
Posts: 53
Quote by Robin:
Quote by mugen:I can get the javascript to place the smiley code into the message, but the smilies don't display when I'm reading the message.


You have to update functions.inc also.
Smile

Sensei! Thank You! Big Celebration
cedko.com -- Cartoonin' The World :)
 Quote

Status: offline

mugen

Forum User
Chatty
Registered: 22/02/06
Posts: 53
caffeinated
Reporting back some of my findings:

There seems to be a limit to how much info you can send in a PM. I noticed that if you send a lot of smilies for example, those at the end don't appear when you read the message. Is there a text limit setting in the code or database which can be changed to allow for longer messages?

Thanks! mugen
cedko.com -- Cartoonin' The World :)
 Quote

Status: offline

mugen

Forum User
Chatty
Registered: 22/02/06
Posts: 53
Quote by mugen: Reporting back some of my findings:

There seems to be a limit to how much info you can send in a PM. I noticed that if you send a lot of smilies for example, those at the end don't appear when you read the message. Is there a text limit setting in the code or database which can be changed to allow for longer messages?

Thanks! mugen

I've removed this plugin from the cedko.com site. Messages keep getting cut-off for some reason. This is not a working plugin at this time, needs further testing.

Cheers, mugen
cedko.com -- Cartoonin' The World :)
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 15/02/02
Posts: 725
Quote by mugen: Is there a text limit setting in the code or database which can be changed to allow for longer messages?

It's in DB actually (255 chars)

Quote by mugen:This is not a working plugin at this time, needs further testing.

Well it is working, however doesn't meet your expectations Wink Yes it needs a lot of testing.
Geeklog Polish Support Team
 Quote

Status: offline

mugen

Forum User
Chatty
Registered: 22/02/06
Posts: 53
Quote by Robin:
Quote by mugen: Is there a text limit setting in the code or database which can be changed to allow for longer messages?

It's in DB actually (255 chars)

Quote by mugen:This is not a working plugin at this time, needs further testing.

Well it is working, however doesn't meet your expectations Wink Yes it needs a lot of testing.

Let me rephrase, this is not a stable plugin at this time. It needs extensive testing/debugging/proper documentation before being released to the public.
cedko.com -- Cartoonin' The World :)
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 15/02/02
Posts: 725
caffeinated
Quote by mugen: this is not a stable plugin at this time.

If you're still interested in this kind of functionality there is I believe more stable and well tested plugin, glMessenger by Blaine, available at his site portalparts.com.

In the meantime I'd better get to work on this one Mr. Green
Geeklog Polish Support Team
 Quote

Page navigation

All times are EDT. The time is now 01:16 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content