xoops forums

wanikoo

Not too shy to talk
Posted on: 2004/12/1 16:00
wanikoo
wanikoo (Show more)
Not too shy to talk
Posts: 129
Since: 2003/12/27
#21

Re: XOOPS PM(Private Message)-Hack

Quote:

I make a german version of the 2.5 Hack - you can download it on myxoops.org (German Support)

Guten Tag,migoe^^
Danke!!
Was ich mich freue!
^^;;correct??
(I studied German long~~~ long~~ times ago...
haha..but now...,as you know,...can't remember even a basic expression!!
...^^BTW...
Thanks for the German version of PM-hack^^...Thanks a lot^^

Quote:

just 2 more things
feature 1: change the order (asc/decs) with the comment/forum posts order that user choose at edit profile.
feature 2: put "AND" , "OR" ,"NOT" for search function.

Umm..I will try...^^...
but...
lots of things to do...in this week..
so....
I think I can't release the upgraded version until this weekend.
Anyway...I will try^^
(ASAP~~)

mizi_

Just popping in
Posted on: 2004/12/1 18:21
mizi_
mizi_ (Show more)
Just popping in
Posts: 8
Since: 2004/11/16
#22

Re: XOOPS PM(Private Message)-Hack

If I want to write a new message to a member I must select it from the list. Because my site has more than 5000 members, its difficult to search. It is possible to make a field in pmlite.php to write directly the username.

wanikoo

Not too shy to talk
Posted on: 2004/12/1 18:43
wanikoo
wanikoo (Show more)
Not too shy to talk
Posts: 129
Since: 2003/12/27
#23

Re: XOOPS PM(Private Message)-Hack

Quote:

mizi_ wrote:
If I want to write a new message to a member I must select it from the list. Because my site has more than 5000 members, its difficult to search. It is possible to make a field in pmlite.php to write directly the username.


If you want to add my new PM-Partner Search function to this hack,
please follow this link below^^

http://www.xoopscube.jp/modules/newbb ... hp?topic_id=6274&forum=14

And
if you want to write username directly...
Please remove READONLY^^

//popup user search hack start
echo "<td class='even'>ID<input type='text' READONLY size='5' name='to_userid' />";
echo "&nbsp;Name<input type='text' READONLY size='10' name='to_username' />";
echo "&nbsp;<input type='button' name='search' value='Click' onclick='javascript:openWithSelfMain(\"".XOOPS_URL."/usersearch.php\",\"searchuser\",450,380);' /></td>";
//popup user search hack end

wanikoo

Not too shy to talk
Posted on: 2004/12/1 20:03
wanikoo
wanikoo (Show more)
Not too shy to talk
Posts: 129
Since: 2003/12/27
#24

Re: XOOPS PM(Private Message)-Hack

Umm..
let me explain my new PM-Partner Search Hack briefly.
With this PM-Partner Search hack,
You can search and find your PM-Partner easily in the new popup window which has user-search form.
When you find your partner in this popup window,
just click SELECT and your partner's data(uid,uname) will be transfered automatically to the form of opener window(coolsus of pmlite.php)...
and moreover the popup windows will close of itself^^
Just try it^^
(You must back-up original files...before this hack!)

mizi_

Just popping in
Posted on: 2004/12/1 21:01
mizi_
mizi_ (Show more)
Just popping in
Posts: 8
Since: 2004/11/16
#25

Re: XOOPS PM(Private Message)-Hack

Thnx for your answer.

I have added the search hack, but when I try to type a ID or username, I can't do it. The second problem: When I click the search button, the popup window doesn't open. I think I have puted the code correctly. And I have uploaded the usersearch.php in the xoops-root directory. Where can the problem be?

echo "<form action='pmlite.php' method='post' name='coolsus'>n";
echo 
"<table width='300' align='center' class='outer'><tr><td class='head' width='25%'>"._PM_TO."</td>";
if ( 
$reply == ) {
echo 
"<td class='even'><input type='hidden' name='to_userid' value='".$pm->getVar("from_userid")."' />".$pm_uname."</td>";
} elseif ( 
$send2 == ) {
$to_username XoopsUser::getUnameFromId($to_userid);
echo 
"<td class='even'><input type='hidden' name='to_userid' value='".$to_userid."' />".$to_username."</td>";
} else {
//comment&#20966;&#29702;&#12375;&#12414;&#12377;
// echo "<td class='even'><select name='to_userid'>";
// $result = $xoopsDB->query("SELECT uid, uname FROM ".$xoopsDB->prefix("users")." WHERE level > 0 ORDER BY uname");
// while ( list($ftouid, $ftouname) = $xoopsDB->fetchRow($result) ) {
// echo "<option value='".$ftouid."'>".$myts->makeTboxData4Show($ftouname)."</option>";
// }
// echo "</select></td>";
//popup user search hack start
echo "<td class='even'>ID<input type='text' READONLY size='5' name='to_userid' />";
echo 
"&nbsp;Name<input type='text' READONLY size='10' name='to_username' />";
echo 
"&nbsp;<input type='button' name='search' value='Click' onclick='java script:openWithSelfMain("".XOOPS_URL."/usersearch.php","searchuser",450,380);' /></td>";
//popup user search hack end
}
echo 
"</tr>";
echo 
"<tr><td class='head' width='25%'>"._PM_SUBJECTC."</td>";

wanikoo

Not too shy to talk
Posted on: 2004/12/2 2:34
wanikoo
wanikoo (Show more)
Not too shy to talk
Posts: 129
Since: 2003/12/27
#26

Re: XOOPS PM(Private Message)-Hack

Quote:

mizi_ wrote:
Thnx for your answer.

I have added the search hack, but when I try to type a ID or username, I can't do it. The second problem: When I click the search button, the popup window doesn't open. I think I have puted the code correctly. And I have uploaded the usersearch.php in the xoops-root directory. Where can the problem be?


Umm...I think
.You need to check the spelling of javascript.
(No java script!! No blank or whitespace or tab between java and script^^...As you know,this forum system makes blank between javascipt forcibly to prevent XSS or something.)
.If you typed "javascipt" correctly,you need to check if you use any program which prevents popup-window or not.

Please use this file^^
http://www.wanisys.net/data/pmlite.zip
And
Quote:

if you want to write username directly...
Please remove READONLY^^

wanikoo

Not too shy to talk
Posted on: 2004/12/2 16:33
wanikoo
wanikoo (Show more)
Not too shy to talk
Posts: 129
Since: 2003/12/27
#27

Re: XOOPS PM(Private Message)-Hack

---XOOPS - PM(Private Message) Hack2.7

Upgraded to Ver2.7^^
<Change>
------Ver2.7-------(2004/12/3)
>>some bug fixed.
(Especially,in Ver 2.5, there was a bug that when you come back and click page_number after reading any message , you lose $_GET value and can't move to other pages with your search-result.)^^Sorry
>>new functions added.
(Search function upgraded.(Multi-Keywords Search supported with AND and OR^^Wow^^)
- separator=> (white)space
ex)happy news morning
-----------------------------
How to upgrade 2.5->2.7
0, No change on PM table^^No touch^^
1, Open this file(/html/language/{yourlanguage}/pmsg.txt)
2, Add the upgraded contents( under//WANISYS.NET PM HACK2.7) of pmsg.txt to pmsg.php.
3, Overwrite All files into proper directories!!
4, That'a all! Enjoy this new PM system2.7!!

Demo:

http://kjw0815.codns.com/wanisys/japanese/xoops/html/modules/news/

Downloads:

http://www.wanisys.net/data/wanipmhack.zip

2004/12/3

From wani[wani@wanisys.net]

irmtfan

Module Developer
Posted on: 2004/12/2 17:31
irmtfan
irmtfan (Show more)
Module Developer
Posts: 3419
Since: 2003/12/7
#28

Re: XOOPS PM(Private Message)-Hack

i upgrade as laways.
also "NOT" is more important than "OR" for the search functions in pm
thanks a lot and KEEP UP WORKING.

wanikoo

Not too shy to talk
Posted on: 2004/12/2 18:04
wanikoo
wanikoo (Show more)
Not too shy to talk
Posts: 129
Since: 2003/12/27
#29

Re: XOOPS PM(Private Message)-Hack

---XOOPS - PM(Private Message) Hack---
##Upgrade Plan##
From Ver3.0,
I will make a DB table and a class related with PM-Config
for you to set your PM-Config.
(Filtering,Reject Y/N and reason,default sorting method,Box limit etc)
Umm....
So...
From now(Ver2.7) till Ver3.0...
there won't be any major change in this PM Hack.
(but Bugging and small upgrade still continue^^)
haha...

Anyway...
I will continue to upgrade this PM-Hack~~
Just enjoy^^

Quote:

irmtfan wrote:
also "NOT" is more important than "OR" for the search functions in pm

Umm...
No plan to add "NOT" to the search function at this point.
I don't think "NOT" is more important than "OR" ^^;;
(but maybe.... in the future version....^^;;)

From wani ( wani@wanisys.net )

wanikoo

Not too shy to talk
Posted on: 2004/12/4 12:35
wanikoo
wanikoo (Show more)
Not too shy to talk
Posts: 129
Since: 2003/12/27
#30

Re: XOOPS PM(Private Message)-Hack

---XOOPS - PM(Private Message) Hack
Upgraded to Ver 2.8^^

<Change>
------Ver2.8-------(2004/12/5)
>>More User-friendly!!! User-Interface improved.
(By how each condition of your search is always displayed (in each box) with your options(selected in the search-form) selected and with your search-keywords(entered in the search-form) shown,
you may/can perceive and understand the status of your search-job more easily and more visually.
>>new function added.
(Search function upgraded.(Multi-Keyword Search supported with "NOT" ^^Wow^^)
- separator=> (white)space
ex)violence sex fight (=> not included all of them)
-----------------------------

How to upgrade 2.7->2.8
0, No change on PM table^^No touch^^
1, Open this file(/html/language/{yourlanguage}/pmsg.txt)
2, Add the upgraded contents( under//WANISYS.NET PM HACK2.8) of pmsg.txt to pmsg.php.
3, Overwrite All files into proper directories!!
4, That'a all! Enjoy this new PM system2.8!!

Demo:

http://kjw0815.codns.com/wanisys/japanese/xoops/html/modules/news/

Downloads:

http://www.wanisys.net/data/wanipmhack.zip

2004/12/5

From wani[wani@wanisys.net]