61
limecity
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/17 2:58

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


@krobi
maybe you didn't understand what i just posted.
I said "i won't mind registrating to see it". But then, I would glad to see a screenshot.

So does anyone have it on their site? I WISH to register in your site just to take a look at the hack. I have problem with my DSL line so unable to implement the hack on my site.

62
irmtfan
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/17 7:33

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


finally after more test i install this hack on my live site. everythisng is ok.my users very pleased you wanikoo.
@ wanikoo:
in this moment i think you must do some works on imvironment.
my points:
- create templates for pmlite.php ,viewpmsg.php , ... (also i know this is on the plan for XOOPS 2.2 )
-some images for every part
- a document for users

@ limecity:
i install this hack in my test site. send you a pm now

63
limecity
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/17 8:15

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


Ah thanks to irmtfan generousity, I finally get to witness this hack running. Thank you again, irmtfan.

My comment.
I find it rather confusing for "non tech savvy" members to use it. I agree with irmtfan, I think template neccessary for this. maybe more icons?

Perhaps make it look like a Email interface?
split the inbox & outbox status ?

Like email's interface:
Inbox,Sent Mail,Status


When click on Inbox

--------------------Status:5/100-
-msg 1
-msg 2
-msg 3
-msg 4
-msg 5
---------------------------------


Or something like that. I am just having a glance through the hack in irmtfan's site. I haven't actually use it. So if my comment sounds crappy. Just ignore it.

Again, great job ~!

64
irmtfan
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/17 8:20

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


just one more thing:
put the popup message in the lang file( now its hard coded in footer.txt)
Quote:

"New PM arrived from %s!!( %s )\\nSubject: %s"

65
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/17 19:23

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Quote:

migoe wrote:
Hey men (wanikoo),
you are crazy Thank you very much for your work!
i have translated to german. you can find it on www.myxoops.de

lol^^//....(^^);not crazy..just c~~~~~lazy^^...
btw...
thanks a lot for your German language file^^
...Merry Christmas and Happy new year..(..too early??--;;)
Quote:

limecity wrote:
My comment.
I find it rather confusing for "non tech savvy" members to use it. I agree with irmtfan, I think template neccessary for this. maybe more icons?
Perhaps make it look like a Email interface?
split the inbox & outbox status ?

Thanks for your advice^^....as you know...I have little talent for Design..^^;;

Quote:

irmtfan wrote:
@ wanikoo:
in this moment i think you must do some works on imvironment.
my points:
- create templates for pmlite.php ,viewpmsg.php , ... (also i know this is on the plan for XOOPS 2.2 )
-some images for every part
- a document for users

^^...You make me busy again^^;;
Umm...
Thanks for your advice^^
I know....without your advice ...I coudn't reach the current version of this hack^^
( I have not much experience in Programming.... so your advice is really helpful to me^^)
btw...
I plan to equip each file with templates....in Ver4.X ..
In this stage(Ver3.X)...I continue to devote myself to improve the function of this hack^^

Quote:

just one more thing:
put the popup message in the lang file( now its hard coded in footer.txt)
"New PM arrived from %s!!( %s )\\nSubject: %s"

I know...^^;;
in the next version^^;;

Anyway....
Very thanks for all your attention ,advices, and kindness^^

Bless you^^
(I have a cold now^^;;need some rest^^)
and have a good time and happiness^^

66
irmtfan
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/18 7:46

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:
^^...You make me busy again^^;;

loool
Quote:

I plan to equip each file with templates....in Ver4.X ..
In this stage(Ver3.X)...I continue to devote myself to improve the function of this hack^

very well
i always have some features in my pocket
one important is:
- user can send pm to all members of one group.
i think about this and describe this now.
- there must be a configuration for admin that user send a group PM only X times per month ( 3 pm per month is my default)
- admin can choose some groups so users only can send pm to this specific groups.

- users can send pm to all their own groups not other groups. ( very nice for warm comunities with many groups i think)
finally my configuration for moderate all of these:
1- user can send pm to webmasters group? Yes | NO ( default = No)
2- users can send pm to registered users group? Yes | No ( default = No)

3- users can send pm to all their own groups (except registered users)? Yes | No ( default = No)

4- select valid groups that users can send pm.( if you select this all above setting will be disable)
group A , B , C , ...

5- number of pms per month that user can send to groups. ( default = 3)

off course this is really Rude feature. i hope we can improve this. im waitnig for your ideas about this
many thanks

67
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/18 13:03

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Quote:

one important is:
- user can send pm to all members of one group.
i think about this and describe this now.
- there must be a configuration for admin that user send a group PM only X times per month ( 3 pm per month is my default)
- admin can choose some groups so users only can send pm to this specific groups.

- users can send pm to all their own groups not other groups. ( very nice for warm comunities with many groups i think)
finally my configuration for moderate all of these:
1- user can send pm to webmasters group? Yes | NO ( default = No)
2- users can send pm to registered users group? Yes | No ( default = No)

3- users can send pm to all their own groups (except registered users)? Yes | No ( default = No)

4- select valid groups that users can send pm.( if you select this all above setting will be disable)
group A , B , C , ...

5- number of pms per month that user can send to groups. ( default = 3)

off course this is really Rude feature. i hope we can improve this. im waitnig for your ideas about this

Umm....
Group PM....^^
According to My Plan, I am supposed to add Group PM function to this hack in Ver3.5 or later.
but...I think your suggestion will make me rush to this function earlier.
....Umm...
btw...
I expect it is simple and easy to realize and implement Group PM function which is similar to your suggestion.
but...I am a little worry that it could be a burden to XOOPS system.

Anyway....
I will add this Group PM function to this hack in the future version.
(I am sure that your suggestion is very helpful and a good reference.)

68
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/21 13:56

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Upgraded to Ver3.5

<Change>
------Ver3.5-------(2004/12/21)
>>New Function Added.
You can send GroupPM to your PMGroup.(pmgrouplite.php)

<<GroupPM Principle>>
<Precondition&Principle>
- If user have any PM-Group, he/she can send PMs to all members of that group.[I mean GroupPM] (but still their PM policies(ex:filtering ) are valid.)
- If user doesn't exceed his/her Group-PM limit( ex: 5 per month), he/she can send GroupPM to his/her PM-Groups.
- Although user exceeds his/her Group-PM limit( ex:5 per month), he/she can send GroupPM to his/her PM-Groups only if the time-limit of GroupPM-limit-Policy expires.
( ex: as of 2004/11/17, 5/5 (2004/11/12-12/12) ==> you can't send GroupPM anymore till the time-limit of GroupPM-limit-Policy expires.
when 2004/12/13, the values above will change like this. ==> 0/5 (initialization of values)
when 2004/12/15, if you send GroupPM, the values will change like this ==> 1/5 and time-limit of GroupPM-limit-Policy(2004/12/15-2004/1/15)

- Only Admin can set/modify PM-Group(s) of users....all at once or individually.

<How to set/modify PM-Groups&GroupPM-limit>(configpmsg.php)
[All-at-once Change]
(method1)
1, Users can send GroupPM to Webmasters-Group? Yes | NO ( default = No)
2, Users can send GroupPM to all groups which they joined(except Registered-Users-Group)? Yes | No ( default = No)
3, Users can send GroupPM to Registered-Users-Group? Yes | No ( default = No)
(method2-direct designation method)
1, Admin can designate PMgroup(s) to Users directly.
( In this case, setting by method1 will be invalid.)
(common)
0- Admin can set GroupPM limit. ( default = 5/month ==> 5 times Per Month.)

[Individual Change]
1, Admin can directly designate PMgroup(s) and GroupPM-limit to any( certain) user.
-----------------------------

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, Overwrite All files into proper directories!!
(You must back-up original files...before this hack!!!!)
3, Open this file(/html/language/{yourlanguage}/pmsg.txt[and pmsg_upgrade32-35.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!!

How to upgrade 3.2->3.5
1, Open this file(/html/wanipmhack32-35.sql) and execute the sql query on the file^^
( Use phpmyadmin...if you are DB-novice!!Please, watch out table prefix[xoops_])
2, Open this file(/html/language/{yourlanguage}/pmsg.txt[or pmsg_upgrade32-35.txt])
Add the upgraded contents( under//WANISYS.NET PM HACK3.5) of pmsg.txt to pmsg.php.
3, Overwrite All files into proper directories!!
4, That'a all! Enjoy this new PM system3.5!!

Demo:

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

Downloads:
-Stable Version => Ver2.85(default)
http://www.wanisys.net/data/wanipmhack.zip
-Test Version => Ver3.2(+pmconfig)
http://www.wanisys.net/data/wanipmhack32.zip
-Test Version => Ver3.5(+pmconfig+GroupPM)
http://www.wanisys.net/data/wanipmhack35.zip

2004/12/21

From wani[wani@wanisys.net]

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

69
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/22 14:27

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


As you know, the current version(Ver3.XX) of this PM-hack still has something inefficient and inconvenient.
For example,
While you can easily designate the box_limit and GroupPM-policy[PM-policy] of your system to your old members,
you have to designate the PM-policy of your system to your newcomer individually or all at once whenever you have a new member.
I mean the PM-policy of your system won't be applied to your newcomer automatically.
ex> You set the PM-policy of your system like this. ==> pbox_max = 300 rbox_max =200 and your own GroupPM-policy.
You have a new member ==> his/her PM-config gets the default value like this. ==> pbox_max = 5000 rbox_max = 5000 and default GroupPM-policy.
^^;;
The reason is simple.....
because I didn't make such an automatic function yet.

Umm....
but...I still think it's not the right time for that function....^^
So you have to solve this stupid problem...by/for yourself.

Umm..
I recommend this temporary solution that you modify the forcemake function of privmessageconfig.php.
I mean you can apply the PM-policy of your system by changing default values of forcemake function manually.
^^;; I know it's inefficient and even ridiculous...but..in this stage...you have to^^;; Sorry^^
function forcemake(&$pmconfig,$uid)
    {
        if (
get_class($pmconfig) != 'xoopsprivmessageconfig') {
            return 
false;
        }
        
$conf_id $this->db->genId('priv_msgs_config_conf_id_seq');
        
$uid intval($uid);
        
$filter_word "";
        
$reject_reason "";
        
$blacklist "";    
        
$pmgroup_list "";        
        
$sql sprintf("INSERT INTO %s (conf_id, uid, filter_ok, filter_word, reject_ok, reject_reason, blacklist, pmsort, pmorder, pmlimit, trashbox_ok, popup_ok, newpopup, mail_ok, rbox_max, pbox_max, grouppm_adminok, grouppm_mygroupok, grouppm_rusergroupok, pmgroup_list, grouppm_limit, grouppm_limit_now, grouppm_limit_start ) VALUES (%u, %u, %u, %s, %u, %s, %s, %u, %u, %u, %u, %u, %u, %u, %u, %u, %u, %u, %u, %s, %u, %u, %u)"$this->db->prefix('priv_msgs_config'), $conf_id$uid0$this->db->quoteString($filter_word), 0$this->db->quoteString($reject_reason), $this->db->quoteString($blacklist), 0010000050005000000$this->db->quoteString($pmgroup_list), 50time());
        if (!
$this->db->queryF($sql)) {
            return 
false;
        }
        return 
true;
    }

box_max:5000, 5000,
GroupPM policy: 0, 0, 0, $this->db->quoteString($pmgroup_list), 5
Change these^^
...
btw
I have mentioned this functon....like this.
Quote:

If you make pmconfig-record of each user at the same time when you create his account(I mean user-info),
this process...is not needed!!!
but...
most of you already...have your members(without their pmconfig-record)...
so..the process that makes his/her pmconfig-record forcibly.....is needed...(Yeah..mysql is still cool^^)
Umm....
I inserted this process...into every file of this hack^^...So...I can...say..it's redundant...in common.php

if(!$pmconfig_handlerpopup->forcemake($pmconfigpopup,$xoopsUser->getVar("uid"))) {
echo $pmconfigpopup->getHtmlErrors();
}
else {
$pmconfigpopup = & $pmconfig_handlerpopup->getbyuid($xoopsUser->getVar("uid"));
}

70
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/23 17:54

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Upgraded to Ver3.6
^^
<Change>
------Ver3.6-------(2004/12/24)
>>User-Interface improved(configpmsg.php)
With the top menu,You can easily move from configpmsg.php to any pmbox.
>>A small bug fixed(pmgrouplite.php)
>>Individual-change-method of GroupPM policy...improved(configpmsg.php)
>>Forward-send and Group-Forward-send added(pmlite.php,pmgrouplite.php)
^^.I mean..FW:subject....not RE:subject.
>>Print PM function added.(printpmsg.php)
With this, You can print your PM easily.
Umm...I continue to improve this function more and more
and someday...also pdf^^
-----------------------------
How to upgrade 3.5->3.6
0, No change on PM DB^^No touch^^
1, Open this file(/html/language/{yourlanguage}/pmsg.txt[or pmsg_upgrade32-36.txt])
2, Add the upgraded contents( under//WANISYS.NET PM HACK3.6) of pmsg.txt to pmsg.php.
3, Overwrite All files into proper directories!!
4, That'a all! Enjoy this new PM system3.6!!

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, Overwrite All files into proper directories!!
(You must back-up original files...before this hack!!!!)
3, Open this file(/html/language/{yourlanguage}/pmsg.txt[and pmsg_upgrade32-36.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!!


Demo:

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

Downloads:
-Stable Version => Ver2.85(default)
http://www.wanisys.net/data/wanipmhack.zip
-Test Version => Ver3.2(+pmconfig)
http://www.wanisys.net/data/wanipmhack32.zip
-Test Version => Ver3.6(+pmconfig+GroupPM)
http://www.wanisys.net/data/wanipmhack36.zip

2004/12/24

From wani[wani@wanisys.net]

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

Login

Who's Online

128 user(s) are online (77 user(s) are browsing Support Forums)


Members: 0


Guests: 128


more...

Donat-O-Meter

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

Latest GitHub Commits