Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 09:28:29 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149686 Posts in 21102 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: 1 2 [3] 4 5   Go Down
Print
Author Topic: PM Messanger  (Read 12133 times)
Vasiliy

Offline Offline

Posts: 18


« Reply #50 on: December 13, 2009, 10:28:20 PM »

Hello!
Today I installed this module on my web site.
When I installed the module WB has issued a mistake, but I could not remember it.
After installing the module, I have reviewed his work. Everything works, only gives one error:

Notice: Undefined variable: result in / home / catfish / public_html / game / modules / pmmessages / fe.read.php on line 30

How to solve this problem?
« Last Edit: December 13, 2009, 10:30:56 PM by Vasiliy » Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #51 on: December 14, 2009, 02:20:31 AM »

It could be the common notice, that the server doesnt like time/date from WB, I am not a good coder so I can not help you much, but here is line 30, so someone can take a look:

Code:
echo '<td align="left" style="padding-left: 5px;"><strong>'.$PM_MODULE['DATE'].'</strong>&nbsp;'.date($PM_MODULE['DATE_FORMAT'], $message['message_time']).'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="'.$_SERVER['PHP_SELF'].'?action=Replay&message_to='.$message['from_user'].'&message_id='.$result['message_id'].'" title="'.$PM_MODULE['REPLAY'].'"><img src="'.WB_URL.'/modules/pmmessages/images/replay.png" border="0" alt="'.$PM_MODULE['REPLAY'].'" />&nbsp;&nbsp;'.$PM_MODULE['REPLAY'].'</a></td>';
cheers

---
By the way, that is just a notice, and most people would say not to take care about that Smiley Also I suggest to low down your error report level Smiley

« Last Edit: December 14, 2009, 02:24:15 AM by crnogorac081 » Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Vasiliy

Offline Offline

Posts: 18


« Reply #52 on: December 14, 2009, 09:09:29 PM »

Thank you for your reply.
I am from Latvia.
I use on my site Russian language. Perhaps the Russian language makes a mistake?
Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #53 on: December 15, 2009, 04:04:10 PM »

it shouldnt be the problem, unless you use ' or " in the language files or as usernames... I cant figure out the different reason.. As I said, it could be the notice that WEB server doesnt like WB time and date..

 
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pumpi

Offline Offline

Posts: 556


WWW
« Reply #54 on: January 08, 2010, 03:18:35 PM »

hi,

I Have user The PM Modul on one site of my customers and it works verry nice. But the Droplet have Some Problems with the language files. I have make my own droplet. The other thing is that my droplet only visit the full site in the popup, i dont know why
Logged

My Module for Websitebaker - Foldergallery 1.17
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #55 on: January 08, 2010, 03:58:43 PM »

you can post the droplet code so I can take a look Smiley

It is probalby the known bug with the language file explained in the first post..

Also, I like to hear people are using my module Smiley Can you show me the site (or pm me Smiley )
« Last Edit: January 08, 2010, 04:04:28 PM by crnogorac081 » Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pumpi

Offline Offline

Posts: 556


WWW
« Reply #56 on: January 08, 2010, 06:56:09 PM »

the Site ist www.squiggz.de but you must login to see it Wink

i aktualy work that i can use The PM in the JKForum that i use Wink

giv it an link there i can say write this User?

the droplet code there i used

Code:
<?php
//PM MESSENGER//
$user_name $_SESSION['USERNAME'];
global 
$database$wb;
if(
$user_name == NULL) {
echo 
" ";
} else {

$get_new_msg $database->query("SELECT message_id FROM ".TABLE_PREFIX."mod_pm_messages WHERE to_user='$user_name' AND message_read='0' AND fake_delete='0'");
$new_msg $get_new_msg->numRows();
$get_unread_msg $database->query("SELECT message_id FROM ".TABLE_PREFIX."mod_pm_messages WHERE to_user='$user_name' AND mark_unread='1' AND fake_delete='0'");
$unread_msg $get_unread_msg->numRows();

$get_page_name $database->query("SELECT * FROM ".TABLE_PREFIX."pages WHERE page_id='$pid'");
$p_name $get_page_name->fetchRow();

$script  '<script type="text/javascript" src="'.WB_URL.'/modules/pmmessages/nyro/js/jquery.nyroModal-1.5.2.pack.js"></script>';
$script .= '<script type="text/javascript" src="'.WB_URL.'/modules/pmmessages/nyro/config.js"> </script>';
$script .= '<link rel="stylesheet" type="text/css" href="'.WB_URL.'/modules/pmmessages/nyro/styles/nyroModal.css" />';
$script .= '<div class="inbox">';

$script .= '<a href="'.WB_URL.'/pages/postfach.php?pm=true" class="nyroModal" />';

echo 
$script."Postfach (".$new_msg."/".$unread_msg.")</a></div>";
}
//ENDE PM MESSENGER//

i bound the Droplet directly in The Template and Navigation
Logged

My Module for Websitebaker - Foldergallery 1.17
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #57 on: January 08, 2010, 07:50:35 PM »

try adding #pm_messages at the end of your url>

Code:
$script .= '<a href="'.WB_URL.'/pages/postfach.php?pm=true#pm_messages" class="nyroModal" />';

cheers
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pumpi

Offline Offline

Posts: 556


WWW
« Reply #58 on: January 09, 2010, 01:34:07 AM »

it works thx Smiley

and the other question wher i can create an link where the To field already fil out?
Logged

My Module for Websitebaker - Foldergallery 1.17
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #59 on: January 09, 2010, 03:17:49 AM »

np Smiley Im glad it works Smiley

I dont understand the question, could you be a little more specific ?
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pumpi

Offline Offline

Posts: 556


WWW
« Reply #60 on: January 09, 2010, 09:42:44 AM »

I have install the JKForum Modul.
And now i like an little button under the Poster where i can write direkt an PM to him Wink
Logged

My Module for Websitebaker - Foldergallery 1.17
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #61 on: January 09, 2010, 02:07:14 PM »

hi,

it has to be done in forum files.. I will try to test this forum to see if I can help you..

cheers
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pumpi

Offline Offline

Posts: 556


WWW
« Reply #62 on: January 10, 2010, 12:50:37 AM »

You can give me online the Link to create an new message with the user the other thing i can make by my self and i can give you the code Wink
Logged

My Module for Websitebaker - Foldergallery 1.17
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #63 on: January 11, 2010, 01:29:10 AM »

Hi,

minor code modification is required for this:

In PM module folder, open fe.send.php file and change the following lines:

Quote
Below this line at the begining of the file

// get username
$from_username = $_SESSION['USERNAME'];

add

if(!isset($_GET['to'])) {
    $send_to = '';
} else {
    $send_to = $wb->strip_slashes($_GET['to']);
}

also go to ~ 60 line and add the text marked red in the following line

echo '<strong>'.$PM_MODULE['TO'].'<strong><input type="text" name="message_to" value="'.$send_to.'" id="inputString" onkeyup="lookup(this.value);" onblur="fill();">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';

Now you will be able to send a PM via direct link like this:

Quote
<?php echo '<a href="'.WB_URL.PAGES_DIREC TORY.'/messages*'.PAGE_EXTENSION.'?action=Send&to=Pumpi#pm_messages" class="nyroModal" /><img src="'.WB_URL.'/modules/pmmessages/images/replay.png" alt="send message" /></a>'; ?>

or if you use ' in the name like mc'Pumpi you must add one slash before ' like:

<?php echo '<a href="'.WB_URL.PAGES_DIREC TORY.'/messages*'.PAGE_EXTENSION.'?action=Send&to=mc\'Pumpi#pm_messages" class="nyroModal" /><img src="'.WB_URL.'/modules/pmmessages/images/replay.png" alt="send message" /></a>'; ?>

messages*  -- in my case this is page name for this module, rename this to your case..

All you have to do now is to find out how to automaticly create these links Smiley

You whould have to look into forum files (or any other module where you want to use this) and to find out how to fetch automaticly:

Quote

<?php echo '<a href="'.WB_URL.PAGES_DIREC TORY.'/messages*'.PAGE_EXTENSION.'?action=Send&to=to-whom-username#pm_messages" class="nyroModal" /><img src="'.WB_URL.'/modules/pmmessages/images/replay.png" alt="send message" /></a>'; ?>

I hope that I helped and that I was fast (regarding my coding skills Cheesy )

All best,
Ivan
« Last Edit: January 11, 2010, 01:39:30 AM by crnogorac081 » Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pumpi

Offline Offline

Posts: 556


WWW
« Reply #64 on: January 11, 2010, 08:51:09 AM »

Big thx

i test it when im at home.

The Link is no Problem the Forum create The User Names already Wink
Logged

My Module for Websitebaker - Foldergallery 1.17
Pumpi

Offline Offline

Posts: 556


WWW
« Reply #65 on: January 11, 2010, 02:10:12 PM »

ok i test it and it works verry fine Smiley

My Forum is on the Way to a real Forum Wink

An dont say you can not Programm you have make an nice Modul Wink
Logged

My Module for Websitebaker - Foldergallery 1.17
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #66 on: January 11, 2010, 02:15:41 PM »

Great Smiley Im glad it works Smiley
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pumpi

Offline Offline

Posts: 556


WWW
« Reply #67 on: January 11, 2010, 02:23:17 PM »

Why should it not work Wink

Did you still work on PMmessanger?

I miss BBCode on the Input field rolleyes
Logged

My Module for Websitebaker - Foldergallery 1.17
Pumpi

Offline Offline

Posts: 556


WWW
« Reply #68 on: January 26, 2010, 09:34:54 PM »

i have found some more Problems.

When i click on the answer button the Subject field is Empty.

In the table you have write the full names this is not good when any user like to change his Username Sad
Logged

My Module for Websitebaker - Foldergallery 1.17
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #69 on: January 26, 2010, 10:36:26 PM »

Quote
When i click on the answer button the Subject field is Empty.
Well, you can type what ever you want, there is no RE: [old subject] text in the field..

Quote
In the table you have write the full names this is not good when any user like to change his Username Sad
I dont understand, how user can change his username ? He may change display name, but not username..
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
JC

Offline Offline

Posts: 56


« Reply #70 on: February 02, 2010, 09:18:28 PM »

Hi!

Thanks for a great module!
Here is a Swedish language file if anybody is interested...

/JC
Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #71 on: February 02, 2010, 09:53:57 PM »

Cool,

it will be included in next version.
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
JC

Offline Offline

Posts: 56


« Reply #72 on: February 02, 2010, 10:08:19 PM »

Hi again,

When I was testing the module I noticed that the username suggestion didn't work on the frontend. It only worked in the backend!? I'm no coder but I managed to find a missing line in your code. It was in the fe.send.php
I got it to work now but I don't know if it's more that's missing in the file, because I get a strange problem with the text on the rest of the page when I'm on the "Send Message" page. All text is now bold!?

I attached the file I'm using now!

If you have the time to look at it I would be most greatful!

/JC
Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1680



« Reply #73 on: February 02, 2010, 10:17:13 PM »

You probably have jquery-min.js already included in your template. please check that for start..

Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
JC

Offline Offline

Posts: 56


« Reply #74 on: February 02, 2010, 10:29:56 PM »

Hi again,

No it isn't that! But I found a / that was missing... Smiley

Best regards,
JC
Logged
Pages: 1 2 [3] 4 5   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!