Neuinstallation

1. Module entpacken
2. Module hochladen
3. Module im Adminmenü installieren
4. setze CHMOD 777 für Ordner cache und cache/files und CHMOD 666 cache/config.php
5. Module im Adminmenü konfigurieren
6. Block für Registrierte User anzeigen
7. http://deineseite/modules/messages/admin/update.php ausführen (dadurch werden die PM's aus der alten Datenbank in die neue übernommen)
8. folgende Systemdateien müssen geändert werden damit beim Klick auf den PM Butten das richtige Module angesprochen wird.
   Die Zeilennummern beziehen sich auf die Original E-Xoops 1.05 Rev3 Version.


//*************************************************************************************
class/xoopspm.php
Zeile 67

$msg_id = $db->genId($db->prefix("priv_msgs")."_msg_id_seq");

ersetzen durch

$msg_id = $db->genId($db->prefix("private_msgs")."_msg_id_seq");


und Zeile 69

INSERT INTO ".$db->prefix("priv_msgs")." SET

ersetzen durch

INSERT INTO ".$db->prefix("private_msgs")." SET


//*************************************************************************************
modules/system/blocks/system_info.php
Zeile 50

$block['content'] .= "<a href='javascript:openWithSelfMain(\"".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$userinfo['uid']."\",\"pmlite\",360,300);'>";

ersetzen durch				

$block['content'] .= "<a href=".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$userinfo['uid'].">";


//*************************************************************************************
modules/system/admin/findusers/main.php
Zeile 424,425
 
echo "' /></a></td><td align='center'><a href='javascript:openWithSelfMain(\"".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$fuser->getVar("uid")."\",\"pmlite\",360,300);'><img src='".XOOPS_URL."/images/icons/pm.gif' border='0' alt='";
printf(_SENDPMTO,$fuser->getVar("uname", "E"));

ersetzen durch			

echo "' /></a></td><td align='center'><a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$fuser->getVar("uid")."'><img src='".XOOPS_URL."/images/icons/pm.gif' border='0' alt='";


//*************************************************************************************
class/xoopscomments.php
Zeile 383

$pm_image =  "<a href='javascript:openWithSelfMain(\"".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$poster->getVar("uid")."\",\"pmlite\", 360, 300);'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->getVar("uname", "E"))."' /></a>";
		
ersetzen durch

$pm_image =  "<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$poster->getVar("uid")."'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->getVar("uname", "E"))."' /></a>";
	

//************************************************************************************
modules/xoopsmembers/index.php
zeile361,362,363 daktiv

echo "<a href='javascript:openWithSelfMain(\"".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$fuser->getVar("uid")."\",\"pmlite\",420,330);'><img src='".XOOPS_URL."/images/icons/pm.gif' border='0' alt='";
printf(_SENDPMTO,$fuser->getVar("uname", "E"));
echo "' /></a>";

ersetzen durch
				
echo "<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$fuser->getVar("uid")."'><img src='".XOOPS_URL."/images/icons/pm.gif' border='0' alt=''' /></a>";
	

//************************************************************************************
modules/newbb/class/class.forumposts.php
Zeile 877

$pm_image =  "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$poster->uid()."', 'pmlite', 360, 300);\"><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->uname())."' /></a>";

erstzen durch
	
$pm_image =  "<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$poster->uid()."'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->uname())."' /></a>";


//************************************************************************************
modules/system/blocks/system_user.php

Zeile   33 - 79	deaktivieren


//************************************************************************************
userinfo.php
Zeile 38

echo "<td><input type='button' class='button' value='"._US_INBOX."' onclick=\"location='viewpmsg.php'\" /></td>";

ersetzen durch

echo "<td><input type='button' class='button' value='"._US_INBOX."' onclick=\"location='modules/messages/'\" /></td>";

und Zeile 112

echo "<a href='javascript:openWithSelfMain(\"".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$thisUser->getVar("uid")."\", \"pmlite\", 360, 290);'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $thisUser->getVar("uname"))."' />";

ersetzen durch

echo "<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$thisUser->getVar("uid")."'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $thisUser->getVar("uname"))."' />";
		



//************************************************************************************

Zusätzlich installierte Module

//************************************************************************************
Module newbb_plus

modules/newbb_plus/class/class.forumpost.php
Zeile 988

$pm_image =  "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$poster->uid()."', 'pmlite', 360, 300);\"><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->uname())."' /></a>";

ersetzen durch
		
$pm_image =  "<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$poster->uid()."'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->uname())."' /></a>";


//***********************************************************************************
xtremuserguestbook
index.php
Zeile 181

$pm_image =  "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$poster->uid()."','pmlite',360,300);\"><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO,$poster->uname())."' /></a>";
              
ersetzen durch

$pm_image =  "<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$poster->uid()."'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->uname())."' /></a>";


und sign.php
Zeile 127

$pm_image =  "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$poster->uid()."','pmlite',360,300);\"><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO,$poster->uname())."' /></a>";
              
ersetzen durch

$pm_image =  "<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$poster->uid()."'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->uname())."' /></a>";


//************************************************************************************	
directfriends
home.php
Zeile 116

echo "<a href='javascript:openWithSelfMain(\"".$xoopsConfig['xoops_url']."/pmlite.php?send2=1&amp;to_userid=".$zuid."\",\"pmlite\",450,370);'>"._MF_FRIENDSLIST_SENDPM."</a>";

ersetzen durch

echo "<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=$zuid'>"._MF_FRIENDSLIST_SENDPM."</a>";

blocks/myfriends.php
Zeile 79 

$block['content'].="<a href='javascript:openWithSelfMain(\"".$xoopsConfig['xoops_url']."/pmlite.php?send2=1&amp;to_userid=".$uid."\",\"pmlite\",450,370);'>".ucfirst($uname)."</a>";


ersetzen durch

$block['content'].="<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=$uid'>".ucfirst($uname)."</a>";


//***************************************************************************************
Memberlist
meberlist/index.php

alte Zeilen:
echo "<a href='javascript:openWithSelfMain("".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$userinfo->uid()."","pmlite",360,300);'>";
echo "<img src='".XOOPS_URL."/images/icons/pm.gif' border='0' alt='";
printf(_SENDPMTO,$userinfo->uname("E"));

neue Zeilen:
echo " <a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$userinfo->getVar("uid")."'><img src='".XOOPS_URL."/images/icons/pm.gif' border='0' alt='";

//*********************************************************************************+





Update 1.0 -> 1.2
- alle Dateien hochladen
- http://euredomain/modules/messages/_update/update.php ausführen
- Module im Adminmenü updaten






//****************************************************************************************
New install

1. Module unzip
2. Module upload
3. Module install in the Adminmenue
4. set for CHMOD 777 for files cache and cache/files and CHMOD 666 cache/config.php
5. Modules in the Adminmenue configure
6. Block for registered user indicate
7. run http://yoursite/modules/messages/admin/update.php (thus the PM's from the old data base is transferred to the new)
8. the following system files must be changed thereby with click on the PM Butten correct modules are addressed.
  The line numbers refer to the original e-Xoops 1,05 Rev3 version.


//*************************************************************************************
class/xoopspm.php
Line 67

$msg_id = $db->genId($db->prefix("priv_msgs")."_msg_id_seq");

replace through

$msg_id = $db->genId($db->prefix("private_msgs")."_msg_id_seq");


and Line 69

INSERT INTO ".$db->prefix("priv_msgs")." SET

replace through

INSERT INTO ".$db->prefix("private_msgs")." SET


//*************************************************************************************
modules/system/blocks/system_info.php
Line 50

$block['content'] .= "<a href='javascript:openWithSelfMain(\"".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$userinfo['uid']."\",\"pmlite\",360,300);'>";

replace through			

$block['content'] .= "<a href=".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$userinfo['uid'].">";


//*************************************************************************************
modules/system/admin/findusers/main.php
Line 424,425
 
echo "' /></a></td><td align='center'><a href='javascript:openWithSelfMain(\"".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$fuser->getVar("uid")."\",\"pmlite\",360,300);'><img src='".XOOPS_URL."/images/icons/pm.gif' border='0' alt='";
printf(_SENDPMTO,$fuser->getVar("uname", "E"));

replace through			

echo "' /></a></td><td align='center'><a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$fuser->getVar("uid")."'><img src='".XOOPS_URL."/images/icons/pm.gif' border='0' alt='";


//*************************************************************************************
class/xoopscomments.php
Line 383

$pm_image =  "<a href='javascript:openWithSelfMain(\"".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$poster->getVar("uid")."\",\"pmlite\", 360, 300);'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->getVar("uname", "E"))."' /></a>";
		
replace through

$pm_image =  "<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$poster->getVar("uid")."'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->getVar("uname", "E"))."' /></a>";
	

//************************************************************************************
modules/xoopsmembers/index.php
Line 361,362,363 daktiv

echo "<a href='javascript:openWithSelfMain(\"".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$fuser->getVar("uid")."\",\"pmlite\",420,330);'><img src='".XOOPS_URL."/images/icons/pm.gif' border='0' alt='";
printf(_SENDPMTO,$fuser->getVar("uname", "E"));
echo "' /></a>";

replace through
				
echo "<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$fuser->getVar("uid")."'><img src='".XOOPS_URL."/images/icons/pm.gif' border='0' alt=''' /></a>";
	

//************************************************************************************
modules/newbb/class/class.forumposts.php
Line 877

$pm_image =  "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$poster->uid()."', 'pmlite', 360, 300);\"><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->uname())."' /></a>";

replace through
	
$pm_image =  "<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$poster->uid()."'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->uname())."' /></a>";


//************************************************************************************
modules/system/blocks/system_user.php

Line   33 - 79	deaktivieren


//************************************************************************************
userinfo.php
Line 38

echo "<td><input type='button' class='button' value='"._US_INBOX."' onclick=\"location='viewpmsg.php'\" /></td>";

replace through

echo "<td><input type='button' class='button' value='"._US_INBOX."' onclick=\"location='modules/messages/'\" /></td>";

and Line 112

echo "<a href='javascript:openWithSelfMain(\"".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$thisUser->getVar("uid")."\", \"pmlite\", 360, 290);'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $thisUser->getVar("uname"))."' />";

replace through

echo "<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$thisUser->getVar("uid")."'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $thisUser->getVar("uname"))."' />";
		

//************************************************************************************

Zusätzlich installierte Module

//************************************************************************************
Module newbb_plus

modules/newbb_plus/class/class.forumpost.php
Line 988

$pm_image =  "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$poster->uid()."', 'pmlite', 360, 300);\"><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->uname())."' /></a>";

replace through
		
$pm_image =  "<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$poster->uid()."'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->uname())."' /></a>";


//***********************************************************************************
xtremuserguestbook
Line 181

$pm_image =  "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$poster->uid()."','pmlite',360,300);\"><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO,$poster->uname())."' /></a>";
              
replace through

$pm_image =  "<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$poster->uid()."'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->uname())."' /></a>";


and sign.php
Line 127

$pm_image =  "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$poster->uid()."','pmlite',360,300);\"><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO,$poster->uname())."' /></a>";
              
replace through

$pm_image =  "<a href='".XOOPS_URL."/modules/messages/pmlite.php?send=1&to_userid=".$poster->uid()."'><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO, $poster->uname())."' /></a>";


//************************************************************************************	
	
Update 1.0 -> 1.2
- Module upload
- run http://euredomain/modules/messages/_update/update.php 
- Modul in Adminmenü updaten					