Forums / Addon Templates / Easy embed template

Easy embed template

Locked

Views: 112,629

Results 321 to 340 of 362
This thread is locked. New replies are disabled.
25 Jul 2009, 6:40 AM
#321
pixels90211 avatar

pixels90211

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

Easy embed template

I decided to simplify the page even further to see if it would work.
The HTML code of my Frame-Test.html is below

<head>

<link href="_css/Test_cart.css" rel="stylesheet" type="text/css" media="all"> </head> <body> <div id="apDiv1"> <!-- START EMBED --> <!-- END EMBED --> </div> </body> </html>

I removed the doctype and title tags (the php scripts will remove them later anyway) but still no luck... none of the CSS that should pass trough the link is considered...

How did you manage to make yours work?

25 Jul 2009, 7:13 AM
#322
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Easy embed template

  1. remove these two lines else you have Validation errors:
</body> </html>
  1. use an absolute link for your CSS file

The learning is in the doing.

Potent Products

27 Jul 2009, 12:32 PM
#323
sanguisdesign avatar

sanguisdesign

Inactive

Join Date:
May 2005
Location:
Western MA, USA
Posts:
588
Plugin Contributions:
1

Re: Easy embed template

Website Rob:

  1. remove these two lines else you have Validation errors:
</body> </html>
  1. use an absolute link for your CSS file

rob are you saying that I forgot to strip those out of the Zen cart templates?

JOsh Beauregard
Sanguis Development

27 Jul 2009, 12:41 PM
#324
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Easy embed template

Yes sir.

The learning is in the doing.

Potent Products

31 Jul 2009, 8:13 PM
#325
sanguisdesign avatar

sanguisdesign

Inactive

Join Date:
May 2005
Location:
Western MA, USA
Posts:
588
Plugin Contributions:
1

Re: Easy embed template

well thats no good. Some one should update the files. (or at least add it to the issues list)
I guess next time I have a need to update I will correct that issue, also another programer checked in a nice upgrade the other day. If you get your files directly from the repo you will be able to reffrence your template files via a url. this may solesome of the preprocessing issues that I have encountered via the fread().

JOsh Beauregard
Sanguis Development

31 Jul 2009, 8:23 PM
#326
sanguisdesign avatar

sanguisdesign

Inactive

Join Date:
May 2005
Location:
Western MA, USA
Posts:
588
Plugin Contributions:
1

Re: Easy embed template

I just noticed. the template has not been downloaded over 5000 times from the ZC addons section

JOsh Beauregard
Sanguis Development

1 Aug 2009, 5:08 PM
#327
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Easy embed template

sanguisdesign:

rob are you saying that I forgot to strip those out of the Zen cart templates?Yep.. In the instructions where it gives instructions on creating the basic embed file, the closing body and html tags should not be included or you will have validation errors. So a basic embed file should look like this:


<html>
<head>[B]ADD ABSOLUTE LINKS FOR CSS OR JAVASCRIPTS HERE[/B]</head>
<body>
<div id=”content”>
<!-- START EMBED -->
<!-- END EMBED -->
</div>

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

1 Aug 2009, 5:11 PM
#328
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Easy embed template

pixels90211:

Does anybody know where I can get version 1.1 of eayembed?

seems that would be the one to use in my case...It's still available in the downloads section.. http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=990

If you look through the three versions available it's the very last one..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

3 Aug 2009, 12:53 PM
#329
kychiropractic avatar

kychiropractic

New Zenner

Join Date:
Jul 2009
Posts:
4
Plugin Contributions:
0

Re: Easy embed template

Quick question for all of you. Is it possible to use this in a .php page instead of an .html page? This template seems to be exactly what I have been looking for, but I wanted to check if their is any problem 'embedding' in to a php as my whole site is in php. I appreciate your time and assistance!

3 Aug 2009, 4:15 PM
#330
sanguisdesign avatar

sanguisdesign

Inactive

Join Date:
May 2005
Location:
Western MA, USA
Posts:
588
Plugin Contributions:
1

Re: Easy embed template

kychiropractic:

Quick question for all of you. Is it possible to use this in a .php page instead of an .html page? This template seems to be exactly what I have been looking for, but I wanted to check if their is any problem 'embedding' in to a php as my whole site is in php. I appreciate your time and assistance!
the fread function has issues with includes. But alot of other php will work. I have not tested the code in the repo however if you use that it may work with the URL method as that file would be preprocessed before it was turned into the template varable

JOsh Beauregard
Sanguis Development

3 Aug 2009, 6:11 PM
#331
kychiropractic avatar

kychiropractic

New Zenner

Join Date:
Jul 2009
Posts:
4
Plugin Contributions:
0

Re: Easy embed template

I appreciate your prompt response so much, and your service in developing this template which has made a daunting task, so much easier! Thanks!:clap:

6 Aug 2009, 7:23 AM
#332
pixels90211 avatar

pixels90211

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

Re: Easy embed template

**Success **at last!!!...

This is the site:

http://www.pineappleessentials.com/

and this is the shopping cart:

http://www.pineappleessentials.com/pineapple_essentials_store/

and that is how I wanted the integration to be from the begining.

I am using Zen-Cart 1.3.8 and easyembed2.0a
(yes, got it to work)

Ok,... now a recount of what I was doing wrong and hopefully this will helps others avoid the loooong hours of frustration I went through.

First, the file structure I had:

  • Home page

  • Exfoliant page

  • etc, etc,

  • pineapple_essentials_store (this is where zen cart lies)

  • Frame-Cart page
    (this is where I wanted the cart to show through)

I followed the recomendations in the forum but Nothing!:no:
most likely my absolute paths were wrong....

Then, its kind of embarrasing to admit this but, I re-read the install instructions and realized there was a better alternative:

The new file structure that worked:

  • Home page

  • Exfoliant page

  • etc, etc

  • pineapple_essentials_store (this is where zen cart lies)

------------ Frame-Cart page
(this now resides inside the p*store folder)

in the easy_embed/config.php file I used this line:
$this->templateFile = DIR_FS_CATALOG . 'Frame-Cart.html';

and just to be sure I put my images, css and scripts folder for the Frame-Cart page inside the store folder too, just make sure the links in your header point correctly... an easy way to test this is (in my particular example) to type the absolute path:

http://www.pineappleessentials.com/pineapple_essentials_store/Frame-Cart.html

and you see your page with all the css and images, etc. without the zen-cart.

after that you have just to start making changes to the relevant css files, and for this the BEST TOOL EVER!! is firebug (if you are using Firefox, of course) it will tell you exactly which line of css is doing what and from which file (the embed template or yours) and you can even change or suppress values to test results!

Just remember to keep in mind the info given in posts #322 and #327 and you'll be Ok.

JOsh, thanks again for a great module... I'll make sure you have "coffee and muffins" on me.

Thank you all,

6 Aug 2009, 1:53 PM
#333
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Easy embed template

Josh I would like to figure out why I cannot get v2.0 to work.. I could use your help..

Here's my config.php settings:

<?php
//+--------------------------------------------------------+
//| Sanguine Easy Embed Template - Zen Cart                | 
//|Support Site:                                           |
//|http://code.google.com/p/sanguineasyembedtemplatesystem |
//|Released under the GPL v2                               |
//|(c)Sanguis Developmet 2008                              |
//|PLease consider donating to:                            |
//|[email protected]                             |
//|via paypal                                              |
//+--------------------------------------------------------+
#$Id: config.php 19 2009-05-14 15:54:43Z sanguisdex $


//For examples of how to set this see readme.txt; chaper II, step 1
 $this->templateFile = 'store.html'; 

//content modifcatactions:
#set values to true/false to modify unless other wise 
#    noted  in for the value.
$this->options = array(
    "stripMetaData" => false,
    "stripDocType" => true,
    "stripHtmlTags" => false,
    "stripTitleTag" => true,
    //path modifiers for links and images.
    //by defualt the it is assume that the application running the easy embed templating system is in a sub diretory of a site
    "linkPath" => "",
    "imgPath" => ""
)

?>

Here's the store embed file:
http://clients.overthehillweb.com/anomalyrecords/store.html

<html>
<head>
<title>Anomaly Records, Online Store</title>
<link href="_css/store.css" rel="stylesheet" type="text/css" />
<style type="text/css">
a:link {
    text-decoration: none;
}
a:visited {
    text-decoration: none;
}
a:hover {
    text-decoration: none;
    color: #EE6528;
}
a:active {
    text-decoration: none;
    color: #999;
}
body {
    background-image: url(images/bkgd.jpg);
    margin: 0;
}
</style>

</head>

<body>
<div id="container">
<!-- begin Zen Cart and sidebar nav -->
<table width="950" border="0">
  <tr valign="top">
    <td colspan="2" width="950"><!-- begin #navbar -->
  <div id="navbar"><img src="images/anomaly.png" alt="Anomaly Records" name="anomaly" width="218" height="32" id="anomaly" /> 
     <div id="navlinks">
         <ul>
             <li><a href="index.html">Artists</a></li>
             <li><a href="catalog/">Store</a></li>
            <!-- <li><a href="blog.html">Blog</a></li> -->
             <li><a href="about.html">About</a></li>
             <li><a href="leadership.html">Leadership</a></li>
             <li><a href="catalog/index.php?main_page=contact_us">Contact</a></li>
        </ul>
     </div>
  </div>
<!-- end #navbar -->
<!-- begin #header -->
  <div id="header">
  <p><img src="images/header.png" alt="header" width="940" height="160" align="right" /></p></div>
<!-- end #header --></td>
    </tr>
  <tr valign="top">
    <td width="700">
    <div id="mainContent">
    <!-- START EMBED -->
    <!-- END EMBED -->
    </div>    </td>
    <td width="250">  
<!-- begin #sidebar1 -->
 <div id="sidebar1">
    <h4>MAILING LIST SIGNUP</h4>
    <hr align="left" width="210" size="1" noshade="noshade" class="line"/>
       <form id="signup" name="signup" method="post" action="../cgi-bin/FormMail.cgi" >
    <input type=hidden name="recipient" value="[email protected]" />
    <input type=hidden name="subject" value="Mailing List Signup" />
    <input type=hidden name="realname" value="Website Signup" />
        <input type="hidden" name="redirect" value="thankyou.html" />
      <input name="email" type="text" id="signup" value="[email protected]" size="25" />
      <input name="submit" type="submit" id="signup_button" value="Join" />
    </form>
    <br />
    <br />
    <h4>LINKS</h4>
    <hr align="left" width="210" size="1" noshade="noshade" class="line"/>
     <br />
    <a href="http://www.facebook.com/group.php?gid=106704676815" title="Facebook" target="_blank" ><img src="images/find_us_on_facebook_badge.gif" class="sidebar"/></a>
    <br />
    <br />
    <a href="http://www.myspace.com/anomalyrecordsinc" title="MySpace" target="_blank"><img src="images/myspace_logo.jpg" width="180" height="40" class="sidebar"/></a>
    <br /> 
    <br />
     <!-- AddThis Button BEGIN -->
    <div class="center">
<a href="http://www.addthis.com/bookmark.php?v=250" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=anomalyrecords"></script>
</div>
    <!-- AddThis Button END -->
    
</div>
<!-- end #sidebar1 --></td>
</tr>
</table>
<!-- end Zen Cart and sidebar nav -->
  <!-- begin #footer -->
    <div id="footer">
    <p><?php echo FOOTER_TEXT_BODY; ?></p>
    </div>
  <!-- end #footer -->
<!-- end #container -->
</div>

Here's what this results in:
http://clients.overthehillweb.com/anomalyrecords/catalog/

I have tried a LOT of stuff to figure this out, and now I could use some help.. No matter what I do I end up with a store which looks like all of the HTML from the embed file has been stripped out..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

6 Aug 2009, 2:41 PM
#334
sanguisdesign avatar

sanguisdesign

Inactive

Join Date:
May 2005
Location:
Western MA, USA
Posts:
588
Plugin Contributions:
1

Re: Easy embed template

Diva, its the path to the file. you need more infor about where store.html is. if you are running a linux server with cpanel it is most likely at '/home/USERNAME/public_html/anomalyrecords/store.html' but that is just a wild guess.

JOsh Beauregard
Sanguis Development

6 Aug 2009, 2:45 PM
#335
sanguisdesign avatar

sanguisdesign

Inactive

Join Date:
May 2005
Location:
Western MA, USA
Posts:
588
Plugin Contributions:
1

Re: Easy embed template

pixels90211:

**Success **at last!!!...

JOsh, thanks again for a great module... I'll make sure you have "coffee and muffins" on me.

Thank you all,

You would be the forst out of over 5000 downloads to do so it would be very encouraging

JOsh Beauregard
Sanguis Development

7 Aug 2009, 2:11 AM
#336
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Easy embed template

sanguisdesign:

Diva, its the path to the file. you need more infor about where store.html is. if you are running a linux server with cpanel it is most likely at '/home/USERNAME/public_html/anomalyrecords/store.html' but that is just a wild guess.Josh among the other things I tried was to add my absolute path to the store.html file (same path that's in the Zen Cart configure.php file) and the result is still the same.. NONE of the HTML in that file is displayed..

So I just changed it back again as follows:

 $this->templateFile = '/home/content/o/v/e/USERNAME/html/clients.overthehillweb.com/anomalyrecords/catalog/store.html'; 
```Template still doesn't work as you can see:
<http://clients.overthehillweb.com/anomalyrecords/catalog/>

So what else could be going on here???

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

7 Aug 2009, 5:53 AM
#337
kt_naturals avatar

kt_naturals

Inactive

Join Date:
Jun 2009
Posts:
25
Plugin Contributions:
0

Re: Easy embed template

I think I'm missing something here:

Some Where in your html file, you need to put three very specific lines of text. WHERE you put them is up to you, but they must be together and they must be exact. The thing to know is that it goes in the body of the file, and that it goes where you want your Zen Cart to go.
<!-- START EMBED -->
<!-- END EMBED --> 

Start embed -- end embed, where's the 3 lines you're talking about? :unsure:

7 Aug 2009, 6:02 AM
#338
kt_naturals avatar

kt_naturals

Inactive

Join Date:
Jun 2009
Posts:
25
Plugin Contributions:
0

Re: Easy embed template

^ Wanted to add that I did everything the instructions say and my .html page shows nothing of Zen Cart's presence.

7 Aug 2009, 8:02 AM
#339
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Easy embed template

DivaVocals:

Josh among the other things I tried was to add my absolute path to the store.html file (same path that's in the Zen Cart configure.php file) and the result is still the same.. NONE of the HTML in that file is displayed..

So what else could be going on here???
What I don't see added to the "store.html" file is this:

<link href="**../**_css/index.css" rel="stylesheet" type="text/css" />

All the <head></head> information you have in your regular files needs to also be in the easyEmbed Zen Cart Index file. One difference though is you need to adjust any paths; such as indicated above.

Remember, if you want to use the same Styling for Zen Cart -- using easyEmbed -- as you have for the rest of the site, then you must also reference the same files. The 'stylesheet.css' file within Zen Cart applies "only" to the Zen Cart content.

The learning is in the doing.

Potent Products

7 Aug 2009, 12:48 PM
#340
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Easy embed template

Website Rob:

What I don't see added to the "store.html" file is this:

<link href="**../**_css/index.css" rel="stylesheet" type="text/css" />

All the <head></head> information you have in your regular files needs to also be in the easyEmbed Zen Cart Index file. One difference though is you need to adjust any paths; such as indicated above.

Remember, if you want to use the same Styling for Zen Cart -- using easyEmbed -- as you have for the rest of the site, then you must also reference the same files. The 'stylesheet.css' file within Zen Cart applies "only" to the Zen Cart content.Yes I understand this, and I wish this was simple path to my stylesheet issue.. But if do a "view source" of my store via the browser you will see that ALL of my EasyEmbed page elements are just not there at all.. (images, style sheet, etc)
http://clients.overthehillweb.com/anomalyrecords/catalog/

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.