81
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/27 19:37

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


If you are DB novice,this db_toolkit will help you change your DB for this PM HACK.

Download:
http://www.wanisys.net/data/wanipmhack_dbtoolkit.zip

#How to Use^^
First, Copy this directory ( /html/wanipmhackinstall ) => /XOOPSROOT/wanipmhackinstall
[install]
Do you remember this lines (of 'How to install' in /html/readme.txt)?
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_])
This toolkit will help you clear this step.
Use this file^^ ( /html/wanipmhackinstall/install.php )

[uninstall]
Do you remember this lines (of 'How to uninstall' in /html/readme.txt)?
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_])
This toolkit will help you clear this step.
Use this file^^ ( /html/wanipmhackinstall/uninstall.php )

<^^>;;
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)
(html/kernel/ privmessageconfig.php)
(html/images/icons/ backuppm.gif,forwardpm.gif,gforwardpm.gif,printpm.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^^;;

From wani[wani@wanisys.net]

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



82
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/26 18:16

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Quote:

smdcom wrote:
is this hack suitable for XOOPS 2.0.9?

Umm..
Before I release the new version of this PM-hack,
I always have tested it and checked if it works well or not on my test server(XOOPS 2.0.7.X and XOOPS 2.0.9 beta).
And Now ...I tested it on XOOPS 2.0.9 final and confirmed it works well..and shows no error-message, even no NOTICE.

Quote:

irmtfan wrote:
- change pm setting for members of one group ( now its just possible to change for one member or all members)

^^...Ok^^... in the future version^^

btw,
If you find any bug/error or have any new idea about this PM-hack,
Please inform me^^(post it here^^)
And...
Language files are always welcomed^^



83
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/26 11:53

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Upgraded to Ver3.7
^^
<Change>
------Ver3.7-------(2004/12/26)
>>A small bug fixed and Print PM function improved^^(printpmsg.php)
You can print your PMs selected with check-boxes in any box (like Delete or Save).[Multi-PM print function]
>>Backup PM function added.(backuppmsg.php)
You can save your PMs to your PC easily.(Backup of each box, Multi-PM backup supported with the format of HTML or SQL)
-----------------------------

How to upgrade 3.6->3.7
0, No change on PM DB^^No touch^^
1, Open this file(/html/language/{yourlanguage}/pmsg.txt[or pmsg_upgrade3x-37.txt])
2, Add the upgraded contents( under//WANISYS.NET PM HACK3.7) of pmsg.txt to pmsg.php.
3, Overwrite All files into proper directories!!
4, That'a all! Enjoy this new PM system3.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, 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_upgrade3x-37.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.7(+pmconfig+GroupPM)
http://www.wanisys.net/data/wanipmhack37.zip

Quote:

irmtfan wrote:
thank you very much wanikoo
i update to 3.6 and its really amazing and wonderfull.quick and stable work.

You're welcome^^ GroupPM function is thanks to YOU.
I wish you Happiness,Health and a Happy new year^^

2004/12/26

From wani[wani@wanisys.net]

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



84
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 ]



85
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"));
}



86
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 ]



87
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.)



88
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^^



89
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/16 21:49

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Quote:

just a mistype in creat table sql query

^^;; I fixed it. Thank you^^
Quote:

and the persian language is ready for 3.1:
get it here :
http://www.jadoogaran.com/uploads/html_lang.zip
wanikoo please add lang to original file.

My pleasure^^
Very thank you^^
I added it Ver3.2!
Thanks a lot^^



90
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/16 21:25

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Upgraded to Ver3.2
^^
<Change>
------Ver3.2-------(2004/12/17)
>>No more modification on common.php. Use your original common.php. Instead modify footer.php.
haha...Now footer.php is our new victim^^;;it's really perfect substitute!!
By inserting some codes(related with pop-up notification function) into footer.php instead of common.php, All annoying trouble's gone!!
>>Interface upgraded^^
You can easily figure out how full your receive_boxes and post_boxes are.
(ex: POST(outbox+sentbox+psavebox) 30/300 [10%]=> pbox_total/pbox_max [percentage]
RECEIVE(inbox+readbox+rsavebox) 30/300 [10%]=> rbox_total/rbox_max [percentage]
>>A little change in usersearch.php and configpmsg.php
User can confirm pbox_max and rbox_max in the pmconfig_form.
>>A little change in pmlite.php
Sender can confirm filtered words in subject or message of PM.
-----------------------------

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)
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.1->3.2
0, No change on PM table^^No touch^^
1, Overwrite All files into proper directories!!
2, No more modification on common.php. Use your original common.php(or Remove wanipmhack section[ ////////////////WANIPMHACK3.0] in common.php)
haha...Now footer.php is our new victim^^;;it's really perfect substitute!!
(By inserting some codes(related with pop-up notification function) into footer.php instead of common.php, All annoying trouble's gone!! )
3, Open this file(/html/footer.txt)
Add the wanipmhack section(I mean ////////////////WANIPMHACK3.0) of footer.txt to footer.php.
4, That'a all! Enjoy this new PM system3.2!!

Demo:

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

Downloads:
-Stable Version => Ver2.85
http://www.wanisys.net/data/wanipmhack.zip
-Test Version => Ver3.2
http://www.wanisys.net/data/wanipmhack32.zip

Quote:

irmtfan wrote:
i upgrade to 3.1 and everything is ok. just show this error:
Errors
None
in front of the page
and i use original common.php

Umm...
In my case, No error, no warning, even no notice!!
Anyway...
To remove that error, Just comment out like this!!
// echo $pmconfigpopup->getHtmlErrors();
<ex>
if(!$pmconfig_handlerpopup->forcemake($pmconfigpopup,$xoopsUser->getVar("uid"))) {
// echo $pmconfigpopup->getHtmlErrors();
}
else {
$pmconfigpopup = & $pmconfig_handlerpopup->getbyuid($xoopsUser->getVar("uid"));
}

Umm..
In ver3.2,We modify footer.php instead of common.php.
Just try Ver3.2.
It works really well and all annoying trouble's gone!!!
( Real-time popup-notification-function is very cool.(I think so^^)..it sometimes works like Real-time chat...^^;;)

2004/12/17

From wani[wani@wanisys.net]




TopTop
« 1 ... 6 7 8 (9) 10 11 12 »



Login

Who's Online

257 user(s) are online (153 user(s) are browsing Support Forums)


Members: 0


Guests: 257


more...

Donat-O-Meter

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

Latest GitHub Commits