Posts Tagged ‘Customization’
phpBB 3 Template Customization
Disable the cache
ACP -> General -> Server configuration -> Load settings -> General options -> Recompile stale style components
phpBB Style Customization
1. Make a copy of the subSilver directory
Make a copy of the template/subSilver direcotory to template/xxx directory.
2. Rename subSilver.cfg and subSilver.css
Rename the subSIlver.cfg and subSilver.css to xxx.cfg and xxx.css.
3. Replace subSilver to xxx in template files
Find all the template files contain subSilver:
find subSilver template/xxx -r
And replace all the subSilver to xxx.
4. Modify these files to quick customize the template
xxx.css
overall_header.tpl
overall_footer.tpl
index_body.tpl
Zen Cart Template Customization
Create a new Template
Let’s call this template “xxx”.
1. Make a new directory: includes/templates/xxx
2. Copy the file includes/templates/templates_default/template_info.php to includes/templates/xxx/template_info.php and edit it.
3. Copy the css folder and files from includes/templates/templates_default/css/ to includes/templates/xxx/css
4. Create these additional folder in includes/templates/xxx: common images sideboxes templates
5. Go to Admin - Tools - Template Selection and click the Edit button. Then select your new template and click Update
6. Go to Admin - Tools - Layout Boxes Controller and click the Reset button.
Customization
Edit these files to quick customize your template:
common/tpl_header.php
common/tpl_footer.php
common/tpl_main_page.php
css/stylesheet.css
Other Important Files
templates/tpl_index_default.php
templates/tpl_index_categories.php
templates/tpl_index_product_list.php
templates/tpl_modules_product_listing.php
templates/tpl_product_info_display.php
templates/tpl_page_defaut.php : Template for ezPage
/includes/modules/new_products.php
templates/tpl_shopping_cart_default.php
/email/email_template_*.html : email template
Get URLs
Get the Zen Cart root URL:
echo HTTP_SERVER . DIR_WS_CATALOG . "images/xxx.png";
Get the template URL:
echo $template->get_template_dir('.css', DIR_WS_TEMPLATE, $current_page_base, 'css') . '/stylesheet.css';
Or:
echo DIR_WS_TEMPLATE . '/css/stylesheet.css';
Determine the home page
if ($body_id == 'indexHome') {
echo "This is home page";
}
Include a sidebox in template file
$column_box_default='tpl_box_default_single.php';
$box_id = 'xxx';
require(DIR_WS_MODULES . 'sideboxes/googletrans.php');