/*************************Product owner info********************************
*
* author : Modzzz
* contact info : dolphinmods@gmail.com
Mod Support Site http://www.dolphinmods.com
*
/*************************Product info**************************************
*
* Membership Badge Mod
* ------------------------
* version : 2.0.4
* compability : Dolphin 7.3
* License type : Custom
*
* IMPORTANT: This is a commercial product made by Modzzz and cannot be modified for other than personal use.
* This product cannot be redistributed for free or a fee without written permission from Modzzz.
*
* Upgrade possibilities : All future upgrades will be added to this product package
*
***************************************************************************/
============================== [BEGIN] PACKAGE INSTALLATION ======================
If you have multiple languages, see readme_languages.txt
a) Upload the contents of "modules" folder into the existing "modules" folder on your dolphin root.
b) Login to your Admin Panel. Go to "Modules" and click on "Add & Manage".
c) Look in the list of "Not Installed Modules" for "Membership Badge".
d) Select it and click "Install".
e) Change permissions for the following folders to 777:
/modules/modzzz/badge/media/images
ALSO, MAKE THE FILE CHANGES BELOW. If you have not made any other customization to these files,
the already updated files can be found in the "Badge_files" folder.
*********************************************************************
In /templates/base/scripts/BxBaseFunctions.php (If you have custom template, you may also need to make the change to templates/your_template/scripts/BxTemplFunctions.php)
Find :
return $GLOBALS['oSysTemplate']->parseHtmlByName($bCouple ? 'thumbnail_couple' . $sTmplSfx . '.html' : 'thumbnail_single' . $sTmplSfx . '.html', array(
Just above, Add :
/* [begin] membership level icon (modzzz)*/
if(getParam('modzzz_badge_activated')=='on' && getParam('modzzz_badge_overlay_activated')=='on'){
$oBadge = BxDolModule::getInstance('BxBadgeModule');
$aIconArray = $oBadge->getBadge($iId, $sType);
}else{
$aIconArray = array(
'condition' => false,
'content' => array()
);
}
/* [end] membership level icon (modzzz)*/
Find :
'usr_thumb_title0' => $sUserTitle,
Just above, Add :
'bx_if:levelicon' => $aIconArray,
In these files :
/templates/base/thumbnail_couple_plain.html
/templates/base/thumbnail_single_plain.html
/templates/base/thumbnail_couple.html
/templates/base/thumbnail_single.html
( If you have a custom template, these files may also exist in /templates/your_template/ )
Find :
Just below, Add :
In templates/base/css/common.css (If you have a custom template then you also need to make change to templates/your_template/css/common.css)
At the bottom, Add :
/* [begin] membership level icon (modzzz)*/
div.thumbnail_image img.sys-member-level {
border:0px;
background-color: transparent;
}
img.sys-member-level {
position:absolute;
}
div.thumbnail_image_couple img.sys-member-level {
background-color: transparent;
}
/* [end] membership level icon (modzzz)*/
============================== [END] PACKAGE INSTALLATION ========================
============================== [BEGIN] PACKAGE UN-INSTALLATION ======================
Login to your Admin Panel.
Go to "Modules" and click on "Add & Manage".
Look in the list of "Installed Modules" for "Membership Badge".
Select it and click "Uninstall"
============================== [END] PACKAGE UN-INSTALLATION ========================
If you have any issues, please contact me immediately at dolphinmods@gmail.com