Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
HelpMeSell
Ok, this section of code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
is supposed to make http://axlesforless.com/index.php automatically rewrite to
http://www.axlesforless.com/index.php, which is currently not happening,
So, I'd like you to try putting ONLY the above code into your root .htaccess (yes in public_html) and lets try to get that function working.
Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
jettrue
Ok, this section of code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
is supposed to make
http://axlesforless.com/index.php automatically rewrite to
http://www.axlesforless.com/index.php, which is currently not happening,
So, I'd like you to try putting
ONLY the above code into your root .htaccess (yes in public_html) and lets try to get that function working.
OK, I added the above and now I get errors for both with www or no www in the begining (and i can see it adding the www automatically)
Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
jettrue
First of all I want this background to show up on the page that is viewed when you click on this link http://oneposhshop.com/Shop and judging from the page source and the changes that I made to the "tpl_main_page.php" file that isn't the tpl_main_page.
The other thing I'm not clear on is, how do you, "create containers" in the tpl_main_page.php?
Here is what I did in the tpl_main_page.php,
Code:
<div id="mainWrapper">
<?php
/**
* prepares and displays header output
*
*/
require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
<div class="roundcont">
<div class="roundtop">
<img src="http://oneposhshop.com/Shop/includes/templates/Posh_by_Trois_Soeurs/Images/left_corner_bg.jpg" alt=""
width="15" height="15" class="corner"
style="display: none" />
</div>
<p><img src="http:/oneposhshop.com/Shop/includes/templates/Posh_by_Trois_Soeurs/Images/Trois Soeurs.gif"></p>
<div class="roundbottom">
<img src="http://oneposhshop.com/Shop/includes/templates/Posh_by_Trois_Soeurs/Images/bot_left_corner_bg.jpg" alt=""
width="15" height="15" class="corner"
style="display: none" />
</div>
</div></div>
<!-- bof breadcrumb -->
Is that how containers are created?
Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
HelpMeSell
OK, I added the above and now I get errors for both with www or no www in the begining (and i can see it adding the www automatically)
Try this instead:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yoursite\.com$ [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L]
1 Attachment(s)
Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
oneposhshop
First of all I want this background to show up on the page that is viewed when you click on this link
http://oneposhshop.com/Shop and judging from the page source and the changes that I made to the "tpl_main_page.php" file that isn't the tpl_main_page.
The other thing I'm not clear on is, how do you, "create containers" in the tpl_main_page.php?
Here is what I did in the tpl_main_page.php,
Code:
<div id="mainWrapper">
<?php
/**
* prepares and displays header output
*
*/
require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
<div class="roundcont">
<div class="roundtop">
<img src="http://oneposhshop.com/Shop/includes/templates/Posh_by_Trois_Soeurs/Images/left_corner_bg.jpg" alt=""
width="15" height="15" class="corner"
style="display: none" />
</div>
<p><img src="http:/oneposhshop.com/Shop/includes/templates/Posh_by_Trois_Soeurs/Images/Trois Soeurs.gif"></p>
<div class="roundbottom">
<img src="http://oneposhshop.com/Shop/includes/templates/Posh_by_Trois_Soeurs/Images/bot_left_corner_bg.jpg" alt=""
width="15" height="15" class="corner"
style="display: none" />
</div>
</div></div>
<!-- bof breadcrumb -->
Is that how containers are created?
Well, not quite. You'd need to put the opening one before <div id="mainWrapper"> and the ending ones before the closing </body> You'll have to play around with the placement and css quite a bit.
I looked at your image:
http://oneposhshop.com/Shop/includes..._corner_bg.jpg
And that's an awfully large corner. Do you want it that big? Remember that now you'll have a chunk that tall and wide where no text can be.
I like the route you're going, I think its very unique, but I think I'd simplify it by removing the outer shadows, make the corners arcs much smaller, and it would save you some grief. You also need to save it as a gif with a transparent background if you want the background to show through.
Here, I made a corner that I think would work better for you, and have attached it to this message. It's 29px tall by 29px wide, so you'd need to adjust that in the code. Just rotate it and resave it for each corner.
After creating the containers, you'll have a good bit of work in the css to make this the correct widths and such. Its not a simple procedure, sorry!
Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
jettrue
Try this instead:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yoursite\.com$ [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L]
Just tried it, still the same but this time it won't add the www when i don't put www
Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
jettrue
Well, not quite. You'd need to put the opening one before <div id="mainWrapper"> and the ending ones before the closing </body> You'll have to play around with the placement and css quite a bit.
I looked at your image:
http://oneposhshop.com/Shop/includes..._corner_bg.jpg
And that's an awfully large corner. Do you want it that big? Remember that now you'll have a chunk that tall and wide where no text can be.
After creating the containers, you'll have a good bit of work in the css to make this the correct widths and such. Its not a simple procedure, sorry!
I just used that sloppy image to see if it would even work and then I'm planning on going back and perfecting the images. For one thing, I used paint shop pro to make that corner and I absolutely hate that program but I didn't want to tie up my other computer just to use photoshop for something that I wasnt sure would even work.
Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
jettrue
Well, not quite. You'd need to put the opening one before <div id="mainWrapper"> and the ending ones before the closing </body> You'll have to play around with the placement and css quite a bit.
Here is the code that I changed in the tpl_main_page.php file
Code:
<div class="roundcont">
<div class="roundtop">
<img src="http://oneposhshop.com/Shop/includes/templates/Posh_by_Trois_Soeurs/Images/tl_bg.gif" alt=""
width="83" height="80" class="corner"
style="display: none" />
</div>
<div id="mainWrapper">
<?php
/**
* prepares and displays header output
*
*/
require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
<p><img src="http:/oneposhshop.com/Shop/includes/templates/Posh_by_Trois_Soeurs/Images/Trois Soeurs.gif"></p>
</div>
<!-- bof breadcrumb -->
<?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
<div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>
<!-- eof breadcrumb -->
<?php
if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!-- bof upload alerts -->
<?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>
<!-- eof upload alerts -->
<?php
/**
* prepares and displays center column
*
*/
require($body_code); ?>
</div>
</div>
</div>
</div>
<?php
if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerFour" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?></td>
<?php
if (COLUMN_RIGHT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
// global disable of column_right
$flag_disable_right = true;
}
if (!isset($flag_disable_right) || !$flag_disable_right) {
?>
<td id="navColumnTwo" class="columnRight" style="width: <?php echo COLUMN_WIDTH_RIGHT; ?>">
<?php
/**
* prepares and displays right column sideboxes
*
*/
?>
<div id="navColumnTwoWrapper" style="width: <?php echo BOX_WIDTH_RIGHT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?></div></td>
<?php
}
?>
</tr>
</table>
<?php
/**
* prepares and displays footer output
*
*/
require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');?>
</div>
<!--bof- parse time display -->
<?php
if (DISPLAY_PAGE_PARSE_TIME == 'true') {
?>
<div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
<?php
}
?>
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<?php
if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!--eof- banner #6 display -->
<div class="roundbottom">
<img src="http://oneposhshop.com/Shop/includes/templates/Posh_by_Trois_Soeurs/Images/bl_bg.gif" alt=""
width="81" height="79" class="corner"
style="display: none" />
</div>
</div>
</body>
I'm still not clear on why these changes belong in the tpl_main_page.php file if they don't show in the view page source from http://oneposhshop.com/Shop.
Should I be making these changes in the code to another file?
Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
oneposhshop
Here is the code that I changed in the tpl_main_page.php file
I'm still not clear on why these changes belong in the tpl_main_page.php file if they don't show in the view page source from
http://oneposhshop.com/Shop.
Should I be making these changes in the code to another file?
Are you saving it in your template folder???
includes/templates/Posh_by_Trois_Soeurs/common/tpl_main_page.php
Re: Apple Zen Template Support Thread
Quote:
Originally Posted by
HelpMeSell
Just tried it, still the same but this time it won't add the www when i don't put www
At one point it seemed to be working (around 11 am today), cause I clicked on
http://axlesforless.com/index.php
and it went to
http://www.axlesforless.com/index.php
Ah, sorry, I made an error, it should be like this (of course replace yoursite with Your Site. :-)):
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yoursite.com$ [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L]