Forums / Addon Templates / Easy embed template

Easy embed template

Locked

Views: 112,629

Results 81 to 100 of 362
This thread is locked. New replies are disabled.
29 Jun 2007, 6:58 PM
#81
sanguisdesign avatar

sanguisdesign

Inactive

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

Easy embed template

chas1:

Don't hold your breath, I don't think anyone outside of Brian21 can do that including the author of the easy embed, doing is one thing making it simple for others to understand and showing examples of it working so we can follow the bouncing ball seems to be one of the discouraging parts of this forum. In MHO Zen cart developer's should require any downloads be proven with a demo site like Dr. Byte's and example code that works for the version of the cart that is intended for, along with the person's who will supply the support and indicate if it's free or cost money. You can spend weeks searching this forum only to find the guy has disappeared or no longer supports his upgrade.
<rant>
This is the wife right? chas1 is 2 people and the wife is more rude then the husband in the team that are chas1
Please don't insult my ability to teach. I have been training other professionals in my field of work for years, and have a very successful track record.
This is not a beginner module, I can not give exact instructions for this module, this the location of your template file is not, static, nor was it ever meant to be. Most of the problems that chas1 have been having are in basic php set up and have nothing to do w/ my code. if you dont know what your php root is then dont tell me that the module is not working, go to a php forum and ask how to find that (any IRC room called #php is a good place to)
I tell them <!-- COMMENT --> and they retort w/ <-- comment -->. that has nothing to do w/ my code or ability to teach it has every thing to w/ the reading level.
So I am going to say it now.
The Sanguine Easy Embed Template is not for PHP novices. it is for experienced geeks that want to simplify their lives then they are running multiple types of FOSS, or have more then one Section (other then the Zen Cart) on their web site.
You want a demo site? I could list about 20 functional web sites running this module.
There are no switches to play w/ other then the selecting the template easy embed to mess w/ here. Therefore no real need for me to maintain a demo site.
</rant>
I would ask that you all bare w/ me as I am recovering form a complete hard drive failure, during a transitional time that was not allowing me to back up as regularly as I normally would have. I lost a week of work time recovering and paying my bills are more of a priority then making people feel good about what I give away for free.
koikana I will be w/ you as soon as I can but as I have stated I am slamed at the moment. I am one person, zen cart has a team. I AM VERY WILLING TO HELP SOMEONE JOIN THE TEAM WHO WANTS TO REWRITE THE DOCUMENTATION, not just get their site working and leave.

JOsh Beauregard
Sanguis Development

2 Jul 2007, 8:33 PM
#82
chas1 avatar

chas1

New Zenner

Join Date:
May 2007
Posts:
24
Plugin Contributions:
0

Re: Easy embed template

sanguisdesign:

<rant> This is the wife right? chas1 is 2 people and the wife is more rude then the husband in the team that are chas1 Please don't insult my ability to teach. I have been training other professionals in my field of work for years, and have a very successful track record. This is not a beginner module, I can not give exact instructions for this module, this the location of your template file is not, static, nor was it ever meant to be. Most of the problems that chas1 have been having are in basic php set up and have nothing to do w/ my code. if you dont know what your php root is then dont tell me that the module is not working, go to a php forum and ask how to find that (any IRC room called #php is a good place to) I tell them <!-- COMMENT --> and they retort w/ <-- comment -->. that has nothing to do w/ my code or ability to teach it has every thing to w/ the reading level. So I am going to say it now. **The Sanguine Easy Embed Template is not for PHP novices. it is for experienced geeks that want to simplify their lives then they are running multiple types of FOSS, or have more then one Section (other then the Zen Cart) on their web site.** You want a demo site? I could list about 20 functional web sites running this module. There are no switches to play w/ other then the selecting the template easy embed to mess w/ here. Therefore no real need for me to maintain a demo site. </rant> I would ask that you all bare w/ me as I am recovering form a complete hard drive failure, during a transitional time that was not allowing me to back up as regularly as I normally would have. I lost a week of work time recovering and paying my bills are more of a priority then making people feel good about what I give away for free. **koikana** I will be w/ you as soon as I can but as I have stated I am slamed at the moment. I am one person, zen cart has a team. I AM VERY WILLING TO HELP SOMEONE JOIN THE TEAM WHO WANTS TO REWRITE THE DOCUMENTATION, not just get their site working and leave.

Thanks for the comment, I am sure anyone who reads the rant will understand the major problems that are plaguing Zen Cart and an after thought if it can't be explained how do you expect anyone to write a step by step guide...
Sorry for the inconvenience, Your assistance is no longer required a friend
from California who is a webmaster is helping me(A PHP GURU).

6 Nov 2007, 5:00 PM
#83
urbanx avatar

urbanx

New Zenner

Join Date:
Aug 2007
Location:
oregon
Posts:
12
Plugin Contributions:
0

Re: Easy embed template

chas1:

Thanks for the comment, I am sure anyone who reads the rant will understand the major problems that are plaguing Zen Cart and an after thought if it can't be explained how do you expect anyone to write a step by step guide...
Sorry for the inconvenience, Your assistance is no longer required a friend
from California who is a webmaster is helping me(A PHP GURU).

actually, all that's needed is a simple step by step.

when i started reading this thread, i thought "wow, this sounds like exactly what i'm looking for." then i looked at the documentation, read through some of the other posts, and thought "WTF?'

however, once i grasped it, i realized how brilliant this mod is, and how simple... mind-numbingly simple it is to implement.

it works like this:

  1. create an html file in your website that you would like to embed zen cart into. let's call it shop.html and let's put it in the root of our website:
  1. somewhere 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 zencart to go.

             <div id="content">
             <!-- START EMBED -->
             <!-- END EMBED -->
    
  2. install zen cart. i'm going to assume that you installed zen cart in a directory called zen. go to http://www.foo.com/zen and do all the zen installation stuff.

DO NOT GO ANY FURTHER UNTIL YOU HAVE ZEN WORKING PROPERLY WITH THE DEFAULT TEMPLATE.

  1. once you have zen up and running, it is time to install the new template. the sang_embed template installs like any other template. please see the wiki if you need basic assistance with installing a template in zen cart (or better yet, buy the zen book, you won't regret it). essentially, you copy the template files to your webserver. most will go in zen/includes/templates/sang_embed, but the main thing is to match the folder structure in the download. don't forget to "turn on" the sang_embed template in the admin.

  2. make ONE change in the file named embed_config.php. you can find it at /path_to_your_files/zen/includes/templates/sang_embed/common/embed_config.php

find the line that begins with $zc_temp (it is line 11) and change it so that it refers to the html file you created in step 1. in our example, it would be:

$zc_temp = '/path_to_your_files/shop.html';

THIS IS THE KEY. IT TELLS ZEN CART THAT IT MUST EMBED ITSELF IN THAT FILE.

  1. go test it by going to http://www.foo.com/zen

  2. revel in your brilliance

6 Nov 2007, 7:08 PM
#84
urbanx avatar

urbanx

New Zenner

Join Date:
Aug 2007
Location:
oregon
Posts:
12
Plugin Contributions:
0

Re: Easy embed template

oh yeah, now i remember what i came to this thread for.

i've run into a small problem with the template. the problem is related to the fact that the template puts a ../ in front of all links in the html file to make them work. this works great UNLESS you have a mailto link.

the mailto link now reads http://www.site.com/mailto:[email protected]

any ideas how to deal with this?

thanks,

d.

7 Nov 2007, 3:31 PM
#85
sanguisdesign avatar

sanguisdesign

Inactive

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

Re: Easy embed template

Urbanix,
tank you for adding a positive light to this thread.
I have not been here for a while so this is the first time I have seen your post.
About the mailto: problem.
I would tell you first not to use this code. there are bots that search the net and look for this code. they grab the email address and start sending it stock and pen1s (can you believe the real spelling is black listed?) advise like crazy. My advise is where every you would have a mail to, point it to a contact form, like the one that Zen cart comes w/. As a rule I never posy and email address on line.
That being said if you don't mind complete strangers talking about how you please your woman, no matter who your are. the Whole embed_config.php is pretty clear and run on regex al you would have to do is replace the link re writing code w/ a new expression.
That being said, regex is an art form that I barley comprehend (I am just not that lete). the embed_config program took me about 10 hours of hacking to figure out, and really it is not the best set of regex's in the world. I would suggest that you hang out in the #regex channel on free node and bug them.

JOsh Beauregard
Sanguis Development

7 Nov 2007, 3:57 PM
#86
urbanx avatar

urbanx

New Zenner

Join Date:
Aug 2007
Location:
oregon
Posts:
12
Plugin Contributions:
0

Re: Easy embed template

my thoughts on mailto as well. however, i am not the lead on this project, i just make things happen. the designer has obfuscated the email address in a rather intresting manner. don't know if it'll work, but it'd definitely interesting.

anyway, i had assumed as much about the regex (something i haven't touched in years). just had to hope that you were going to say "i fixed that in my secret magic version that i've been keeping to myself as insurance..."

guess i'll get to find out just how badly they want this.

thanks for all your work on this and your quick response to my question.

d.

7 Nov 2007, 4:58 PM
#87
sanguisdesign avatar

sanguisdesign

Inactive

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

Re: Easy embed template

offer to sell them a multi person contact form, remind the designer nicely that a web sites art need to conform to function and not the other way around.
I have obscured email addresses w/ images w/ .js w/ html character values, and still had spam sent to that address. and believe me it was not the box that was getting spammed. Show some (mock if necessary) concern about getting the end user the best product neccery.

oh and another thing of you are not using the easy embed template on any other program then just comment out the link rewrites and make the links ../ your self.

I am thinking that the next ver will just detect the dir structure and hard code the links in an absolute manner

JOsh

JOsh Beauregard
Sanguis Development

15 Nov 2007, 5:26 PM
#88
earlyfloyd avatar

earlyfloyd

New Zenner

Join Date:
Nov 2007
Location:
northern, CA
Posts:
25
Plugin Contributions:
0

Re: Easy embed template

First of all, I would like to thank SanguisDesign for the time and effort involved in creating the script. And, Urbanx for the concise explanation - it is appreciated.

I have have ZenCart installed in a directory named "catalog"
I created an html file called "catalog" with the embed code.

The sang_embed files have been installed under:
/catalog/includes/templates/sang_embed/

The Sanguine Embedded Cart is now the default template as indicated in ZenCart Admin area.

Problem: when attempting to load catalog.php, my layout explodes :oops: and the sample data does not show.

Any ideas? I must have some files in the wrong directory?

Thanks!

15 Nov 2007, 6:25 PM
#89
urbanx avatar

urbanx

New Zenner

Join Date:
Aug 2007
Location:
oregon
Posts:
12
Plugin Contributions:
0

Re: Easy embed template

EarlyFloyd:

I have have ZenCart installed in a directory named "catalog"
I created an html file called "catalog" with the embed code.

The sang_embed files have been installed under:
/catalog/includes/templates/sang_embed/

The Sanguine Embedded Cart is now the default template as indicated in ZenCart Admin area.

Problem: when attempting to load catalog.php, my layout explodes :oops: and the sample data does not show.

Any ideas? I must have some files in the wrong directory?

Thanks!

ok, you've managed to confuse me. where did catalog.php come from? you should be creating an html file (you can call it catalog.html if you like), but you don't access that. just go to yourwebsite/catalog

i hope that makes a bit more sense.

d.

15 Nov 2007, 7:26 PM
#90
earlyfloyd avatar

earlyfloyd

New Zenner

Join Date:
Nov 2007
Location:
northern, CA
Posts:
25
Plugin Contributions:
0

Re: Easy embed template

"just go to yourwebsite/catalog"

Yep. That is exactly what I did.

My html file is also named catalog. Sorry for the confusion.

I am still trying to find the problem, but no luck so far.....

15 Nov 2007, 8:36 PM
#91
sanguisdesign avatar

sanguisdesign

Inactive

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

Re: Easy embed template

first a clarification: Urbanix if you want to call your template file template.php or catalog.php go ahead, the files just needs to have the mark up for your site in it. If you want to have additional php functions running in it please do so.

second a question: EarlyFloyd, could I get a url or a screen shot of what it supposed to look like (you can use lorem ipsom text for where teh ZC is supposed to be), and of what it looks like now.
Also on page 8 of this forum there is an updated release that may fix your issue.

JOsh

JOsh Beauregard
Sanguis Development

15 Nov 2007, 10:09 PM
#92
earlyfloyd avatar

earlyfloyd

New Zenner

Join Date:
Nov 2007
Location:
northern, CA
Posts:
25
Plugin Contributions:
0

Re: Easy embed template

sanguisdesign:

first a clarification: Urbanix if you want to call your template file template.php or catalog.php go ahead, the files just needs to have the mark up for your site in it. If you want to have additional php functions running in it please do so.

second a question: EarlyFloyd, could I get a url or a screen shot of what it supposed to look like (you can use lorem ipsom text for where teh ZC is supposed to be), and of what it looks like now.
Also on page 8 of this forum there is an updated release that may fix your issue.

JOsh

I pm'd the url to you. Almost there... yet for some reason, the html file appears to be loading twice?

16 Nov 2007, 6:59 AM
#93
sanguisdesign avatar

sanguisdesign

Inactive

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

Re: Easy embed template

that is the old ver of the sang embed. get the 1.1 that is on page 8 of this forum

JOsh Beauregard
Sanguis Development

16 Nov 2007, 5:00 PM
#94
earlyfloyd avatar

earlyfloyd

New Zenner

Join Date:
Nov 2007
Location:
northern, CA
Posts:
25
Plugin Contributions:
0

Re: Easy embed template

sanguisdesign:

that is the old ver of the sang embed. get the 1.1 that is on page 8 of this forum

I have performed the install again (just to be certain), but am sorry to report that the results are the same as before.

20 Dec 2007, 5:09 AM
#95
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

Well after a truly blonde moment, I got the template to work.. Next step is to test how my embbeded file works..

One small problem.. I've got this text showing at the top of my store > ' . $sitetemplate_bottom); ?> Can you tell me in language a three year old can understand how to fix this?? LOL

I'm sure whatever it is, that it's something really minor..

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.

20 Dec 2007, 2:25 PM
#96
sanguisdesign avatar

sanguisdesign

Inactive

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

Re: Easy embed template

did you get teh 1.1 that is talked about in the post above yours?
that is fixed there
sorry
I have been meaning to add this to the down load section to make sure that people get the latest but I am so very busy latly.

JOsh Beauregard
Sanguis Development

20 Dec 2007, 3:46 PM
#97
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

Ahhh.. I saw that post was from May and figured the latest and greatest version would be on your website.. LOL My bad.. I'll download and try again.. Thanks for the rapid response.. Let me go try one more time..

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.

20 Dec 2007, 4:29 PM
#98
sanguisdesign avatar

sanguisdesign

Inactive

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

Re: Easy embed template

alas my web site is like the show makers son.

JOsh Beauregard
Sanguis Development

20 Dec 2007, 4:40 PM
#99
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

No worries! I'm happy to report that the new download did the trick.. Thanks so much..

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 Jan 2008, 10:34 PM
#100
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

chas1:

Don't hold your breath, I don't think anyone outside of Brian21 can do that including the author of the easy embed, doing is one thing making it simple for others to understand and showing examples of it working so we can follow the bouncing ball seems to be one of the discouraging parts of this forum. In MHO Zen cart developer's should require any downloads be proven with a demo site like Dr. Byte's and example code that works for the version of the cart that is intended for, along with the person's who will supply the support and indicate if it's free or cost money. You can spend weeks searching this forum only to find the guy has disappeared or no longer supports his upgrade. So I read this whole series of rants, and decided to reserve judgement/comments until I had a chance to try this out for myself.

So here's my conclusion: While this solution is certainly not for novices, I am not a coding geek AT ALL, and yet I have managed to effectively, seemlessly and fairly EASILY use this template without nearly HALF the drama of the chas1 husband and wife team.. I certainly hope that they finally worked out their issues, but IMO, this is an AWESOME contribution and merely requires some understanding of some ZenCart basics in order to use it..

BTW - Urbanx's instructions are my BIBLE for using this contribution..

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.