Quote:
wanikoo wrote:
Please,comment out that process like this^^I think it's still ok...because this process is redundant^^..
(Anyone who has a warning like him....Please...comment out like this^^)
// if(!$pmconfig_handlerpopup->forcemake($pmconfigpopup,$xoopsUser->getVar("uid"))) {
// echo $pmconfigpopup->getHtmlErrors();
// }
// else {
// $pmconfigpopup = & $pmconfig_handlerpopup->getbyuid($xoopsUser->getVar("uid"));
// }
I feel I need to explain this code in detail.
...Umm...
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"));
}
And
Let me explain the modification of common.php...briefly.
All modification of common.php is for popup-alert notification function!
So...if you don't want your common.php modified and ..don't need this function, you can use your original common.php.
In that case, you can't take advantage of this cool(?--;;) function.
Anyway...explanation continues........
With this function.....
You can be notified with an alert-window(javascript)...
[when your partner sends you a PM while you are online.....(newpopup = 1)
&&
when your reload or move to any page within 5 minutes after posting.]
Umm...
I know it needs more upgrade or possibly moved into other file(header.php or foot.php etc..)
btw...
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.