131
suico
Re: XOOPS PM(Private Message)-Hack
  • 2005/3/21 17:46

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


Great job wanikoo I love this, it was exactly what i were looking for.

Some questions for you:

Is it possible to, when we set that users can t set the refusal or filter, those options dispear from the config form?

ON the [PM System Function Status] could you make it showing only for admins? The members when they see a feature that is disable he asks us to have it and sometimes we don t want it and don t want to explain why.

Also in the smae screen agood idea would be to not show the whole column backup when we chose to not enable backup for members, the way it is we see a column without the options but the column is there

I hope you understand my bad ba englishand wish you continue with this really great hack!

132
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2005/3/22 14:29

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Quote:

Tabasco wrote:
What is wanipmhack section(I mean ////////////////WANIPMHACK3.0)?

^^;;
Please open&compare /html/footer.txt and /html/footer.php( original file ) ,
and you can easily understand what it is ^^;;
Quote:

kumzzy wrote:
is there a latest file to download after all this discussion here?

At this point,
the latest is Ver4.6 ^^;
And maybe some upgrades...
but not much change...
(^^;;--;;(--)// Just enjoy!! )

Umm..
If you want the latest version of this PM-hack,
please, just monitor this thread and you can easily acquire the latest.

Quote:

suico wrote:
Great job wanikoo I love this, it was exactly what i were looking for.

^^I'm happy to hear that ^^;;
Quote:

suico asked:
Some questions for you:
Q1:
Is it possible to, when we set that users can t set the refusal or filter, those options dispear from the config form?
Q2:
ON the [PM System Function Status] could you make it showing only for admins? The members when they see a feature that is disable he asks us to have it and sometimes we don t want it and don t want to explain why.
Q3:
Also in the same screen agood idea would be to not show the whole column backup when we chose to not enable backup for members, the way it is we see a column without the options but the column is there

Q1,Q3:
Umm...
Thanks for your suggestion!
I will try to make your suggestion realized in the next version^^;;
Q2:
Umm...
Basically,
I plan to keep the current policy that users can access PM System Function Status.
but...
for some like you who don't want users to access it,
I will release the modified version of configpmsg.php... sooner or later.

----------------
PS:
btw....
....
irmtfan (who gave me lots of help for this PM-hack) had suggested PM category function..before like this.
Quote:

3- users can create category inside savebox and save pms in individual branchs.

Umm...
You guys really want this function???
Umm...
I have some idea and draft to realize this now....
but...
I guess it will result in lots of change in the current version of this PM-hack.
so...
I want to know whether you guys really want this function^^;;

133
Hisoka
Re: XOOPS PM(Private Message)-Hack
  • 2005/3/23 16:00

  • Hisoka

  • Just popping in

  • Posts: 39

  • Since: 2005/3/2 1


Personnaly i think the function is not necessary at all...but it is my own point of view

134
suico
Re: XOOPS PM(Private Message)-Hack
  • 2005/3/23 16:35

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


I haven t think at this before but yes , it could be a good option for those who receive a lot of messages to keep them organized!

Again thanks to spend your time for the community !

135
Hisoka
Re: XOOPS PM(Private Message)-Hack
  • 2005/4/5 11:04

  • Hisoka

  • Just popping in

  • Posts: 39

  • Since: 2005/3/2 1


Hi,

I found a little bug, when you use mozilla, the help box which appear by pointing on "oubox" "inbox" for examples is too big (width of the screen) whereas with IE it has the good size.

And with french it doesn't work ....as I said to you by pm but maybe its my fault when i translated it?

Thanks for your help

136
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2005/4/15 16:52

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Upgraded to Ver4.7 !!

Umm...
Basically, this upgrade(4.6->4.7) is for Code Refinement.


------Ver4.7-------(2005/4/15)
Basically, this upgrade(4.6->4.7) is for Code Refinement.

>>Code Refinement!
I rewrote lots of codes to make this pm-hack valid xhtml1.0 transitional!
please, refer to this topic:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=34205&forum=14
>>User Interface improved!
****************************
Some suggestion from suico:
Is it possible to, when we set that users can t set the refusal or filter, those options disappear from the config form?
ON the [PM System Function Status] could you make it showing only for admins?
The members when they see a feature that is disable he asks us to have it and sometimes we don t want it and don t want to explain why.
Also in the same screen a good idea would be to not show the whole column backup when we chose to not enable backup for members, the way it is we see a column without the options but the column is there
****************************
All fixed and improved!

>>Tiny bugs fixed!!(readpmsg.php etc)
(Just tiny bugs^^;; )
>>Automatic insert of "No subject" message.
Hey! you forgot to write subject?? Don't worry! Now...this pm system will insert "No subject" message automatically.(--;;)
>>Advanced Viewmode upgraded!!
Now you can control font-size of your PM in Advanced View Popup-Window.
(For more visibility and accessibility...)
please, refer to this page:
http://www.alistapart.com/articles/relafont/
----------------------------

How to upgrade 4.6->4.7

1, No change on PM DB^^No touch^^
2, Open this file(/html/language/{yourlanguage}/pmsg.txt[or pmsg_upgrade3x-47.txt])
Add the upgraded contents( under//WANISYS.NET PM HACK4.7) of pmsg.txt to pmsg.php.
3, Overwrite All files into proper directories!!
[Exception] pmhackconfig.php
- If you customized this file for your system, you must not overwrite pmhackconfig.php[/html/pmhackconfig.php and /html/cache/pmhackconfig.php])
4, That'a all! Enjoy this new PM system4.7!!

-----------------------------

How to install[new install]

1, Open this file(/html/wanipmhack.sql) and execute the sql query on the file^^
( Use phpmyadmin...if you are DB-novice!!Please, watch out table prefix[xoops_])
2, Copy/Overwrite All files into proper directories!!
(You must back-up original files...before this hack!!!!)
[Notice]
- We need /html/modules/newbb/fpdf/ for PM PDF function.(using fpdf of newbb2.0)
but you don't have to install newbb2.0...because it needs just "~/fpdf" ...not all newbb system.
So...
(1)If you have already installed newbb2.0, you don't have to copy it(/html/modules/newbb/fpdf/).
(2)If you're using newbb1.0, Just add ~/fpdf to newbb1.0..(I mean,just copy it)
(3)If you don't have/use newbb, Just make the directory,"/html/modules/newbb/". and Copy it!!
3, Open this file(/html/language/{yourlanguage}/pmsg.txt[and pmsg_upgrade3x-47.txt if it exists])
Add the contents of pmsg.txt to pmsg.php.
4, Open this file(/html/footer.txt)
Add the wanipmhack section(I mean ////////////////WANIPMHACK3.0) of footer.txt to footer.php.
5, That's all!! Enjoy this new PM system!!
PS:
#Download WYSIWYG editors here(Project: WYSIWYG editors for XOOPS)
http://dev.xoops.org/modules/xfmod/project/showfiles.php?group_id=1155
------------------------------

How to uninstall

1, Replace all changed files with your original files.
(html/viewpmsg.php,readpmsg.php,pmlite.php,footer.php)
(html/kernel/privmessage.php)
(html/language/{yourlanguage}/pmsg.php)
2, Delete all new files.
(html/ configpmsg.php, printpmsg.php, backuppmsg.php, pmgrouplite.php, usersearch.php, userkeysearch.php, pmhackconfig.php, overlib_mini.js, pdfpmsg.php, read2pmsg.php)
(html/cache/ pmhackconfig.php)
(html/include/ pm_functions.php)
(html/include/pm/ large.css, medium.css, small.css, style.css, x-small.css, xx-small.css, styleswitcher.js )
(html/kernel/ privmessageconfig.php, pmuserkey.php)
(html/images/ inbox.gif, readbox.gif, rsavebox.gif, rtrashbox.gif, outbox.gif, sentbox.gif, psavebox.gif, ptrashbox.gif, pmhelp.png, xoopspm_slogo.png)
(html/images/icons/ backuppm.gif, forwardpm.gif, gforwardpm.gif, printpm.gif, pmuserkey.gif, pmcheck.gif, pdfpm.gif, pmadvanceview.gif)
(html/images/pmsubject/icon1.gif, pm_normal_u.gif, pm_normal.gif, pm_normal_e.gif, pm_re_u.gif, pm_re.gif, pm_re_e.gif, pm_fw_u.gif, pm_fw.gif, pm_fw_e.gif, pm_gpm_u.gif, pm_gpm.gif, pm_gfw_u.gif, pm_gfw.gif)
3, Open this file(/html/wanipmhack_uninstall.sql) and execute the sql query on the file^^
( Use phpmyadmin...if you are DB-novice!!Please, watch out table prefix[xoops_])
4, That's all!! Very simple^^;;
--------------------------------

Demo:

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

Downloads: (All PHP4/PHP5 Compatible and OK!!!!)
------------------------------------------------
-Stable Version => Ver2.85(default)
http://www.wanisys.net/data/wanipmhack.zip
-DB-toolkit for DB-novice(only for Ver2.85!!New install/uninstall)
http://www.wanisys.net/data/wanipmhack_dbtoolkit285.zip
----------------------------------------------------
-Test Version => Ver4.7(+pmconfig+GroupPM+etc)
http://www.wanisys.net/data/wanipmhack47.zip
-DB-toolkit for DB-novice(only for New install/uninstall)
http://www.wanisys.net/data/wanipmhack_dbtoolkit47.zip
---------------------------------------------------

2005/4/15

From wani[wani@wanisys.net]

the most educational site, wanisys.net [ http://www.wanisys.net ]
_________________

PS:
Quote:

suico wrote:
ON the [PM System Function Status] could you make it showing only for admins? The members when they see a feature that is disable he asks us to have it and sometimes we don t want it and don t want to explain why.

please, open the file, configpmsg.php
and find this code! (line70-71)

//ver4.7 pm functions status show admin only(1) or not(0)
$pmfunctions_show = 0;

and change 0 to 1 ^^;;

137
Gambero[removed]
Re: XOOPS PM(Private Message)-Hack

I appreciate your work but I don't like this hack. It looks ugly (no offense please :P). There is too many functions on a too small place ... hope you understand me. I think you could create a box that looks nicer.

138
nick_ginie
Re: XOOPS PM(Private Message)-Hack
  • 2005/4/19 7:16

  • nick_ginie

  • Just popping in

  • Posts: 4

  • Since: 2005/4/18


Your hack is so great.
My users like to use it.
May you also add the functions of attaching files and give a reply to sender that the user have read in the PM?

139
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2005/4/20 18:51

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Quote:

Gambero wrote:
It looks ugly (no offense please :P).
There is too many functions on a too small place ... hope you understand me.
I think you could create a box that looks nicer.

^^;;
Umm...
It's the right time to equip this pm-hack with template???
(Frankly speaking,I am not inclined to do this job...
...because I don't think it's absolutely necessary.
Without it, I guess, you can easily change the design of this pm-hack.
Anyway....
I will try to equip this pm-hack with template in the next version.
PS:

Q:There is too many functions on a too small place..
P: You can easily turn each functon of this pm-hack off.. if you don't need it.
Please, read readme.txt for more info.

Quote:

nick_ginie wrote:
May you also add the functions of attaching files
and give a reply to sender that the user have read in the PM?

Q: May you also add the functions of attaching files...
A: Umm...(..I've mentioned it before....)
To my regret, I have no plan to add that function to this pm-hack at this point.
because I still think it's not security-safe...
Q: give a reply to sender that the user have read in the PM?
A: Umm...
I guess you mean a kind of confirmation-reply that assures the sender that receiver really read PM.
(^^;; correct? )
Umm...
In my humble opinion,
I think it's not necessary..in this pm-system...
...because without that function,you can easily judge whether your partner really read/deleted your PM.
Please refer to the definiton of SENTBOX.
-----------------------------

INBOX( For New PMs[delete button])
READBOX(for PMs already read[delete button,save button])
RSAVEBOX(for saved PMs[delete button])
RTRASHBOX(for PMs deleted by you(receiver) but still not deleted by sender.You can undelete these PMs but can't read them in this box.)

OUTBOX(Posted PMs, not read or not deleted without reading by your partner[delete button])
SENTBOX(Posted PMs, read or deleted without reading by your partner[delete button,save button])
PSAVEBOX(saved PMs[delete button])
PTRASHBOX(for PMs deleted by you(sender) but still not deleted by receiver. You can undelete this PMs but can't read them in this box.)
-------------------------------

140
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2005/4/20 21:39

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


^^;;
PS:
Interesting Tip from http://www.xoopscube.jp:
(author:okuhiki)
http://www.xoopscube.jp/modules/newbb/viewtopic.php?topic_id=7923&forum=11&viewmode=flat&order=ASC&start=20
--------
#type1
--------
Quote:

xxx wrote:
test
test1
test2

reply
---------
$type2 ( like e-mail)
---------
xxx wrote:
>test
>test1
>test2
reply

With this tip,
you can use #type2 instead of #type1 when you reply

Just change like this^^
ex: pmlite.php

From:
$message  "[quote]n";
$message .= sprintf(_PM_USERWROTE,$pm_uname);
$message .= "n".$pm->getVar("msg_text""E")."n[/quote]";


To:
//$message  = "[quote]n";
//$message .= sprintf(_PM_USERWROTE,$pm_uname);
$pm_msg_text $pm->getVar("msg_text""E");
$pm_msg_text_split split("n"$pm_msg_text);
$message "[quote]n";
$message .= sprintf(_PM_USERWROTE,$pm_uname);
$message .= "n>".implode("n>"$pm_msg_text_split)."n[/quote]";
//$message .= "n".$pm->getVar("msg_text", "E")."n[/quote]";


Umm...
If you don't need the quote-box, just remove Quote:
and

Login

Who's Online

345 user(s) are online (236 user(s) are browsing Support Forums)


Members: 0


Guests: 345


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits