Totally Zenned
- Join Date:
- Feb 2010
- Posts:
- 2,159
- Plugin Contributions:
- 10
Ezpages Footer Columns support
I can PM you the link, I am putting together a template but it is not yet ready for public eyes - still a work in progress.
Views: 22,548
Totally Zenned
I can PM you the link, I am putting together a template but it is not yet ready for public eyes - still a work in progress.
Black Belt
OK, that would be fine for now:)
Totally Zenned
Sent you the link Glenn. Would like to know what you think?
Black Belt
Yes indeed! I look forward to being able to point to it as an example of what can be done with the mod, strictly using the built-in capabilities.
New Zenner
Okay, I'm feeling like a complete idiot right now. Hope you can help.
I've double checked that my files are in the correct place. My footer display status is at 1. I've added 4 "links" in my EZ-pages section and given them the following footer sort numbers (110,210,310,410) just to start.
My latest cache debug reads as follows:
[05-May-2011 18:02:14] PHP Warning: Division by zero in D:\Hosting\5876595\html\buy\includes\templates\Gaius\templates\tpl_ezpages_bar_footer.php on line 45
I checked the file, the line it is referring to is this:
$col_width = (int)(100/$cols);//update divs with % width
The page I am currently working with is here:
http://www.theindigopath.com/buy
As you can see, there is a red bar where the footer should be, but nothing there.
While I'm asking, I might as well ask about the EZ pages to be sure I'm setting them up correctly. I am setting them up using the Admin>Tools>EZ-Pages page. Creating a new file for each link. Is this and the following correct?
Page Title: This will be the text of the link.
Internal Link: This is the page it links to.
Header, TOC, Sidebox are off
Footer is on: 110 (sort number)
I've just started using ZenCart so I'm still trying to adjust to not having to dig through code to make any additional changes. Thanks in advance for your help!
Zen Follower
First I'm glad I found this mod. I was having difficulty with another footer menu and this one installed smoothly.
One thing though. I tried several css codes but I'm not versed on it. My shop width is 960px. I used firebug to see if there was anything I could change but could not. Can you help please?
Black Belt
I can help if I can see your site, and know what it is that you want to change.
Black Belt
gaius - The warning indicates that there are no ez-page columns to be displayed. That should only happen if the ez-pages set for the footer don't have sort orders. If there are no ez-pages set for the footer, tpl_ezpages_bar_footer.php will skip all processing and you would not get the error.
You have Configuration > EZ-Pages Settings > EZ-Pages Display Status - FooterBar set to 1, correct?
The line you quote from tpl_ezpages_bar_footer.php is the correct custom version. Do you have /includes/modules/your_template/ezpages_bar_footer.php with your_template changed to your template name? If that file is not in the correct place, there would be no sort order info available to be used.
New Zenner
I just double checked the folders, everything is named properly (including your_template changed to my template's name). I've also just double checked that footerbar is set to 1. I changed it to 0, and then back to 1.
I re-uploaded /includes/modules/your_template/ezpages_bar_footer.php to the website. Now the red bar isn't there anymore, either.
New Debug says:
PHP Fatal error: Call to undefined function active_page_class() in D:\Hosting\5876595\html\buy\includes\templates\Gaius\templates\tpl_ezpages_bar_footer.php on line 32
Refers to the following code:
$page_query_list_footer[$rows]['altURL'] = '';
I'm off to go camping for the weekend, and will work on this more when I get back on Monday. Thank you again for your help.
Black Belt
If the function is undefined, you must not have ezpages_footer_columns_functions.php in the correct location, or it is corrupt.
Maybe you should re-upload all of the files, taking special care with the /Gaius/ foldernames. Then look at the files to be sure they have good content once they are on the server.
Zen Follower
gjh42:
I can help if I can see your site, and know what it is that you want to change.
Thank you for the offer and the great mod for ZC. Our store is under lock and key. If you want to PM me your IP address I will add it and maybe what you suggest to me will be of help of others also. Thanks SO much.
Here is also an attachment so others can see what I speak of.
The little grey bar up on top is the base of our shop and is at 960px.
the bottom footer of course is at full width screen.
New Zenner
Reuploaded all the files. Something weird must have happened while I unzipped them. So I redownloaded the file and put everything back. ** It's working great now.**
Thank you again for your help and this awesome addon!
Black Belt
Glad to hear that it's working when you reinstall a fresh copy.
willie bee - the bit you show indicates that your #mainWrapper is at 100% width, and #contentMainWrapper is at 960px width. Since #navSuppWrapper is directly inside #mainWrapper, it will not follow #contentMainWrapper styling. Find or add #navSuppWrapper {} in your stylesheet and give it the desired width.
If you have a template with a nonstandard structure, there is no way to advise without actually seeing it live.
Black Belt
Zen Follower
gjh42:
Glad to hear that it's working when you reinstall a fresh copy.
willie bee - the bit you show indicates that your #mainWrapper is at 100% width, and #contentMainWrapper is at 960px width. Since #navSuppWrapper is directly inside #mainWrapper, it will not follow #contentMainWrapper styling. Find or add #navSuppWrapper {} in your stylesheet and give it the desired width.
If you have a template with a nonstandard structure, there is no way to advise without actually seeing it live.
We're idiots here. What?
YOUR footer style sheet was not modified in any way.
So in MY stylesheet.css I have this
#mainWrapper {
text-align: left;
vertical-align: top;
width: 960px; /* sets the width of the store /
background-color:#fff; / gives the store a white background */
margin: 8px auto 0 auto;
padding-bottom: 10px;
}
/* main content area /
#contentMainWrapper {
margin:0;
/ background-color: #f4f4ef; */
}
#contentMainWrapper, #logoWrapper, #cartBoxListWrapper, #ezPageBoxList, #cartBoxListWrapper ul, #ezPageBoxList ul, #popupAdditionalImage, #popupImage {
margin: 0em;
padding: 0em;
}
#navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
margin: 0em;
font-weight: normal;
height: 1%;
width: 100%;
}
SO I need to modify YOUR supplied style sheet?
If you want to PM me your IP I will add you since our store is under lock and key. :(
Black Belt
You would probably need to modify something in your main stylesheet, but everything you mention is correct for a standard site structure. Obviously there is something different about your site, or else there is some glitch somewhere that is not making the #mainWrapper width follow that rule. I'll pm you so I can look at it directly.
Zen Follower
gjh42:
You would probably need to modify something in your main stylesheet, but everything you mention is correct for a standard site structure. Obviously there is something different about your site, or else there is some glitch somewhere that is not making the #mainWrapper width follow that rule. I'll pm you so I can look at it directly.
Thanks I will add you to our end of year list, I'll explain when I get your PM lol.
Black Belt
This will fix the footer:
stylesheet.css (line 465)
#navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
font-weight: normal;
height: 1%;
margin: auto;
width: 960px;
}
Your template has both #headerWrapper and #navSuppWrapper (and some other custom divs) outside of #mainWrapper, so they all need their widths set explicitly.
Zen Follower
gjh42:
This will fix the footer:
stylesheet.css (line 465)
#navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
font-weight: normal;
height: 1%;
margin: auto;
width: 960px;
}
> Your template has both #headerWrapper and #navSuppWrapper (and some other custom divs) outside of #mainWrapper, so they all need their widths set explicitly.
I don't know what you mean by the bottom part of what you said but the change you said to make WORKS! BUT ... there is always a but. It destroyed the font. There is a different font size now.
Here was the original code.
#navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
margin: 0em;
font-weight: normal;
height: 1%;
width: 100%;
}
Black Belt
I noticed that when I went back and looked at the site, but it didn't happen when I first tested the changes. I just now reversed the changes (back to what they were before) in Firebug, and the font was still larger. The two property value changes simply could not affect font size... they are not capable of that. Something else that happened while you were editing the stylesheet had to have done it.
Checking, I see that there is some text before the main stylesheet header comment block:```
illie /**
body {
color:#777777;
font: 10px arial, sans-serif;
background-color:#ffffff;
margin:0;
background-image: url("../images/bodybg.gif");
background-repeat: repeat-x;
}
Tell staff why this post should be reviewed.