51
irmtfan
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/15 17:16

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


my php version is 4.3.8 but i use protector
i dont need a popup so i use original common.php but now i get this error when i click on configpmsg.php :
Fatal errorCall to a member function on a non-object in /home/.../public_html/teston line 152

also i corect that mistype

Quote:
Which do you like better?
A: preventing any message with some filthy and dirty words from being posted.
B: replacing that words with some other characters(ex..d##g..) without preventing.

vote B

52
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/15 20:05

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Upgraded to Ver3.1
^^
<Change>
------Ver3.1-------(2004/12/16)
>>My mistake fixed^^
(I mistyped "reject_reason" like this..rejcet_reason...on a line of configpmsg.php.)
>>Function Added^^(in configpmsg.php)
Now, Admin can individually set rbox_max and pbox_max of any user with his/her uid and uname!
-----------------------------

How to upgrade 3.0->3.1
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 HACK3.1) of pmsg.txt to pmsg.php.
3, Overwrite All files into proper directories!!
4, That'a all! Enjoy this new PM system3.1!!

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.1
http://www.wanisys.net/data/wanipmhack31.zip

Quote:

irmtfan wrote:
my php version is 4.3.8 but i use protector
i dont need a popup so i use original common.php but now i get this error when i click on configpmsg.php :
Fatal error: Call to a member function on a non-object in /home/.../public_html/test/ on line 152
also i corect that mistype

Please try again with Ver3.1.
Umm...
If you still have the same error message after this upgrade,
please inform me of your environment and situation (on which that error happened)..in detail.

2004/12/16

From wani[wani@wanisys.net]

53
irmtfan
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/16 20:39

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


i upgrade to 3.1 and everything is ok. just a mistype in creat table sql query:
original
ALTER TABLE xoops_priv_msgs ADD from_delete TINYINTUNSIGNED NOT NULL default '0' ADD to_delete TINYINTUNSIGNED NOT NULL default '0'ADD to_save TINYINTUNSIGNED NOT NULL default '0'ADD from_save TINYINTUNSIGNED NOT NULL default '0';

# wanipmhack ver3.0
# Table structure for table `priv_msgs_config`
#

CREATE TABLE xoops_priv_msgs_config (
  
conf_id mediumint(8unsigned NOT NULL auto_increment,
  
uid mediumint(8unsigned NOT NULL default '0',
  
filter_ok tinyint(1unsigned NOT NULL default '0',
  
filter_word tinytext NOT NULL default '',
  
reject_ok tinyint(1unsigned NOT NULL default '0',
  
reject_reason tinytext NOT NULL default '',
  
blacklist tinytext NOT NULL default '',
  
pmsort tinyint(1unsigned NOT NULL default '0',
  
pmorder tinyint(1unsigned NOT NULL default '0',
  
pmlimit tinyint(3unsigned NOT NULL default '10',
  
trashbox_ok tinyint(1unsigned NOT NULL default '0',
  
popup_ok tinyint(1unsigned NOT NULL default '0',
  
newpopup tinyint(1unsigned NOT NULL default '0',
  
mail_ok tinyint(1unsigned NOT NULL default '0',
  
rbox_max mediumint(8unsigned NOT NULL default '5000',
  
pbox_max mediumint(8unsigned NOT NULL default '5000',
  
PRIMARY KEY  (conf_id),
  
KEY uid (uid),
TYPE=MyISAM;
# --------------------------------------------------------

correct:
ALTER TABLE xoops_priv_msgs ADD from_delete TINYINTUNSIGNED NOT NULL default '0' ADD to_delete TINYINTUNSIGNED NOT NULL default '0'ADD to_save TINYINTUNSIGNED NOT NULL default '0'ADD from_save TINYINTUNSIGNED NOT NULL default '0';

# wanipmhack ver3.0
# Table structure for table `priv_msgs_config`
#

CREATE TABLE xoops_priv_msgs_config (
  
conf_id mediumint(8unsigned NOT NULL auto_increment,
  
uid mediumint(8unsigned NOT NULL default '0',
  
filter_ok tinyint(1unsigned NOT NULL default '0',
  
filter_word tinytext NOT NULL default '',
  
reject_ok tinyint(1unsigned NOT NULL default '0',
  
reject_reason tinytext NOT NULL default '',
  
blacklist tinytext NOT NULL default '',
  
pmsort tinyint(1unsigned NOT NULL default '0',
  
pmorder tinyint(1unsigned NOT NULL default '0',
  
pmlimit tinyint(3unsigned NOT NULL default '10',
  
trashbox_ok tinyint(1unsigned NOT NULL default '0',
  
popup_ok tinyint(1unsigned NOT NULL default '0',
  
newpopup tinyint(1unsigned NOT NULL default '0',
  
mail_ok tinyint(1unsigned NOT NULL default '0',
  
rbox_max mediumint(8unsigned NOT NULL default '5000',
  
pbox_max mediumint(8unsigned NOT NULL default '5000',
  
PRIMARY KEY  (conf_id),
  
KEY uid (uid)
TYPE=MyISAM;
# --------------------------------------------------------

54
irmtfan
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/16 21:19

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


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. many thanks

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

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

57
irmtfan
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/16 21:56

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


wanikoo your rock

58
migoe
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/16 23:04

  • migoe

  • Just popping in

  • Posts: 68

  • Since: 2003/4/2 9


Hallo wanikoo,

freue mich, daß Du mit der deutschen Sprache was anfangen kannst und grüße Dich herzlich

Hey men (wanikoo),

you are crazy Thank you very much for your work!

This hack is one of the best piece of XOOPS i know an i have translated to german. you can find it on www.myxoops.de

best greetings and wishes from germany

59
limecity
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/17 0:49

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


Can i see this hack in action?
who implement it already? any english site?
i won't mind registrating to see it.

60
krobi
Re: XOOPS PM(Private Message)-Hack
  • 2004/12/17 2:24

  • krobi

  • Quite a regular

  • Posts: 290

  • Since: 2003/12/21


@limecity: this is a Private Message Hack how to think can a user show you how this hack look like without registration on his site?

so only screenshots can tell you what this hack look like, but you can only try the function of this hack when you register on a site who use that hack.

but you can see a screenshot of a older and a bit optical modificated version in this thread look at a old posting form we

Login

Who's Online

92 user(s) are online (64 user(s) are browsing Support Forums)


Members: 0


Guests: 92


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