If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Only starting so i just want to kiss!!!

Only starting so i just want to kiss!!!

Locked

Started by alnaad on 28 Jun 2009, 8:05 AM · Views: 2,708

Results 21 to 35 of 35
This thread is locked. New replies are disabled.
30 Jun 2009, 4:07 AM
#21
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Only starting so i just want to kiss!!!

thanks afo for your dedication. do you wnt me to send some screen shots of what my set up is because i do think i have done evething you ask me to do.
I can see my template "test" in the admin panel. But on the site itself the ad is there and as i already mentioned the only way for me to get rid of it is by deleting contents of file mentioned in earlier post.

30 Jun 2009, 8:41 AM
#22
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

:frusty::frusty::frusty:
That's just for now....

Soon:clap::clap::clap::clap:
with your help
How can we understand each other?
I keep checking what i have done and obviously i am missing something but what?
waiting for the book...
need to get going

30 Jun 2009, 12:22 PM
#23
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

i am writing this as much for myself to retrace my journey so far as for you to get an idea of where i am at.

At this stage i am only working on my local server with MAMP that is located in Applications folder of the Mac. Following tutorials i created in MAMP/htdocs a folder called zencart138(why138? beats me but i thought maybe i'll find out later) and copied contents of the zip file i downloaded from you guys into it.

In MAMP/htdocs/zencart138/includes/templates i have created a folder called "test" and in it at this stage i have:
FOLDER=common(empty)
FOLDER=css(with 3 stylesheets.css print,buttons, and stylesheet.css that i edited to get the brgd i wanted and to center my logo)
FOLDER=images(with my new logo and a pattern for bgrd)
FOLDER=sideboxes(empty)
FOLDER=templates(empty)
define_main_page.php(the one that has me scratching my head about)
index.php (the one i edited and that allows me to see my "test" template in the admin panel as a choice.
I do get something on my local server but now i am wondering if it is really my test template or just the default since afo told me that i should not see the ad for the book.

Now now i also have in MAMP/htdocs/zencart138/includes/languages a folder "test" i copied from where the first time i created it.
As i am writing this i just ask myself: should i get rid of all other files except english.php that i edited to change TITLE and SITE_TAGLINE ?Hang on.... tried that, didn't make a difference.

To finish i understand that everywhere i see "classic" folder i can put on the same level a folder called "test" in which i put an edited version of file needed to change something.

So now... Where do i stuff up?

30 Jun 2009, 1:22 PM
#24
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

How about taking another look at the list I posted earlier and duplicating the other folders/files I mention?

  • includes/languages/YOUR_TEMPLATE/english.php
  • includes/languages/english/YOUR_TEMPLATE/index.php
  • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
  • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

30 Jun 2009, 2:17 PM
#25
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

i am sure i will get it since i'm not the type to easily give up:wink:
since you're not telling me that i made an error somewhere i'll assume that "includes" is the one i find in MAMP/zencart138. Are we on the level here ?

If yes well i have done and checked and re checked every folder move you listed earlier and no go,the ad is still there.

Done my best to explain how i went about it. Please tell me what else you need to know for you to help me.

Really appreciate your help:cheers:

1 Jul 2009, 5:22 AM
#26
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

Please? When you get up from your beauty sleep...

1 Jul 2009, 1:09 PM
#27
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

The ad for the book is coming from /includes/languages/english/html_includes/classic/define_main_page.php. Copy /includes/languages/english/html_includes/define_main_page.php into /includes/languages/english/html_includes/test/define_main_page.php and go from there.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

1 Jul 2009, 2:26 PM
#28
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Only starting so i just want to kiss!!!

After making the copy of the file as afo mentioned, the content of the various define_xxxxxxxx.php files can be edited via your Admin->Tools->Define Pages Editor.
And, yes, it's okay to completely delete the CONTENTS of that file. But it's best not to delete the actual file itself or else the Define Pages Editor won't be able to let you edit the file ... since you've deleted it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Jul 2009, 7:44 AM
#29
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

thanks for your reply. this file is relevant to the ad right? I don't want the ad so i probably won't want to edit it either. My question is then why keep an empty file ? :unsure:

I need to understand:yes:

2 Jul 2009, 10:01 AM
#30
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

When using php, understand that php "cobbles together" all the elements to build a page. The php will "request" data and additional resources from a variety of places, and expects such "requests" to be "honoured".

If it cannot find another php file from one of these requests it assumes there is something wrong (bad code, missing file, misconfiguration) and throws back an error...

In essence, it says:

"I was asked to call in resources from "define_page_1.php" but when I looked for that file, it wasn't there. So I am reporting an error that the file was not there."

php needs to find that reference. When it gets there it says: "OK... I've found this file, now let's read through it to see what it wants me to do with it..."

If the file tells it to do "nothing at the moment", it says "OK.. do nothing, and carry on to the next bit..."

NEVER remove core files. If you don't want a constant (string of text or html) displayed, you just delete the content.

20 years a Zencart User

2 Jul 2009, 3:17 PM
#31
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

Thanks for the explanation schoolboy. it helps me somehow...
Later i thought well what about if i do want something like this ad, i would have to get some code in it (actually to me it looks more like html than php for a php file). oh well i do have a lot to learn but i'm excited:onfire:

When i know why i know how. This is just me and the way my mind works. Hope you guys don't mind me asking

2 Jul 2009, 3:24 PM
#32
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

alnaad:

Thanks for the explanation schoolboy. it helps me somehow...
Later i thought well what about if i do want something like this ad, i would have to get some code in it (actually to me it looks more like html than php for a php file).

what is the file extension... .html, or .php ? (looks like php to me...)

alnaad:

Hope you guys don't mind me asking That is what the forum is for... In 99% of cases, you'll probably get a reply... but nobody is obliged to help anybody else on this forum so one small word of advice... never criticise the forum or its members if you don't get an answer (no-one gets paid for giving advice here)... but questions... yes... ask them as much as you want.

20 years a Zencart User

2 Jul 2009, 3:56 PM
#33
alnaad avatar

alnaad

New Zenner

Join Date:
Jun 2009
Location:
Melbourne Australia
Posts:
54
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

schoolboy:

what is the file extension... .html, or .php ? (looks like php to me...)
define_main_page.php

schoolboy:

That is what the forum is for... In 99% of cases, you'll probably get a reply... but nobody is obliged to help anybody else on this forum so one small word of advice... never criticise the forum or its members if you don't get an answer (no-one gets paid for giving advice here)... but questions... yes... ask them as much as you want.

Keep your shirt on school boy, you don't have to talk to me this way....
You don't have to respond to me if you don't want to. I don't think that i have showed any lack of respect. My apologies if i gave you this impression.

Friends now?

2 Jul 2009, 4:07 PM
#34
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Only starting so i just want to kiss!!!

It was general advice... not specific to you personally.

(As it happens, it's damned hot here at wimbledon - yes, I have my blackberry browsing the www - so I have my shirt off as we speak! :D )

20 years a Zencart User

2 Jul 2009, 4:43 PM
#35
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Only starting so i just want to kiss!!!

alnaad:

Later i thought well what about if i do want something like this ad, i would have to get some code in it (actually to me it looks more like html than php for a php file)
The webserver processes all pages as web content.
But, if the file extension is set to .php, it also runs that page through the PHP language parser, and treats anything between <?php and ?> tags as PHP code, inserting whatever output comes from that PHP code into the browser output as it goes along. Thus, HTML and PHP are interspersed amongst each other. That's why you'll see a mixture of HTML and PHP in template files. As for the define pages, for the most part they contain just HTML, and no <?php or ?> tags because generally they don't actually "do" any PHP stuff.

Remember ... PHP is most commonly used just to generate the HTML that is used to draw the web page.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.