Originally Posted by
marvay
Hi JOsh,
I have just installed Zen Cart version 1.3.8a and while trying to customize it, found your embed template.
I am having the same issue of the Double Footer that I saw others were having, but I never read what their solution was.
After looking into the code, I think it may be a PHP version issue with the regular expressions.(just my hunch)
I am on a HostGator site running PHP version 5.2.5
My Issue:
My site comes up with the full template displayed, Header then Footer.(without the zen-cart in the designated place), then the Zen Cart, then the Footer again.
Looking at the source of the HTML, I see the headers created by the Easy Embed template. Within the header tags, the full source to my custom template. Then the code for Zen Cart. Then, lastly, the footer from my custom template again.
Looking at the html_header.php page, I'm guessing that the insideHead() function is grabbing the entire string, and not just from the beginning to the </head> tag. I think this because when viewing the source of the displayed page, the </head> that is generated from the second to the last line in the html_header.php page is displayed after the </html> from my custom template page.
Also in the source of the displayed page, I don't see any output from where the bodyTop() function should have put it. I can see the two <!--bof- easy embed template top--> tags but there is nothing but a blank space between them.
I don't believe there is anything wrong with these expressions used to grab the code, but wonder if there is a conflict in server versions.
I just wondered what configuration and versions you were using. Not that I have an option of upgrading anything on my hosting server.
I am going to try to create similar functions in a much simpler environment tomorrow to see if there is something else going on.
Thanks for the great work.
Mike
Bookmarks