How to integrate a new module on Evo Wall How to – ver. 1.0 This is a quick guide that explain how to add 3th party modules to the Evo Wall. Before to start 1) make sure the module you want add to the wall supports the spy notifications 2) create a full backup of your database and of the files of EvoWall To show the procedure we want use an example that explains as to integrate a module of the seller MODZZZ. The module we’ll add it’s Modzzz Pets. This module is already integrated on EvoWall (from the version 1.1.4), and here we’ll show hot we have get this result. STEP 1 1) Open basecore.php 2) Copy the code part that refer to one of existent Modzzz module, for example Modzzz Clubs (if you want add a new module of Modzzz, otherwise you can use the code of basecore for the Boonex Groups posts. This is for example the code for the module Modzzz Clubs: // MODZZZ CLUB elseif (($row['lang_key']=='_modzzz_club_spy_post' OR $row['lang_key']=='_modzzz_club_spy_post_change' OR $row['lang_key']=='_modzzz_club_spy_join' OR $row['lang_key']=='_modzzz_club_spy_rate' OR $row['lang_key']=='_modzzz_club_spy_comment' OR $row['lang_key']=='_ibdw_evowall_bx_clubs_add_condivisione') and ($funclass->ActionVerify($profilemembership,"EVO WALL - Groups"))) {//modzzz club inherits the settings of boonex groups for memberships allowed and sharing key for EVO Wall if ($funclass->checkprivacyevo($row['sender_id'],$accountid,'allowview')) { if ($row['lang_key']=='_modzzz_club_spy_post') $stampa=_t("_ibdw_evowall_clubs_add"); elseif ($row['lang_key']=='_modzzz_club_spy_post_change') $stampa=_t("_ibdw_evowall_clubs_editaw"); elseif ($row['lang_key']=='_modzzz_club_spy_join') $stampa=_t("_ibdw_evowall_clubs_join"); elseif ($row['lang_key']=='_modzzz_club_spy_rate') $stampa=_t("_ibdw_evowall_clubs_rate"); elseif ($row['lang_key']=='_modzzz_club_spy_comment') $stampa=_t("_ibdw_evowall_clubs_comment"); elseif ($row['lang_key']=='_ibdw_evowall_bx_clubs_add_condivisione') $stampa=_t("_ibdw_evowall_bx_clubs_add_condivisione"); $trovaslash=substr_count($unserialize[entry_url],"/"); $verificauri=explode ("/",$unserialize[entry_url]); $verificauri=$verificauri[$trovaslash]; $querygruppo="SELECT title,thumb,modzzz_club_main.desc,uri,id,status,allow_view_club_to FROM modzzz_club_main WHERE uri='$verificauri'"; $resultgruppo=mysql_query($querygruppo); $rowgruppo=mysql_fetch_row($resultgruppo); $okvista=$funclass->privstate($rowgruppo['6'],'clubs',$row['sender_id'],$accountid,$num_fave,'view_clubs'); if($rowgruppo[0]==FALSE) {$dlt="DELETE FROM bx_spy_data WHERE id=".$row['id'];$dlt_exe=mysql_query($dlt); $tmpx++;} elseif($rowgruppo[5]=='pending') $tmpx++; elseif ($okvista==1) { $queryfotogruppo="SELECT ID,Ext,Title,Hash FROM bx_photos_main WHERE ID=".$rowgruppo[1]; $resultfotogruppo=mysql_query($queryfotogruppo); $rowfotogruppo=mysql_fetch_row($resultfotogruppo); $idswiax=$row[id]; echo $parteintroduttiva; $descrizionet=$funclass->tagliaz($funclass->cleartesto($rowgruppo[2]),300); echo '
'; if(($funclass->checkprivacyevo($row['sender_id'],$profileid,'allowshare')) OR (($inviatore==$accountid OR isAdmin() OR isModerator()) AND $accountid!=0)) { if($verifica_partent==0) { echo '
'; //start bt list di evo if (($inviatore==$accountid OR isAdmin() OR isModerator()) AND $accountid!=0) include 'inc_eliminab.php'; if($funclass->checkprivacyevo($row['sender_id'],$profileid,'allowshare')) { /**Share System**/ include('bt_condivisione_1.php'); $parametri_photo['profile_link']=BX_DOL_URL_ROOT.$aInfomembers['NickName']; $parametri_photo['profile_nick']=$aInfomembers['NickName']; $parametri_photo['entry_url']=$unserialize['entry_url']; $parametri_photo['entry_title']=$unserialize['entry_title']; $params_condivisione=serialize($parametri_photo); $bt_condivisione_params['1']=$accountid; //Sender $bt_condivisione_params['2']=$row['sender_id']; //Recipient $bt_condivisione_params['3']='_ibdw_evowall_bx_clubs_add_condivisione'; //Lang_Key_share $bt_condivisione_params['4']=readyshare($params_condivisione); //Params include('bt_condivisione_2.php'); /**End Share System**/ } echo '
'; //div che chiude il bt_list di evo if (($inviatore==$accountid OR isAdmin() OR isModerator()) AND $accountid!=0) include 'bt_external_eliminab.php'; if($funclass->checkprivacyevo($row['sender_id'],$profileid,'allowshare')) include 'bt_external_share.php'; } } $nomegruppo=$unserialize['entry_title']; $nomegruppo=$funclass->tagliaz($nomegruppo,80); $realname=$funclass->TipoUtente($row['sender_id'],$usernameformat); if($usernameformat=='Nickname') {$stampa=str_replace('{profile_nick}',$unserialize['profile_nick'],$stampa);} else $stampa=str_replace('{profile_nick}',$realname,$stampa); $stampa=str_replace('{profile_link}',$unserialize['profile_link'],$stampa); $stampa=str_replace('{entry_url}',$unserialize['entry_url'],$stampa); $stampa=str_replace('{entry_title}',$nomegruppo,$stampa); echo $stampa; echo '
'; if ($rowfotogruppo[3]!=FALSE) {echo '
';} echo '
'; if((($funclass->ActionVerify($profilemembership,"EVO WALL - Comments view")) or ($funclass- >ActionVerify($profilemembership,"EVO WALL - Like view")) or ($funclass->ActionVerify($profilemembership,"EVO WALL - Like add")) or ($funclass->ActionVerify($profilemembership,"EVO WALL - Comments add"))) and (($funclass->checkprivacyevo($row['sender_id'],$profileid,'allowcomment')) or ($funclass->checkprivacyevo($row['sender_id'],$profileid,'allowlike'))) and ($verifica_partent==0)) $commentsarea='scomment.php'; else $commentsarea='justdate.php'; include ($commentsarea); if($verifica_partent!=0) echo hiddenlink_foto($row['id'],$row['date'],$GLOBAL['ultimoid'],$row['lang_key'],$row['recordsfound'],$row['sender_id'],$pa gina); echo '
'; if($verifica_partent!=0) echo '
'; } else $tmpx++; } else $tmpx++; } //END 3) Paste this code below. So you must see two time the same code (the first used for the copy and the second to edit for the new module Pets. 4) Editing of this code part (in red the changes): // MODZZZ PETS elseif (($row['lang_key']=='_modzzz_pets_spy_post' OR $row['lang_key']=='_modzzz_pets_spy_post_change' OR $row['lang_key']=='_modzzz_pets_spy_rate' OR $row['lang_key']=='_modzzz_pets_spy_comment' OR $row['lang_key']=='_ibdw_evowall_bx_pets_add_condivisione') and ($funclass->ActionVerify($profilemembership,"EVO WALL - Groups"))) {//modzzz pets inherits the settings of boonex groups for memberships allowed and sharing key for EVO Wall if ($funclass->checkprivacyevo($row['sender_id'],$accountid,'allowview')) { if ($row['lang_key']=='_modzzz_pets_spy_post') $stampa=_t("_ibdw_evowall_pets_add"); elseif ($row['lang_key']=='_modzzz_pets_spy_post_change') $stampa=_t("_ibdw_evowall_pets_editaw"); elseif ($row['lang_key']=='_modzzz_pets_spy_rate') $stampa=_t("_ibdw_evowall_pets_rate"); elseif ($row['lang_key']=='_modzzz_pets_spy_comment') $stampa=_t("_ibdw_evowall_pets_comment"); elseif ($row['lang_key']=='_ibdw_evowall_bx_pets_add_condivisione') $stampa=_t("_ibdw_evowall_bx_pets_add_condivisione"); $trovaslash=substr_count($unserialize[entry_url],"/"); $verificauri=explode ("/",$unserialize[entry_url]); $verificauri=$verificauri[$trovaslash]; $querygruppo="SELECT petname,thumb,modzzz_pets_main.desc,uri,id,status,allow_view_pet_to FROM modzzz_pets_main WHERE uri='$verificauri'"; $resultgruppo=mysql_query($querygruppo); $rowgruppo=mysql_fetch_row($resultgruppo); $okvista=$funclass->privstate($rowgruppo['6'],'pets',$row['sender_id'],$accountid,$num_fave,'view_pets'); if($rowgruppo[0]==FALSE) {$dlt="DELETE FROM bx_spy_data WHERE id=".$row['id'];$dlt_exe=mysql_query($dlt); $tmpx++;} elseif($rowgruppo[5]=='pending') $tmpx++; elseif ($okvista==1) { $queryfotogruppo="SELECT ID,Ext,Title,Hash FROM bx_photos_main WHERE ID=".$rowgruppo[1]; $resultfotogruppo=mysql_query($queryfotogruppo); $rowfotogruppo=mysql_fetch_row($resultfotogruppo); $idswiax=$row[id]; echo $parteintroduttiva; $descrizionet=$funclass->tagliaz($funclass->cleartesto($rowgruppo[2]),300); echo '
'; if(($funclass->checkprivacyevo($row['sender_id'],$profileid,'allowshare')) OR (($inviatore==$accountid OR isAdmin() OR isModerator()) AND $accountid!=0)) { if($verifica_partent==0) { echo '
'; //start bt list di evo if (($inviatore==$accountid OR isAdmin() OR isModerator()) AND $accountid!=0) include 'inc_eliminab.php'; if($funclass->checkprivacyevo($row['sender_id'],$profileid,'allowshare')) { /**Share System**/ include('bt_condivisione_1.php'); $parametri_photo['profile_link']=BX_DOL_URL_ROOT.$aInfomembers['NickName']; $parametri_photo['profile_nick']=$aInfomembers['NickName']; $parametri_photo['entry_url']=$unserialize['entry_url']; $parametri_photo['entry_title']=$unserialize['entry_title']; $params_condivisione=serialize($parametri_photo); $bt_condivisione_params['1']=$accountid; //Sender $bt_condivisione_params['2']=$row['sender_id']; //Recipient $bt_condivisione_params['3']='_ibdw_evowall_bx_pets_add_condivisione'; //Lang_Key_share $bt_condivisione_params['4']=readyshare($params_condivisione); //Params include('bt_condivisione_2.php'); /**End Share System**/ } echo '
'; //div che chiude il bt_list di evo if (($inviatore==$accountid OR isAdmin() OR isModerator()) AND $accountid!=0) include 'bt_external_eliminab.php'; if($funclass->checkprivacyevo($row['sender_id'],$profileid,'allowshare')) include 'bt_external_share.php'; } } $nomegruppo=$unserialize['entry_title']; $nomegruppo=$funclass->tagliaz($nomegruppo,80); $realname=$funclass->TipoUtente($row['sender_id'],$usernameformat); if($usernameformat=='Nickname') {$stampa=str_replace('{profile_nick}',$unserialize['profile_nick'],$stampa);} else $stampa=str_replace('{profile_nick}',$realname,$stampa); $stampa=str_replace('{profile_link}',$unserialize['profile_link'],$stampa); $stampa=str_replace('{entry_url}',$unserialize['entry_url'],$stampa); $stampa=str_replace('{entry_title}',$nomegruppo,$stampa); echo $stampa; echo '
'; if ($rowfotogruppo[3]!=FALSE) {echo '
';} echo '
'; if((($funclass->ActionVerify($profilemembership,"EVO WALL - Comments view")) or ($funclass->ActionVerify($profilemembership,"EVO WALL - Like view")) or ($funclass->ActionVerify($profilemembership,"EVO WALL - Like add")) or ($funclass->ActionVerify($profilemembership,"EVO WALL - Comments add"))) and (($funclass->checkprivacyevo($row['sender_id'],$profileid,'allowcomment')) or ($funclass->checkprivacyevo($row['sender_id'],$profileid,'allowlike'))) and ($verifica_partent==0)) $commentsarea='scomment.php'; else $commentsarea='justdate.php'; include ($commentsarea); if($verifica_partent!=0) echo hiddenlink_foto($row['id'],$row['date'],$GLOBAL['ultimoid'],$row['lang_key'],$row['recordsfound'],$row['sender_id'],$pa gina); echo '
'; if($verifica_partent!=0) echo '
'; } else $tmpx++; } else $tmpx++; } //END 5) Open the file config.php and at the end of the file, below the last variable, add this line $modzzzpets="on"; Nota: this means that you want enable the pets module integration. If you want disable this mod, you can change the value from “on” to “off”. 6) Open the file bt_condivisione_1.php Search this code part: if($row['lang_key']=='_modzzz_club_spy_post' OR $row['lang_key']=='_modzzz_club_spy_post_change' OR $row['lang_key']=='_modzzz_club_spy_join' OR $row['lang_key']=='_modzzz_club_spy_rate' OR $row['lang_key']=='_modzzz_club_spy_comment' OR $row['lang_key']=='_ibdw_evowall_bx_clubs_add_condivisione') { $titolo=$unserialize['entry_title']; $url=$unserialize['entry_url']; $immagine=BX_DOL_URL_ROOT.'m/photos/get_image/browse/'.$rowfotogruppo[3].'.'. $rowfotogruppo[1]; $descrizione=$rowgruppo[2]; } 7) Copy and paste it exactly below. 8) Editing of this code part (in red the changes) if($row['lang_key']=='_modzzz_pets_spy_post' OR $row['lang_key']=='_modzzz_pets_spy_post_change' OR $row['lang_key']=='_modzzz_pets_spy_rate' OR $row['lang_key']=='_modzzz_pets_spy_comment' OR $row['lang_key']=='_ibdw_evowall_bx_pets_add_condivisione') { $titolo=$unserialize['entry_title']; $url=$unserialize['entry_url']; $immagine=BX_DOL_URL_ROOT.'m/photos/get_image/browse/'.$rowfotogruppo[3].'.'. $rowfotogruppo[1]; $descrizione=$rowgruppo[2]; } 9) Open the file mqconditions.php Search and copy the line if ($modzzzpetitions=="on") {$conditions=$conditions.", '_modzzz_petitions_spy_post', '_modzzz_petitions_spy_post_change', '_modzzz_petitions_spy_join', '_modzzz_petitions_spy_rate', '_modzzz_petitions_spy_comment', '_ibdw_evowall_bx_petitions_add_condivisione'";} Then paste this code below 10) Editing of this code part (in red the changes) if ($modzzzpets=="on") {$conditions=$conditions.", '_modzzz_pets_spy_post', '_modzzz_pets_spy_post_change', '_modzzz_pets_spy_rate', '_modzzz_pets_spy_comment', '_ibdw_evowall_bx_pets_add_condivisione'";} 11) Open the file like_actions.php Search and copy the line: OR $fetch['lang_key']=='_modzzz_petitions_spy_post' OR $fetch['lang_key']=='_ibdw_evowall_bx_petitions_add_condivisione' Paste below with these changes: OR $fetch['lang_key']=='_modzzz_pets_spy_post' OR $fetch['lang_key']=='_ibdw_evowall_bx_pets_add_condivisione' Also search and copy the line: elseif($fetch['lang_key']=='_modzzz_petitions_spy_post' OR $fetch['lang_key']=='_ibdw_evowall_bx_petitions_add_condivisione') {$lang_string='_ibdw_evowall_notify_like_modzzz_petitions'; $url_element = $unserialize['entry_url'];} Paste below with these changes: elseif($fetch['lang_key']=='_modzzz_pets_spy_post' OR $fetch['lang_key']=='_ibdw_evowall_bx_pets_add_condivisione') {$lang_string='_ibdw_evowall_notify_like_modzzz_pets'; $url_element = $unserialize['entry_url'];} 12) Open the file comment.php Search and copy this line: OR $fetch_assoc['lang_key']=='_modzzz_petitions_spy_post' OR $fetch_assoc['lang_key']=='_ibdw_evowall_bx_petitions_add_condivisione' Paste it below with these changes: OR $fetch_assoc['lang_key']=='_modzzz_pets_spy_post' OR $fetch_assoc['lang_key']=='_ibdw_evowall_bx_pets_add_condivisione' Also search and copy this line: elseif($fetch_assoc['lang_key']=='_modzzz_petitions_spy_post' OR $fetch_assoc['lang_key']=='_ibdw_evowall_bx_petitions_add_condivisione') {$lang_string='_ibdw_evowall_notify_comment_modzzz_petitions'; $url_element = $unserialize['entry_url'];} Paste it below with these changes: elseif($fetch_assoc['lang_key']=='_modzzz_pets_spy_post' OR $fetch_assoc['lang_key']=='_ibdw_evowall_bx_pets_add_condivisione') {$lang_string='_ibdw_evowall_notify_comment_modzzz_pets'; $url_element = $unserialize['entry_url'];} 13) Open the language file (en.php for this example, but you must do the same if you have more than one language on your site) from the folder ibdw/evowall/install/langs Add these lines: '_ibdw_evowall_pets_add' => '{profile_nick} added the pet {entry_title}', '_ibdw_evowall_pets_editaw' => '{profile_nick} changed the pet {entry_title}', '_ibdw_evowall_pets_rate' => '{profile_nick} rated the pet {entry_title}', '_ibdw_evowall_pets_comment' => '{profile_nick} commented on the pet {entry_title}', '_ibdw_evowall_bx_pets_add_condivisione' => '{profile_nick} shared a pet {entry_title}', '_ibdw_evowall_notify_comment_modzzz_pets' => '{sender_p_nick} commented a pet', '_ibdw_evowall_notify_like_modzzz_pets' => '{sender_p_nick} like a pet of {recipient_p_nick}', 14) Upload all the files and recompile the languages for Evo Wall. IMPORTANT: This is an example of the integration for the module PETS of Modzzz. This module is already integrated, so you can follow this procedure to add another module.