Re: Apple Zen Support Thread
Hi,
I was curious if it would be possible if I wanted to remove a specific category from the dropdown by session ID - preferably only in the drop down menu template file?
I was wanting to link to it from a different area on the website, but not from the main category.
If it's possible, it would be awesome to exclude it from the category link - and then I can directly link to it from a different link further down on the page.
Thank you for your help!
Re: Apple Zen Support Thread
Quote:
Originally Posted by
jettrue
Try opening icludes/templates/YOUR_TEMPLATE/sideboxes/tpl_information.php
If you go into that file, move them where you want them, and then wrap them in <li> and </li> they should format nicely. Also remove the
Hello Jade
Thanks for getting back to me. I could only find the file you referenced in /www/includes/templates/template_default/sideboxes (not in /www/includes/templates/apple_zen/sideboxes)
and I wasn't sure what I was supposed to be doing with the content. Am I looking in the right place?
Code:
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n";
for ($i=0; $i<sizeof($information); $i++) {
$content .= '<li>' . $information[$i] . '</li>' . "\n";
}
$content .= '</ul>' . "\n";
$content .= '</div>';
Re: Apple Zen Support Thread
Hi Jade,
Thanks again for the template. Love, love, love it!
I am wondering if you can help me out. I have removed my catagory tab menu that normally would show between my logo.gif and the dropdown menu.
In doing so, it also removed the "green bar" where the tab menu was located. How can I insert a green bar like the one above the logo, where the "Home," "Log In" and "Search Field and button" are located?
Here is the link to my store: http://www.handmadepantry.com/NewTes...ain_page=index
Another question...
I also noticed that the "Home," "Log In" and "Search Field and button" in the top green bar are not centered top to bottom in the bar. How does one fix that?
Thanks In Advance!
Jane
Re: Apple Zen Support Thread
Quote:
Originally Posted by
sethererm
Hi,
I was curious if it would be possible if I wanted to remove a specific category from the dropdown by session ID - preferably only in the drop down menu template file?
I was wanting to link to it from a different area on the website, but not from the main category.
If it's possible, it would be awesome to exclude it from the category link - and then I can directly link to it from a different link further down on the page.
Thank you for your help!
That is of course possible, it's just a matter of being able to create the coding for it. Basically you need some php that says
if category_id=(number of category you don't want), then,
Don't show.
If you open up includes/classes/categories_ul_generator.php, you might be able to do something like this:
Code:
$categories_query = "select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
where c.categories_id = cd.categories_id
and c.categories_id !=3
and c.categories_status=1 " . " and cd.language_id = '" . (int)$_SESSION['languages_id'] . "' " . " order by c.parent_id, c.sort_order, cd.categories_name";
And change the number 3 to the category id number of the category you want to block.
Not sure if it will work, I'm a php hacker, not a php coder. :smile:
Good luck, and back a copy of that file up before making changes.
Re: Apple Zen Support Thread
Quote:
Originally Posted by
backinthesaddle
Hello Jade
Thanks for getting back to me. I could only find the file you referenced in /www/includes/templates/template_default/sideboxes (not in /www/includes/templates/apple_zen/sideboxes)
and I wasn't sure what I was supposed to be doing with the content. Am I looking in the right place?
Code:
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n";
for ($i=0; $i<sizeof($information); $i++) {
$content .= '<li>' . $information[$i] . '</li>' . "\n";
}
$content .= '</ul>' . "\n";
$content .= '</div>';
OOPS
Try includes/modules/sideboxes/YOUR_TEMPLATE/information.php
Re: Apple Zen Support Thread
Quote:
Originally Posted by
organicplanet
Hi Jade,
Thanks again for the template. Love, love, love it!
I am wondering if you can help me out. I have removed my catagory tab menu that normally would show between my logo.gif and the dropdown menu.
In doing so, it also removed the "green bar" where the tab menu was located. How can I insert a green bar like the one above the logo, where the "Home," "Log In" and "Search Field and button" are located?
Here is the link to my store:
http://www.handmadepantry.com/NewTes...ain_page=index
Another question...
I also noticed that the "Home," "Log In" and "Search Field and button" in the top green bar are not centered top to bottom in the bar. How does one fix that?
Thanks In Advance!
Jane
You can open up includes/templates/YOUR_TEMPLATE/common/tpl_header.php and add a new div.
<div id="nameofdivhere">Stuff here</div>
Then in the css, style #nameofdivhere the way you'd like. You can style it like.
You can mess with the padding of #navMainWrapper, #navMain, or #navMainLinks and #navMainSearch.
Re: Apple Zen Support Thread
Just wanted to say thankyou very much for this tempate!!
I did read in the documentation that it isn't possible to have layout boxes on the left hand side, but I wasn't sure if there have been any updates since that was written.
Just wanted to check this is still current? As I would loooove the boxes on the left hand side.
Thankyou again, you're very generous!!
Penny
Re: Apple Zen Support Thread
Hey,
I am looking for someone to help redesign my template starting with the basic apple zen red template. I need this help to have good knowledge of apple zen coding... They will be changing some layouts with my site. I will compensate this help based on work completed.
Anyone interested please email me at [email protected].
Thanks,
Nick
Re: Apple Zen Support Thread
Quote:
Originally Posted by
kinderyum
Just wanted to say thankyou very much for this tempate!!
I did read in the documentation that it isn't possible to have layout boxes on the left hand side, but I wasn't sure if there have been any updates since that was written.
Just wanted to check this is still current? As I would loooove the boxes on the left hand side.
Thankyou again, you're very generous!!
Penny
Well, there are instruction in the readme.txt on moving the sideboxes to the left. However, you can't have both left and right :)
Re: Apple Zen Support Thread
Quote:
Originally Posted by
jettrue
That is of course possible, it's just a matter of being able to create the coding for it. Basically you need some php that says
if category_id=(number of category you don't want), then,
Don't show.
If you open up includes/classes/categories_ul_generator.php, you might be able to do something like this:
Code:
$categories_query = "select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
where c.categories_id = cd.categories_id
and c.categories_id !=3
and c.categories_status=1 " . " and cd.language_id = '" . (int)$_SESSION['languages_id'] . "' " . " order by c.parent_id, c.sort_order, cd.categories_name";
And change the number 3 to the category id number of the category you want to block.
Not sure if it will work, I'm a php hacker, not a php coder. :smile:
Good luck, and back a copy of that file up before making changes.
Jettrue,
You are a godsend!!! Thank you for your intelligence - your hacking abilities are supreme (as are your designs!)
Thank you, thank you, thank you! :clap:
Seth