Define Pages Editor

Locked

Started by robwuk on 24 Oct 2006, 4:06 PM · Views: 6,489

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
24 Oct 2006, 4:06 PM
#1
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Define Pages Editor

Ive successfully added quite a number of pages to my site with all the relavant paths and settings they are pulling the information from my html_includes folder, all my new pages have the name of the page defined and filenames correct for this to work with settings in my english.php setting the status to be enabled.

All is working fine, however i now want my customer to be able to alter these files themself which was the purpuse of having them using the define pages editor but in the admin, they are no showing up on the list.

I have altered the english.php in the admin folder and added my new pages to the existing list, but this does not make them show

Any ideas on what to do or if i have missed something

ive altered the filenames.php and english.php to gave the new pages names and titles, the new pages all have the correct locations for thieir access

Rob

24 Oct 2006, 4:57 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,732
Plugin Contributions:
0

Re: Define Pages Editor

Are you using some sort of Admin access mod?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

24 Oct 2006, 5:36 PM
#3
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Re: Define Pages Editor

nope, no mods have been added, its puzzling me, unless there is another file in the admin folder that neeeds amending, i do not know

looking at the define editor script i reads the contents of that folder but dont know why it dont see them,

Rob

26 Oct 2006, 8:32 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Define Pages Editor

There are basically 4 files that need to be added/created/altered for this to function fully. Check and get the about us module in the down loads area for exact instructions. on how to add

Some things to check

edit/add /includes/modules/sideboxes/MYTEMPLATE/information.php
edit/add modules/pages/your_page/header_php.php and change the "ABOUT_US" reference to "MYPAGE"
edit/add the extra_datafiles/your_page_filenames.php

Zen-Venom Get Bitten

27 Oct 2006, 10:35 PM
#5
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Re: Define Pages Editor

Ta for that, will have a look at them filenames and hopefully solve my problem

Rob

14 May 2007, 5:43 PM
#6
garyclemens avatar

garyclemens

New Zenner

Join Date:
Jan 2007
Location:
Florida/Missouri
Posts:
77
Plugin Contributions:
0

Re: Define Pages Editor

First let me say I have sucessfully installed the about_us module on another site. On the current site i'm working on, none of the pages that I have added show up under "define pages editor" in the admin. I have placed the define_about_us.php in the inludes/languages/english/html_includes folder and in inludes/languages/english/html_includes/custom folder.

I am able to manually edit the define_about_us.php in my custom or "overide" folder and it show up on the website correctly. Therefore I know it is reading from the over ride.

Can anyone tell me why it may not be showing up under the "define pages editor". I thank you in advance, you will make my day, I have spent 5 plus hours trying to figure it out! 1.3.7

14 May 2007, 6:10 PM
#7
garyclemens avatar

garyclemens

New Zenner

Join Date:
Jan 2007
Location:
Florida/Missouri
Posts:
77
Plugin Contributions:
0

Re: Define Pages Editor

Now that Im playing with it , when I change a page with the define pages editor, on preinstalled pages, ex: define_maine_page.php, the changes aren't working!

14 May 2007, 6:25 PM
#8
website_rob avatar

website_rob

Inactive

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

Re: Define Pages Editor

First, after saving whatever changes you want to make, are you not seeing any error msg. at the top of the page? For example: cannot write to file ...

Second, you may have reached one of the 'unseen roadblocks' which would be here:

inludes/languages/english/html_includes/custom folder

Before any work can be done, both these directories: html_includes & custom_folder, must have permissions of 777. The files being worked with in the 'custom_folder' must also, first be changed to 777 permissions.

It is important that after work has been done, the directory permissions for 'html_includes' & 'custom_folder' must be set to 755 - to help prevent future hacking.

As the Content of the files within the 'html_includes/custom_folder' do not change very often, might be best to make all changes at the same time. Then set your 755 permissions. When the next round of changes are to be done, the above steps must again be followed.

As it is easy to forget about doing the change and, if your Hoster is willing to work with you, you could ask to have the following changes made.

chmod 775 includes/languages/english/html_includes
chgrp nobody includes/languages/english/html_includes

It will prevent most types of unauthorized access to anywhere within the 'html_includes' directory whilst allowing the script to work as it should -- without having to worry about changing permissions back 'n forth.

The learning is in the doing.

Potent Products

14 May 2007, 6:35 PM
#9
garyclemens avatar

garyclemens

New Zenner

Join Date:
Jan 2007
Location:
Florida/Missouri
Posts:
77
Plugin Contributions:
0

Re: Define Pages Editor

Rob,

thanks for answering. I did have my permissions set correctly and received no errors when attempting changes

14 May 2007, 6:47 PM
#10
website_rob avatar

website_rob

Inactive

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

Re: Define Pages Editor

Ok, let's try a bit of forcing.

Delete all 'php' files in this directory: html_includes
Do not delete these two directories nor any files in them:
html_includes/classic -- html_includes/custom_folder

See what happens.

BTW, for clairification, you are using the Templates Overrides system, correct?

The learning is in the doing.

Potent Products

14 May 2007, 6:49 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Define Pages Editor

NOTE: for every file in the:
/includes/languages/english/html_includes/your_template_dir

You must have a matching file, even if empty, in:
/includes/languages/english/html_includes

Otherwise there is nothing to override so there is nothing to show ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 May 2007, 6:51 PM
#12
website_rob avatar

website_rob

Inactive

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

Re: Define Pages Editor

That is understood, Ajeh. I'm only starting from the beginning as removing the files I mentioned 'should' return an error. We would then know that part is correct and can move on the next part.

Troubleshooting at its most basic level. :wink:

The learning is in the doing.

Potent Products

14 May 2007, 7:44 PM
#13
garyclemens avatar

garyclemens

New Zenner

Join Date:
Jan 2007
Location:
Florida/Missouri
Posts:
77
Plugin Contributions:
0

Re: Define Pages Editor

Okay I deleted all of the php files under html_includes and left everything in the "custom" folder. Still missing the files I created, in the admin "define pages editor". When I use "define pages editor" for "define_main_page" the change is not working or showing up on the overide folder. If I go to the html_includes/custom and manually edit the "define_maine_page" file the change takes to the website. It seems as though its not reading from the overide folder. I even renamed define_main_page in the classic folder??????????

thanks for taking the time to help

14 May 2007, 8:56 PM
#14
website_rob avatar

website_rob

Inactive

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

Re: Define Pages Editor

Maybe I've been doing too much coding today, but even I'm starting to get confused. :blink:

In a default site I've setup, deleting all 'php' files in the 'html_includes' directory showed no files to Edit, in the drop-down list of Define Pages Editor. That is how it should be if there are no 'php' files.

A quick check also showed the 'php' files in the 'html_includes' directory, after I uploaded them again, had file permissions of 644.

But ... the 'php' files in the 'classic' directory, which I never touched, showed file permissions of 777.

Not sure if all this helps with your problem. Just reporting things as test / see them.

Think it's time to take a break, before I do. :flex:

The learning is in the doing.

Potent Products

16 May 2007, 9:25 AM
#15
garyclemens avatar

garyclemens

New Zenner

Join Date:
Jan 2007
Location:
Florida/Missouri
Posts:
77
Plugin Contributions:
0

Re: Define Pages Editor

Thanks to your help - I figured it out. I had changed my user name on the server and reloaded the site. Long story short somehow on the server there where two file systems, one for the original user name, and one for the new, yeah i know screwy, as soon as that was fixed no problems. It only took me two and a half weeks to figure out!

24 May 2007, 12:56 AM
#16
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: Define Pages Editor

I am facing the same problems and I am quite blur to find the solutions. I installed the Zen-Cart in the same server but for the second one, I installed it in a different directory but sharing the same database username with a different db_prefix for database tables. anybody, plz help me! :frusty:

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

12 Jul 2007, 12:07 AM
#17
rbobzin avatar

rbobzin

Zen Follower

Join Date:
Mar 2007
Posts:
112
Plugin Contributions:
0

Re: Define Pages Editor

I had same problem - added 3 new pages using the About_us mod as a guide, and all went well except the new pages didn't appear in the Admin - Tools - Define Pages Editor.

Ajeh to the rescue - her tip several posts up was right on the money! As soon as I copies the 3 files from the ...html_includes/custom directory to thew ...html_includes directory, Bingo, all worked perfectly. The instructions in the mod are not clear on that point, but now it works and an added bonus - I'm beginning to understand the override system a little better.

Thanks, Ajeh!

RAB

Why is it I'm always surprised when something actually works?

4 Dec 2008, 9:58 AM
#18
hitsrose avatar

hitsrose

New Zenner

Join Date:
Dec 2008
Posts:
1
Plugin Contributions:
0

Re: Define Pages Editor

Pls any one help me to my left side in set one text box and this text can be chenge in admin on Define Pages Editor...

Hisrose

4 Dec 2008, 2:24 PM
#19
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Define Pages Editor

Please start a new thread, explain your problem in detail, and include a link to your site.

Rob

Breakfast: the most important donut of the day.