Re: Responsive Apparel Boutique Template
Quote:
Originally Posted by
x8ox
If you wished to turn off the left hand column for the "contact us" and "terms & conditions" pages, find the following block of code
if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes _on_here,separated_by_commas,and_no_spaces')) ) {
$flag_disable_right = true;
}
and edit it to read
if (in_array($current_page_base,explode(",",'contact_us,conditions')) ) {
$flag_disable_left = true;
}
But i couldn't find that code i tried to add it to the global left column code
Thanks
Brian
You could add that code to your template/common/mainpage.php
Re: Responsive Apparel Boutique Template
Quote:
Originally Posted by
x8ox
I think these are related to the template rather than the system
How can i use a separate set of thumbnails for the listing pages
might have been earlier version i did it on in the past but im sure
i had a folder for sm small images in the image folder
Also how can i disable the left column on certain pages tried to
use the method for none over ride but no joy it could be me thou lol
If you wished to turn off the left hand column for the "contact us" and "terms & conditions" pages, find the following block of code
if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes _on_here,separated_by_commas,and_no_spaces')) ) {
$flag_disable_right = true;
}
and edit it to read
if (in_array($current_page_base,explode(",",'contact_us,conditions')) ) {
$flag_disable_left = true;
}
But i couldn't find that code i tried to add it to the global left column code
Thanks
Brian
If you do a search in the faqs section you will find a tutorial about image preparation basics ;)
You need to ad the code in the includes/templates/override/common/tpl_main_page.php file.
Thanks,
Anne
Re: Responsive Apparel Boutique Template
Quote:
Originally Posted by
picandnix
You could add that code to your template/common/mainpage.php
Yes that is correct, tpl_main_page.php ;)
Thanks,
Anne
Re: Responsive Apparel Boutique Template
Quote:
Originally Posted by
picaflor-azul
Yes that is correct, tpl_main_page.php ;)
Thanks,
Anne
That's the one! :wink:
Re: Responsive Apparel Boutique Template
Hello
Yes it's the tpl_main_page.php i tried to mod the code isn't the same as
the example i tried to add the code from
<?php
if (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
// global disable of column_left
$flag_disable_left = true;
}
if (!isset($flag_disable_left) || !$flag_disable_left) {
?>
<td id="navColumnOne" class="columnLeft" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">
<?php
/**
* prepares and displays left column sideboxes
*
*/
?>
<?php
if (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
// global disable of column_left
if (in_array($current_page_base,explode(",",'contact_us,conditions')) ) {
$flag_disable_left = true;
}
if (!isset($flag_disable_left) || !$flag_disable_left) {
?>
<td id="navColumnOne" class="columnLeft" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">
<?php
/**
* prepares and displays left column sideboxes
*
*/
?>
When searching the code i didn't find
$current_page_base,explode
Thanks
Brian
Re: Responsive Apparel Boutique Template
Quote:
Originally Posted by
x8ox
Hello
Yes it's the tpl_main_page.php i tried to mod the code isn't the same as
the example i tried to add the code from
<?php
if (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
// global disable of column_left
$flag_disable_left = true;
}
if (!isset($flag_disable_left) || !$flag_disable_left) {
?>
<td id="navColumnOne" class="columnLeft" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">
<?php
/**
* prepares and displays left column sideboxes
*
*/
?>
<?php
if (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
// global disable of column_left
if (in_array($current_page_base,explode(",",'contact_us,conditions')) ) {
$flag_disable_left = true;
}
if (!isset($flag_disable_left) || !$flag_disable_left) {
?>
<td id="navColumnOne" class="columnLeft" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">
<?php
/**
* prepares and displays left column sideboxes
*
*/
?>
When searching the code i didn't find
$current_page_base,explode
Thanks
Brian
The code is not already there, you need to add it ;)
Thanks,
Anne
Re: Responsive Apparel Boutique Template
Thank you Anne
I need to read up on the overide i've tried adding to the exsisting file
to no joy
In your earlier reply you mention /overide/ was this a hint as i dont
have that folder and was thinking do i need to create overide files for
the pages i require to overide
Thanks
Brian
Re: Responsive Apparel Boutique Template
Quote:
Originally Posted by
x8ox
Thank you Anne
I need to read up on the overide i've tried adding to the exsisting file
to no joy
In your earlier reply you mention /overide/ was this a hint as i dont
have that folder and was thinking do i need to create overide files for
the pages i require to overide
Thanks
Brian
I am sorry, I should have been more specific:
includes/templates/responsive_apparel_boutique/common/tpl_main_page.php
Thanks,
Anne
Re: Responsive Apparel Boutique Template
Quote:
Originally Posted by
x8ox
Thank you Anne
I need to read up on the overide i've tried adding to the exsisting file
to no joy
In your earlier reply you mention /overide/ was this a hint as i dont
have that folder and was thinking do i need to create overide files for
the pages i require to overide
Thanks
Brian
Look what I found when I searched for "if (in_array($current_page_base,explode" in the FAQ:
Can I turn off the left or right hand columns for some pages only?
http://www.zen-cart.com/content.php?...ome-pages-only
Re: Responsive Apparel Boutique Template
Hello
That's the faq i've been trying to implement
I know the file and it's location and the code
I just dont have any joy when i try to include
it into the global left section of tpl_main_page.php
It will be me im no php'er i understand code in general
Just not php if someone could help i'd be thankful
Thanks
Brian