Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 08:00:07 PM
1 Hour
1 Day
1 Week
1 Month
Forever
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
.
149679
Posts in
21101
Topics by
7538
Members
Latest Member:
ionline
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
PM Messanger
Pages:
1
2
[
3
]
4
5
Go Down
Author
Topic: PM Messanger (Read 12116 times)
Vasiliy
Offline
Posts: 18
Re: PM Messanger
«
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
Posts: 1680
Re: PM Messanger
«
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> '.date($PM_MODULE['DATE_FORMAT'], $message['message_time']).' <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'].'" /> '.$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
Also I suggest to low down your error report level
«
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
Posts: 18
Re: PM Messanger
«
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
Posts: 1680
Re: PM Messanger
«
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
Posts: 556
Re: PM Messanger
«
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
Posts: 1680
Re: PM Messanger
«
Reply #55 on:
January 08, 2010, 03:58:43 PM »
you can post the droplet code so I can take a look
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
Can you show me the site (or pm me
)
«
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
Posts: 556
Re: PM Messanger
«
Reply #56 on:
January 08, 2010, 06:56:09 PM »
the Site ist
www.squiggz.de
but you must login to see it
i aktualy work that i can use The PM in the JKForum that i use
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
Posts: 1680
Re: PM Messanger
«
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
Posts: 556
Re: PM Messanger
«
Reply #58 on:
January 09, 2010, 01:34:07 AM »
it works thx
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
Posts: 1680
Re: PM Messanger
«
Reply #59 on:
January 09, 2010, 03:17:49 AM »
np
Im glad it works
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
Posts: 556
Re: PM Messanger
«
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
Logged
My Module for Websitebaker - Foldergallery 1.17
crnogorac081
AddOn Development
Offline
Posts: 1680
Re: PM Messanger
«
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
Posts: 556
Re: PM Messanger
«
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
Logged
My Module for Websitebaker - Foldergallery 1.17
crnogorac081
AddOn Development
Offline
Posts: 1680
Re: PM Messanger
«
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();"> ';
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
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
)
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
Posts: 556
Re: PM Messanger
«
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
Logged
My Module for Websitebaker - Foldergallery 1.17
Pumpi
Offline
Posts: 556
Re: PM Messanger
«
Reply #65 on:
January 11, 2010, 02:10:12 PM »
ok i test it and it works verry fine
My Forum is on the Way to a real Forum
An dont say you can not Programm you have make an nice Modul
Logged
My Module for Websitebaker - Foldergallery 1.17
crnogorac081
AddOn Development
Offline
Posts: 1680
Re: PM Messanger
«
Reply #66 on:
January 11, 2010, 02:15:41 PM »
Great
Im glad it works
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pumpi
Offline
Posts: 556
Re: PM Messanger
«
Reply #67 on:
January 11, 2010, 02:23:17 PM »
Why should it not work
Did you still work on PMmessanger?
I miss BBCode on the Input field
Logged
My Module for Websitebaker - Foldergallery 1.17
Pumpi
Offline
Posts: 556
Re: PM Messanger
«
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
Logged
My Module for Websitebaker - Foldergallery 1.17
crnogorac081
AddOn Development
Offline
Posts: 1680
Re: PM Messanger
«
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
Posts: 56
Re: PM Messanger
«
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
Posts: 1680
Re: PM Messanger
«
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
Posts: 56
Re: PM Messanger
«
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
Posts: 1680
Re: PM Messanger
«
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
Posts: 56
Re: PM Messanger
«
Reply #74 on:
February 02, 2010, 10:29:56 PM »
Hi again,
No it isn't that! But I found a / that was missing...
Best regards,
JC
Logged
Pages:
1
2
[
3
]
4
5
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...