121
irmtfan
Re: XOOPS PM(Private Message)-Hack
  • 2005/3/11 7:43

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


hi agian wanikoo to you and your pm hack system :)
i have some problems in help function:

- help function icon (pmhelp.png) doesnt show in FireFox

- help function font is very bad for us how can i change it(is there a style for that?)

122
Anonymous
Re: XOOPS PM(Private Message)-Hack
  • 2005/3/11 8:25

  • Anonymous

  • Posts: 0

  • Since:


Quote:
I fixed my big mistake!!!!!!
(You can now download Ver4.5!!)
Very sorry for my stupid mistake!!


No need for such apologies! How could you know if everything is fine on your test environment?

Enough of this. Now for something completely different!

The smarty-plugin function.popup_init.php needs to be changed. As it is now in Firefox the popup has a width nearly as wide as the screen-width which does not look so nice.

Change

return '.$zindex.';">
"n"


to

return '.$zindex.'; width: 250px;">
"n"


I think a popup with 250px width is fairly enough, but this depends on the personal taste of everyone.

Keep up the good work!

123
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2005/3/11 13:32

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Quote:

irmtfan wrote:
hi agian wanikoo to you and your pm hack system :)

Hi, irmtfan! Welcome again!!
Quote:

i have some problems in help function:
- help function icon (pmhelp.png) doesnt show in FireFox
- help function font is very bad for us how can i change it(is there a style for that?)

Q:- help function icon (pmhelp.png) doesnt show in FireFox
Umm... I've checked and confirmed it shows properly.
??????
-----------
Q:- help function font is very bad for us how can i change it(is there a style for that?)

Umm..
So difficult--;;
lots of themes....and lots of browsers!!
Anyway..
Generally,
you can customize the width of Help-Popup by changing some code like this!!
From:
echo "\n";
To:
echo "\n";
##Target files including that code!!##
----------------------------
Ver4.1,Ver4.2, Ver4.5
/html/configpmsg.php
/html/include/pm_functions.php
--------------------------
Ver4.0
/html/configpmsg.php
/html/readpmsg.php
/html/viewpmsg.php

And also can customize other attributes of Help-Popup such as font, color etc by editing overlib_mini.js.
please visit the author's site below and read the manual of this script.
(You can get also the latest version of this script here.
Just download and rename it^^[ overlibmws.js => overlib_mini.js ] )
------------
overlibmws DHTML Popup Library
http://www.macridesweb.com/oltest/
(maintained by Foteos Macrides at Macrides Web Services)

And
For Firefox...........
Umm...
Please refer to francis's post!
and..this pages!!
http://smarty.php.net/manual/en/language.function.popup.init.php
http://smarty.php.net/manual/en/language.function.popup.php

Quote:

francis wrote:
No need for such apologies! How could you know if everything is fine on your test environment?
Enough of this. Now for something completely different!

I forgot to say this to you.
"Very thanks for you help!!!!!"
Quote:

The smarty-plugin function.popup_init.php needs to be changed. As it is now in Firefox the popup has a width nearly as wide as the screen-width which does not look so nice.

Also thanks for your helpful advice!!

124
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2005/3/12 13:37

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Umm...
Until now,
I've never tested this PM-Hack on PHP5 environment!
but....
I guess this PM-Hack may not work properly on PHP5
because we need to change some codes for PHP5.

this modification below is necessary for PHP5
------------------------------
/html/kernel/pmuserkey.php
From:
get_class($pmuserkey) != 'xoopspmuserkey'
To:
strtolower(get_class($pmuserkey)) != 'xoopspmuserkey'
---------------------------
/html/kernel/privmessage.php
From:
get_class($pm) != 'xoopsprivmessage'
To:
strtolower(get_class($pm)) != 'xoopsprivmessage'
---------------------------
/html/kernel/privmessageconfig.php
From:
get_class($pmconfig) != 'xoopsprivmessageconfig'
To:
strtolower(get_class($pmconfig)) != 'xoopsprivmessageconfig'

Umm..
In PHP5, get_class($pm) returns XoopsPrivmessage not xoopsprivmessage !!...
so we need to use strtolower function.

Read this page!
http://kr2.php.net/manual/en/migration5.incompatible.php

Umm.....
I think this change above may make this PM-hack work properly on PHP5...
but...
still I am not sure and wonder if it works well on PHP5.
(To my regret....I've never installed PHP5. )

Anyway...
I will make this PM-hack work well on PHP5... in the next version!!

125
Hisoka
Re: XOOPS PM(Private Message)-Hack
  • 2005/3/15 2:23

  • Hisoka

  • Just popping in

  • Posts: 39

  • Since: 2005/3/2 1


Thanks a lot wanikoo for the job, there is a pretty look now .
I've translated some language in french, but this is home made..But if someone doesn't want to do so much work look at this:

//WANISYS.NET PM HACK
//add this to pmsg.php
define("_PM_RECEIVE","RECEPTION");
define("_PM_POST","ENVOI");
define("_PM_READBOX","LU(S)");
define("_PM_RSAVEBOX","SAUVEGARDE(S)");
define("_PM_OUTBOX","NON LU(S)");
define("_PM_SENTBOX","ENVOYE(S)");
define("_PM_PSAVEBOX","SAUVEGARDE(S)");
define("_PM_SAVE","Sauvegarder");
define("_PM_SAVED","Message(s) sauvegardé(s) avec succès");
define("_PM_TOC","De: ");

//WANISYS.NET PM HACK1.5
define("_PM_SORT","TRIER");
define("_PM_ORDER","ORDRE");
define("_PM_UID","UID Du Contact");
define("_PM_TIME","Date D'envoi");
define("_PM_ASC","ASC");
define("_PM_DESC","DESC");
define("_PM_LIMIT","PMs par Page");
define("_PM_BACKTOBOX","Retour à la Boîte");
define("_PM_SORTSUBMIT","Appliquer");
define("_PM_PREVIOUSP","Précédent");
define("_PM_NEXTP","Suivant");

//WANISYS.NET PM HACK2.0
define("_PM_UNDELETE","Non Supprimé(s)");
define("_PM_UNDELETED","Votre/vos message(s) n'a/n'ont pas été supprimé(s)");
define("_PM_RTRASHBOX","CORBEILLE");
define("_PM_PTRASHBOX","CORBEILLE");

//WANISYS.NET PM HACK2.5
define("_PM_INBOXTOTAL","Total : %d PM(s) trouvé(s) dans Message(s) Reçu(s)");
define("_PM_READBOXTOTAL","Total : %d PM(s) trouvé(s) dans Message(s) Lu(s)");
define("_PM_RSAVEBOXTOTAL","Total : %d PM(s) trouvé(s) dans Reçu & Sauvegardé");
define("_PM_RTRASHBOXTOTAL","Total : %d PM(s) trouvé(s) dans Reçu & Corbeille");
define("_PM_OUTBOXTOTAL","Total : %d PM(s) trouvé (s) dans Message(s) Envoyé(s) & Non lu(s)");
define("_PM_SENTBOXTOTAL","Total : %d PM(s) trouvé(s) dans Message(s) Envoyé(s)");
define("_PM_PSAVEBOXTOTAL","Total : %d PM(s) trouvé(s) dans Message(s) Envoyé(s) & Sauvegardé(s)");
define("_PM_PTRASHBOXTOTAL","Total : %d PM(s) trouvé(s) dans Envoyé(s) & Corbeille");
define("_PM_INBOXSEARCHTOTAL","Result : %d PM(s) trouvé(s) dans Message(s) Reçu(s)");
define("_PM_READBOXSEARCHTOTAL","Result : %d PM(s) trouvé(s) dans Message(s) Lu(s)");
define("_PM_RSAVEBOXSEARCHTOTAL","Result : %d PM(s) trouvé(s) dans Reçu(s) et Sauvegardé(s)");
define("_PM_RTRASHBOXSEARCHTOTAL","Result : %d PM(s) trouvé(s) dans Reçu(s) & Corbeille");
define("_PM_OUTBOXSEARCHTOTAL","Result : %d PM(s) trouvé(s) dans Message(s) Envoyé(s) & Non lu(s)");
define("_PM_SENTBOXSEARCHTOTAL","Result : %d PM(s) trouvé(s) dans Message(s) Envoyé(s)");
define("_PM_PSAVEBOXSEARCHTOTAL","Result : %d PM(s) trouvé(s) dans Message(s) Envoyé(s) & Sauvegardé(s)");
define("_PM_PTRASHBOXSEARCHTOTAL","Result : %d PM(s) trouvé(s) dans Envoyé(s) & Corbeille");
define("_PM_SINCE","Depuis");
define("_PM_SINCEBEGIN","Le début");
define("_PM_SINCE1","1 jour");
define("_PM_SINCE2","2 jours");
define("_PM_SINCE5","5 jours");
define("_PM_SINCE7","7 jours");
define("_PM_SINCE10","l0 jours");
define("_PM_SINCE20","20 jours");
define("_PM_SINCE30","30jours");
define("_PM_SINCE40","40 jours");
define("_PM_SINCE50","50 jours");
define("_PM_SINCE60","60 jours");
define("_PM_SINCE100","100 jours");
define("_PM_SINCE365","1 an");
define("_PM_SEARCH","Rechercher");
define("_PM_SEARCHFIELD","Dans");
define("_PM_TEXT","MESSAGE");

//WANISYS.NET PM HACK2.7
define("_PM_SEARCHAND","ET");
define("_PM_SEARCHOR","OU");

//WANISYS.NET PM HACK2.8
define("_PM_SEARCHKEYWORD","Mot(s) Clé(s) de Recherche");
define("_PM_SEARCHNOKEYWORD","Aucun Mot Clé");
define("_PM_SEARCHNOT","AUCUN");

//WANISYS.NET PM HACK3.0
define("_PM_PMCONFIG","Configuration PM");
define("_PM_EDITPMCONFIG","Editer Configuration PM");
define("_PM_USERNAME","Nom d'utilisateur");
define("_PM_FILTEROK","Paramètres des Filtres PM");
define("_PM_FILTERNO","AUCUN FILTRE");
define("_PM_FILTERYES","ACTIVER LES FILTRES");
define("_PM_FILTERWORD","FILTRE PAR MOT [ ex: sex,drug ]");
define("_PM_REJECTOK","Paramètres Rejet PM");
define("_PM_REJECTNO","AUCUN REJET");
define("_PM_REJECTYES","ACTIVER REJET");
define("_PM_REJECTREASON","RAISON Du Rejet");
define("_PM_BLACKLIST","PM Liste Noire [ ex: devilboy,devilgirl ]");
define("_PM_TRASHBOXOK","Paramètres CORBEILLE PM");
define("_PM_TRASHBOXNO","NE PAS MONTRER");
define("_PM_TRASHBOXYES","MONTRER");
define("_PM_POPUPOK","Paramètres POPUP PM");
define("_PM_POPUPNO","PAS DE POPUP");
define("_PM_POPUPYES","POPUP");
define("_PM_MAILOK","Paramètres notifications Mails PM");
define("_PM_MAILNO","Aucun Mail de Notification");
define("_PM_MAILYES","NOTIFICATION PAR MAIL");
define("_PM_RBOXMAX","Maximum de PM Reçu par utilisateur");
define("_PM_PBOXMAX","Maximum de PM Envoyé par utilisateur");
define("_PM_SAVECHANGES","SAUVEGARDE");
define("_PM_PMCONFIGUPDATED","Mettre a jour");
define("_PM_REJECTERROR","Echec!! Votre contact a activé le rejet de PM!!Raison du Rejet:");
define("_PM_BLACKLISTERROR","Echec!! Vous êtes sur la liste noire de votre contact!!");
define("_PM_PBOXMAXERROR","Echec!! Vous avez atteint la limite d'envoi Maximum! Supprimé des PMs dans la boîte d'envoi");
define("_PM_RBOXMAXERROR","Echec!! Votre contact a atteint la limite Maximum de Réception! Votre contact ne peut pas recevoir de PM pour cette raison!");
define("_PM_FILTERERROR","Echec!! Le Sujet ou le Message de votre PM comporte des mots interdits par votre contact!");
define("_PM_MAILNOTIFY","%s-Vous avez un nouveau PM De %s");
define("_PM_MAILMESSAGE","Bonjour!nA Nouveau Message Reçu De %snnLe Titre du PM estn%snnVous pouvez voir le PM icin%snn-----------nVous recevez ce message car vous avez choisi d'être notifié lors de la réception d'u nouveau PMnnVous pouvez changer la Configuration de vos PMsn%snnMerci de ne pas répondre à ce messagenn---------nCordialement,n%sn%sn%s");
//Ver3.0 usersearch.php
define("_PM_AM_FINDUS","Trouvez votre Contact PM");
define("_PM_AM_AVATAR","Avatar");
define("_PM_AM_REALNAME","Nom Réel");
define("_PM_AM_REGDATE","Date d'inscription");
define("_PM_AM_EMAIL","Email");
define("_PM_AM_PM","PM");
define("_PM_AM_URL","URL");
define("_PM_AM_PREVIOUS","Précédent");
define("_PM_AM_NEXT","Suivant");
define("_PM_AM_USERSFOUND","%s utilisateur(s) trouvé(s)");
define("_PM_AM_NOFOUND","Aucun utilisateur trouvé");
define("_PM_AM_UNAME","Nom D'utilisateur");
define("_PM_AM_ICQ","Numéro ICQ");
define("_PM_AM_AIM","Adresse AIM");
define("_PM_AM_YIM","Adresse YIM");
define("_PM_AM_MSNM","Adresse MSN");
define("_PM_AM_LOCATION","Location");
define("_PM_AM_OCCUPATION","Occupation");
define("_PM_AM_INTEREST","Intérêt(s)");
define("_PM_AM_URLC","URL");
define("_PM_AM_SORT","Sortir par");
define("_PM_AM_ORDER","Ordre");
define("_PM_AM_LASTLOGIN","Dernière Connection");
define("_PM_AM_POSTS","Nombre de post");
define("_PM_AM_ASC","Classer du + Ancien au + Récent");
define("_PM_AM_DESC","Classer du + Récent au + Ancien");
define("_PM_AM_LIMIT","Nombre d'utilisateur par page");
define("_PM_AM_RESULTS""Résultats de la Recherche");
define("_PM_AM_USERID","Contact ID");
define("_PM_AM_USERNAME","Nom de l'utilisateur");
define("_PM_AM_NOMATCH","Aucun Résultat! 0 utilisateur trouvé!Merci de rééssayer");
define("_PM_AM_SELECTCOPY","Copier/Coller");
define("_PM_AM_AUTO","(Les données seront transférées automatiquement!!)");
define("_PM_AM_DOSELECTCOPY""Cliquez Sélectionner/Copier!!");

//WANISYS.NET PM HACK3.1
define("_PM_EDITPMCONFIGADMIN","Editer Configuration PM(Admin)");
define("_PM_UIDUNAMEUNMATCH","Echec!! uid ne correspond pas à l'uname!!");

//WANISYS.NET PM HACK3.5
define("_PM_GROUPPMLIMIT","GroupePM Limitation(Par Mois)");
define("_PM_GROUPPMLIMITNOW","Statut du  GroupPM Envoyé");
define("_PM_GROUPPMLIMITSTART","GroupPM Envoi commencé le");
define("_PM_NOPMGROUP","Echec! Vous n'avez pas de PM-Group");
define("_PM_GROUPPMLIMITERROR","Echec! Vous avez excédé votre GroupPM-Limite");
define("_PM_CLOSEWINDOW","Fermer cette fenêtre!");
define("_PM_MYGROUPLIST","Ma Liste de Groupe");
define("_PM_MYPMGROUPLIST","Ma Liste Groupe-PM");
define("_PM_GROUPPMADMINOK","GroupePM au Groupe Admin");
define("_PM_GROUPPMADMINOKNO","Non autorisé GroupePM au Groupe Admin");
define("_PM_GROUPPMADMINOKYES","Autorisé GroupePM au Groupe Admin");
define("_PM_GROUPPMMYGROUPOK","GroupePM au MES Groupes");
define("_PM_GROUPPMMYGROUPOKNO","Non autorisé GroupePM au MES Groupes");
define("_PM_GROUPPMMYGROUPOKYES","Autorisé GroupePM au MES Groupes");
define("_PM_GROUPPMRUSERGROUPOK","GroupePM au Groupe Utilisateurs Enregistrés");
define("_PM_GROUPPMRUSERGROUPOKNO","Non autorisé GroupePM au Groupe Utilisateurs Enregistrés");
define("_PM_GROUPPMRUSERGROUPOKYES","Autorisé GroupePM au Groupe Utilisateurs Enregistrés");
define("_PM_PMGROUPLIST","Selectionner PMGROUPes autorisés pour les utilisateurs");
define("_PM_GROUPNOEXIST","Le groupe sélectionné n'existe pas dans la base de donnée.");
define("_PM_SENDSUCCESS","Envoi avec succès: ");
define("_PM_SENDFAILURE","Echec de l'envoi: ");
define("_PM_GROUPSEND","Groupe-Envoi");
define("_PM_TOGROUP","Au (Groupe): ");

//WANISYS.NET PM HACK3.6
define("_PM_FORWARD","PM Suivi");
define("_PM_GROUPFORWARD","PM Groupe-Suivi");
define("_PM_PRINT","Imprimer le Message");

//WANISYS.NET PM HACK3.7
define("_PM_PRINTPM","Imprimer");
define("_PM_BACKUP","Télécharger");
define("_PM_BACKUP1","HTML");
define("_PM_BACKUP2","SQL");

//WANISYS.NET PM HACK3.8
define("_PM_AM_GROUP","Groupe Cible");
define("_PM_SHOWSTATUS","Montrer l'Etat");
define("_PM_EDITPMPOLICY","Editer PM Polices(Admin)");
define("_PM_RECEIVEBOXTOTAL","Total : %d PM(s) trouvé(s) dans Message(s) Reçu(s)");
define("_PM_POSTBOXTOTAL","Total : %d PM(s) trouvé(s) dans Message(s) Envoyé(s)");
define("_PM_RECEIVEBOXSEARCHTOTAL","Resultats : %d PM(s) trouvé(s) dans Message(s) Reçu(s)");
define("_PM_POSTBOXSEARCHTOTAL","Resultats : %d PM(s) trouvé(s) dans Message(s) Envoyé(s)");
define("_PM_RECEIVEBOX","RECEPTION");
define("_PM_POSTBOX","ENVOI");
define("_PM_EMPTYBOX","Boîte vide");
define("_PM_PERCENT","Total/Limite(%)");
define("_PM_BOX","Boîte");
define("_PM_RBOXSTATUS","[Status des Boîtes Réceptions]");
define("_PM_PBOXSTATUS","[Status des Boîtes D'envoi]");
define("_PM_CONFIRMTEXT","Voulez vous réellement vider cette Boîte?");
define("_PM_EMPTIED","La Boîte a été vidé");

//WANISYS.NET PM HACK3.9
define("_PM_TYPE2","PM Type");
define("_PM_TYPE2NORMAL","Normal");
define("_PM_TYPE2URGENT","Urgent");
define("_PM_TYPE2ENCRYPTED","Crypté");
define("_PM_EDITPMUSERKEY","Editer PM Clé Utilisateur");
define("_PM_USERKEYTYPE","Type clé");
define("_PM_USERALGTYPE","Type d'algorithme générant la Clé");
define("_PM_USERALGTYPE2","Hacher le Type d'algorithme");
define("_PM_USERPUBLICKEY","Clé publique");
define("_PM_USERDESCRIPTION","Description(Comment utiliser)");
define("_PM_USERKEYUPDATED","Mis a jour");
define("_PM_USERKEYNOEXIST","La Clé-Info de l'utlisateur sélectionné n'existe pas dans la base de données. Peut être que la Clé-Info n'est pas encore enregistré!!");
define("_PM_USERKEYINFO","PM Utilisateur Clé-Info");
define("_PM_USERKEYSEARCH","PM Utilisateur Clé Recherche");
define("_PM_USERKEYSEARCHS","Recherche Clé");
define("_PM_MESSAGESIGC","Msg Signature: ");
define("_PM_DOWNTOCHECK","Téléchargé le Message en format texte");

//WANISYS.NET PM HACK4.0
define("_PM_EDITPMSYSTEMCONFIGADMIN","Créer PM Systeme Polices(Admin)");
define("_PM_FUNCTIONON","ON^^Utiliser cette fonction!!");
define("_PM_FUNCTIONOFF","OFF^^Ne pas utiliser cette fonction!!");
define("_PM_PMPARTNERSEARCHSELECT","Mode de recherche PM Contact");
define("_PM_PMPARTNERSEARCHMODE0","Ancienne méthode sélectionné par l'utilisateur^^");
define("_PM_PMPARTNERSEARCHMODE1","Recherche POPUP du contact PM(Pas de Lecture Seule)");
define("_PM_PMPARTNERSEARCHMODE2","Recherche POPUP du contact PM(Lecture Seule)");
define("_PM_PMCONFIGOK","Configuration Fonctions PM");
define("_PM_GROUPPMOK","GroupePM(GPM) Fonction");
define("_PM_PMUSERKEYOK","PM clé-utilisateur(PKI) Fonction");
define("_PM_PMTYPEOK","PM fonction Type");
define("_PM_PMBACKUPOK","PM Fonction restauration");
define("_PM_PMPRINTOK","PM Fonction imprimer");
define("_PM_PMPDFOK","PM Fonction PDF");
define("_PM_PMBUDDYOK","PM Fonction Buddy");
define("_PM_PMHELPOK","PM Fonction Aide");
define("_PM_PMPRBOXOK","PM Envoi/Réception Boîte");
define("_PM_PMLITEOK","PM envoyé(pmlite.php) Fonction");
define("_PM_PMPOLICYOK","PM Fonctions Polices(ex:activer les filtres)");
define("_PM_GROUPPMPOLICYOK","GroupePM Polices Fonction(ex:PM-Groupe)");
define("_PM_FUNCTIONOFFMODE","Cette fonction est maintenant en mode off(par l'Admin). Merci de contacter l'Admin!!");
define("_PM_EDITPMCONFIGHELP1","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No1@pmsg.php)");
define("_PM_EDITPMCONFIGHELP2","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No2@pmsg.php)");
define("_PM_EDITPMCONFIGHELP3","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No3@pmsg.php)");
define("_PM_EDITPMCONFIGHELP4","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No4@pmsg.php)");
define("_PM_EDITPMCONFIGHELP5","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No5@pmsg.php)");
define("_PM_EDITPMCONFIGHELP6","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No6@pmsg.php)");
define("_PM_EDITPMCONFIGHELP7","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No7@pmsg.php)");
define("_PM_EDITPMCONFIGHELP8","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No8@pmsg.php)");
define("_PM_EDITPMCONFIGHELP9","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No9@pmsg.php)");
define("_PM_EDITPMCONFIGHELP10","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No10@pmsg.php)");
define("_PM_EDITPMCONFIGHELP11","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No11@pmsg.php)");
define("_PM_EDITPMCONFIGHELP12","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No12@pmsg.php)");
define("_PM_EDITPMCONFIGHELP13","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No13@pmsg.php)");
define("_PM_EDITPMCONFIGHELP14","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No14@pmsg.php)");
define("_PM_EDITPMCONFIGHELP15","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No15@pmsg.php)");
define("_PM_EDITPMCONFIGHELP16","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No16@pmsg.php)");
define("_PM_EDITPMCONFIGHELP17","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No17@pmsg.php)");
define("_PM_EDITPMCONFIGHELP18","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No18@pmsg.php)");
define("_PM_EDITPMCONFIGHELP19","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No19@pmsg.php)");
define("_PM_EDITPMCONFIGHELP20","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No20@pmsg.php)");
define("_PM_EDITPMCONFIGHELP21","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No21@pmsg.php)");
define("_PM_EDITPMCONFIGHELP22","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No22@pmsg.php)");
define("_PM_EDITPMCONFIGHELP23","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No23@pmsg.php)");
define("_PM_EDITPMCONFIGHELP24","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No24@pmsg.php)");
define("_PM_SHOWSTATUSHELP1","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No1b@pmsg.php)");
define("_PM_SHOWSTATUSHELP2","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No2b@pmsg.php)");
define("_PM_SHOWSTATUSHELP3","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No3b@pmsg.php)");
define("_PM_SHOWSTATUSHELP4","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No4b@pmsg.php)");
define("_PM_SHOWSTATUSHELP5","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No5b@pmsg.php)");
define("_PM_VIEWPMSGHELP1","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No1c@pmsg.php)");
define("_PM_VIEWPMSGHELP2","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No2c@pmsg.php)");
define("_PM_VIEWPMSGHELP3","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No3c@pmsg.php)");
define("_PM_VIEWPMSGHELP4","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No4c@pmsg.php)");
define("_PM_VIEWPMSGHELP5","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No5c@pmsg.php)");
define("_PM_VIEWPMSGHELP6","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No6c@pmsg.php)");
define("_PM_VIEWPMSGHELP7","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No7c@pmsg.php)");
define("_PM_VIEWPMSGHELP8","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No8c@pmsg.php)");
define("_PM_VIEWPMSGHELP9","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No9c@pmsg.php)");
define("_PM_VIEWPMSGHELP10","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No10c@pmsg.php)");
define("_PM_VIEWPMSGHELP11","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No11c@pmsg.php)");

//WANISYS.NET PM HACK4.1
define("_PM_WRONGTICKET","Echec!! Vous n'avez pas le bon Ticket-PM!");
define("_PM_FUNCTIONSTATUS","[Etat des fonctions systèmes PM]");
define("_PM_SHOWSTATUSHELP6","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No6b@pmsg.php)");
define("_PM_SHOWSTATUSHELP7","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No7b@pmsg.php)");
define("_PM_SHOWSTATUSHELP8","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No8b@pmsg.php)");
define("_PM_SHOWSTATUSHELP9","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No9b@pmsg.php)");
define("_PM_SHOWSTATUSHELP10","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No10b@pmsg.php)");
define("_PM_SHOWSTATUSHELP11","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No11b@pmsg.php)");
define("_PM_SHOWSTATUSHELP12","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No12b@pmsg.php)");
define("_PM_SHOWSTATUSHELP13","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No13b@pmsg.php)");
define("_PM_SHOWSTATUSHELP14","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No14b@pmsg.php)");
define("_PM_SHOWSTATUSHELP15","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No15b@pmsg.php)");
define("_PM_SHOWSTATUSHELP16","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No16b@pmsg.php)");
define("_PM_SHOWSTATUSHELP17","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No17b@pmsg.php)");
define("_PM_SHOWSTATUSHELP18","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No18b@pmsg.php)");
define("_PM_SHOWSTATUSHELP19","Pas encore d'aide^^Admin!Merci d'écrire votre Aide ou Taper^^(No19b@pmsg.php)");
define("_PM_STATUS","Statut");
define("_PM_FUNCTION","Fonction");

//WANISYS.NET PM HACK4.2
define("_PM_PDF","Mettre le message dans un PDF");
define("_PM_PDFPM","PDF");

//WANISYS.NET PM HACK4.5
define("_PM_SELECT_FORMTYPE","Sélectionner votre format préféré");
define("_PM_SELECT_FORMTYPES","Sélectionner les types de format autorisés pour les Ultilasateurs");
define("_PM_FORM_COMPACT","Compact");
define("_PM_FORM_DHTML","DHTML");
define("_PM_FORM_SPAW","Spaw Editeur");
define("_PM_FORM_HTMLAREA","HTMLArea");
define("_PM_FORM_FCK","FCK Editeur");
define("_PM_FORM_KOIVI","Koivi Editeur");
define("_PM_FORM_TINYMCE","TinyMCE Editeur");
define("_PM_POSTINTERVAL","Définisser le temps d'interval entre chaque envoi consécutif");
define('_PM_POSTINTERVALERROR','Erreur! Le temps entre chaque envoi consécutif est défini à %d s.');
define("_PM_SELECT_VIEWMODE","Sélectionner le mode d'apercu des PMs");
define("_PM_VIEWMODE1","Mode d'aperçu Wysiwyg(HTML+Smiley+Xcode)");
define("_PM_VIEWMODE2","Montrer le mode d'aperçu1(Pas HTML+Smiley+Xcode+Image+br)");
define("_PM_VIEWMODE3","Montrer le mode d'aperçu2(HTML+Smiley+Xcode+Image+br)");
define("_PM_VIEWMODE4","Editer le mode de vue");
define("_PM_VIEWMODE5","Prévisualiser le mode de vue1(Pas HTML+Smiley+Xcode+Image+br)");
define("_PM_VIEWMODE6","Prévisualiser le mode de vue2(HTML+Smiley+Xcode+Image+br)");
define("_PM_VIEWMODE7","Mode d'aperçu du formulaire");
define("_PM_ADVANCEVIEW","PM options d'aperçu avancée");


++

126
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2005/3/15 17:51

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Upgraded to Ver4.6!!

Umm...
another upgrade --;;--;;(sorry!--;;)

Basically, this upgrade(4.5->4.6) is for PHP5 compatibility.
so....no new function added!! Just..some functions refined and replaced!!

(If you don't use PHP5 and have already customized Ver4.5 for your system and even are tired of too many upgrades,
you don't have to do this upgrade(4.5->4.6)...Just use Ver4.5...It's OK!!)


------Ver4.6-------(2005/3/16)
Basically, this upgrade(4.5->4.6) is for PHP5 compatibility.
>>Some codes rewritten for PHP5 compatibility!!
Yeah^^
Now...It works well on PHP5 !!!
>>Code Refinement!
Deprecated functions replaced with recommended functions!!
(ex: all makeTxxxxxx(), oopsxxxxxx() replaced with recommended functions!)
And some other codes refined and retuned!!
>>Tiny bugs fixed!!(viewpmsg.php, backuppmsg.php, usersearch.php)
(Just tiny bugs^^;; )
>>etc
French language file added!!(thanks,Hisoka!)
----------------------------

How to upgrade 4.5->4.6

1, No change on PM DB^^No touch^^
2, No change on language file(pmsg.txt) and no new file added!!
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.6!!
PS:
Basically, this upgrade(4.5->4.6) is for PHP5 compatibility.
so....no new function added!! Just..some functions refined!!

-----------------------------
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-46.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/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.6(+pmconfig+GroupPM+etc)
http://www.wanisys.net/data/wanipmhack46.zip
-DB-toolkit for DB-novice(only for New install/uninstall)
http://www.wanisys.net/data/wanipmhack_dbtoolkit46.zip
---------------------------------------------------

2005/3/16

From wani[wani@wanisys.net]

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

127
Hisoka
Re: XOOPS PM(Private Message)-Hack
  • 2005/3/16 12:18

  • Hisoka

  • Just popping in

  • Posts: 39

  • Since: 2005/3/2 1


What a pretty good work!
Windows are very nice now!
Thanks a lot for the hack!

EDIT: Just one Question. I would like to know where i can modify the name of the button we have when we send a PM to search the Name and the IUD of The PM Partner.

Thanks

128
wanikoo
Re: XOOPS PM(Private Message)-Hack
  • 2005/3/17 11:21

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Quote:

Hisoka wrote:
What a pretty good work!
Windows are very nice now!

I am happy that you like this PM-hack^^
Quote:

Hisoka wrote:
EDIT: Just one Question.
I would like to know where i can modify the name of the button we have when we send a PM to search the Name and the IUD of The PM Partner.

Umm...

In case of Ver4.6,
Find this code! (pmlite.php)
echo ._SEARCH."' onclick='javascript:openWithSelfMain("".XOOPS_URL."/usersearch.php","searchuser",".$usersearch_width.",".$usersearch_height.");' />";

and change this, value='"._SEARCH."'
(Umm... _SEARCH is defined in global.php )
-------------------
in case of 3.x-4.5
Find this code!(pmlite.php)
echo /usersearch.php","searchuser",550,430);' />";

and change this, value='Click'

PS:
From.. Ver4.6
You can easily customize the size of popup-windows!
(pmlite.php, viewpmsg.php, readpmsg.php )
ex:
pmlite.php
Find this code^^and customize them for your system.
//usersearch popup size value
$usersearch_width = 550;
$usersearch_height = 600;
And if you want to change the size and other attributes of Help popup,
please open/edit.../include/pm_functions.php
function pm_overDivEcho()
{
    echo 
".XOOPS_URL."/overlib_mini.js' type='text/javascript'>n";
    echo 
"
n";
}

function 
pm_overDivaction($pmhelptext$pmhelpcaption)
{
    return 
"return overlib('".$pmhelptext."'CAPTION'".$pmhelpcaption."'BELOWRIGHT);"  onmouseout='return nd();'>.XOOPS_URL."/images/pmhelp.png' /> ";
}

function 
pm_overDivaction2($pmhelptext$pmhelpcaption)
{
    return 
"onmouseover="return overlib('".$pmhelptext."'CAPTION'".$pmhelpcaption."'BELOWRIGHT);"  onmouseout='return nd();'";
}

129
Tabasco
Re: XOOPS PM(Private Message)-Hack
  • 2005/3/21 0:56

  • Tabasco

  • Quite a regular

  • Posts: 203

  • Since: 2003/12/26


I can do everything except, I don't understand what you mean here:

4, Open this file(/html/footer.txt)
Add the wanipmhack section(I mean ////////////////WANIPMHACK3.0) of footer.txt to footer.php.

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

130
kumzzy
Re: XOOPS PM(Private Message)-Hack
  • 2005/3/21 2:26

  • kumzzy

  • Just popping in

  • Posts: 78

  • Since: 2005/1/9 4


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

Login

Who's Online

431 user(s) are online (304 user(s) are browsing Support Forums)


Members: 0


Guests: 431


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