Zen Cart Logo
Forums / All Other Contributions/Addons / Add/link to new pages without EZ pages? - using InfoPages instead?

Add/link to new pages without EZ pages? - using InfoPages instead?

Locked

Views: 3,354

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
28 Mar 2007, 1:58 PM
#1
backinthesaddle avatar

backinthesaddle

New Zenner

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

Add/link to new pages without EZ pages? - using InfoPages instead?

Hello. I am trying to update an older version of a site for someone (version 1.2.4.1). They want some new pages added in, which they can then edit, and I had assumed I could use EZ pages but it does not exist in this version. Any quick pointers on how I do it without completely upgrading? I am new to Zencart!

I found other pages posted at includes/languages/english/html_includes/classic/filename.php

I tried adding a test file in here hoping I would be able to edit it from the Zencart admin/tools/define pages but this didn't work.

My question is how/where do I add the page, make it available to edit from Zencart admin, and link to it, eg from a side menu?

Thanks in advance for any advice.

28 Mar 2007, 2:01 PM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

Try Infopages.. downloads section here at zencart forums..
archives.. other modules...
http://www.zen-cart.com/archived_contributions/other/

28 Mar 2007, 7:47 PM
#3
backinthesaddle avatar

backinthesaddle

New Zenner

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

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

misty:

Try Infopages.. downloads section here at zencart forums..
archives.. other modules...
http://www.zen-cart.com/archived_contributions/other/

Thanks for the advice. This seemed to offer exactly what I was looking for. However, I downloaded the infopages, read the read me file and carefully installed the scripts. When I went to use the admin tool to upload infopages.sql my browser was just a blank white screen!

I reversed the install and the admin area returned (phew!). I tried the install again, manually, but the same thing happened.

Any ideas what went wrong?

Thanks for your help.

28 Mar 2007, 9:27 PM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

use the admin tool to upload infopages.sql
Did you try adding infopages.sql direct, via phpmyadmin, and not via zencart admin?
BACKUP everything before trying this..
Have used info pages with zencart 1.25 to zencart 1.37...
not used version 1.24 however

14 Apr 2007, 3:55 PM
#5
backinthesaddle avatar

backinthesaddle

New Zenner

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

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

Oh, I am still really stuck. Can anyone please help?:dontgetit

I have taken a back up of the database and successfully run the infopages.sql file in PhpMyAdmin. I have reinstalled all the scripts but again get the same blank screen where the admin page should be.

I found an old archive thread titled 'unlimited information pages and links' and read through this. One suggestion was to delete admin/includes/functions/extra_functions/infopages_functions.php, due to a potential conflict with existing scripts. I tried this, but it made no difference either.

Can anyone please help with this, or advise on another solution to simply add about 5 extra pages linked to via a side box to version 1.2.4.1 (friend's site who does not want to upgrade). The pages are simply to contain static content with some links into her product catalogue.

Many thanks

14 Apr 2007, 4:01 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

The blank page suggests that one of the files you're uploading contains an error.
Try backing out again (just the files, not the SQL). Make sure admin works. And then upload each file one at a time to see which one busts things, testing between each load.

14 Apr 2007, 4:17 PM
#7
backinthesaddle avatar

backinthesaddle

New Zenner

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

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

Thanks for the advice. I have just reversed the install, got the admin area back up, and shall do as you suggest.

14 Apr 2007, 6:39 PM
#8
backinthesaddle avatar

backinthesaddle

New Zenner

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

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

Ok. I have loaded each file 1 at a time and tested for the login to the admin area after each one. The only one that gave me a problem was the file mentioned earlier;

admin/includes/functions/extra_functions/infopages_functions.php

So I backed this one out. According to other users this is not necessary as functionality is duplicated elsewhere.

To complete the install I logged into the admin area and enabled the infopages sidebox in Admin>Tools>Layout Boxes and got the following message on the public facing site:

1146 Table toys.zen_infopages doesn't exist

I had run infopages.sql in phpmyadmin and thought this is what that did? Create the table?

DROP TABLE IF EXISTS infopages;
CREATE TABLE infopages (
  `pages_id` int(11) NOT NULL auto_increment,
  `pages_title` varchar(64) NOT NULL default '',
  `alt_url` varchar(255) NOT NULL default '',  
  `pages_html_text` text,
  `status` int(1) NOT NULL default '1',
  `vertical_sort_order` int(3) NOT NULL default '0',
  `horizontal_sort_order` int(3) NOT NULL default '0',    
  PRIMARY KEY  (`pages_id`)
) TYPE=MyISAM AUTO_INCREMENT=2 ;

I admit this is all new to me and whilst I think I could create a table manually, I wouldn't know how to 'configure' it. I feel I am so nearly there and any support on completing this would be gratefully received.

Thank you

14 Apr 2007, 6:42 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

backinthesaddle:

1146 Table toys.zen_infopages doesn't exist

I had run infopages.sql in phpmyadmin and thought this is what that did? Create the table?

DROP TABLE IF EXISTS infopages;
CREATE TABLE infopages (
pages_id int(11) NOT NULL auto_increment,
pages_title varchar(64) NOT NULL default '',
alt_url varchar(255) NOT NULL default '',
pages_html_text text,
status int(1) NOT NULL default '1',
vertical_sort_order int(3) NOT NULL default '0',
horizontal_sort_order int(3) NOT NULL default '0',
PRIMARY KEY (pages_id)
) TYPE=MyISAM AUTO_INCREMENT=2 ;


Your site is expecting to use tablenames that start with zen_ as indicated in the error message.
Try adding zen_ to the infopages tablenames in your CREATE TABLE statement, and things should be fine.
14 Apr 2007, 6:54 PM
#10
backinthesaddle avatar

backinthesaddle

New Zenner

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

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

I have realised one of the problems. The infopages.sql script created a table called infopages instead of zen_infopages. I have renamed this and the public facing site is now not falling over when I enable the info pages side box.

However, now when I try to admin> tools> info pages I get the following error message;

Page infopages not included in table zen_admin_files

14 Apr 2007, 7:00 PM
#11
drbyte avatar

drbyte

Sensei

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

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

Sounds like you have the Admin Levels mod installed.
You'll need to go into its settings to add the infopages page to the list of authorizable pages, and then authorize users to use it.

14 Apr 2007, 7:15 PM
#12
backinthesaddle avatar

backinthesaddle

New Zenner

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

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

thanks for all your advice - I really do appreciate it.

Do you mean go into table zen_admin_files and insert a new row labelled info pages (I did warn you I was a novice!)

And what would I need to select a specific function for ID and page or leave those blank and just insert 'infopages' where the value field is?

Sorry about this, when I started down this road I thought I would just follow the steps and it would work! I am doing my best to sort it out and thanks for your support.

14 Apr 2007, 7:20 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

For the Admin Levels/Profiles contribution, I believe you can manage its security settings by going to Admin->Tools->Admin Settings. There should be a small link above the buttons on the right which allows you to grant permissions to individual users.

You shouldn't have to do direct database-edits. But then again, that depends on how the admin-levels mod was installed. It might have some other specific interface for adding support for extra pages to it.

14 Apr 2007, 7:32 PM
#14
backinthesaddle avatar

backinthesaddle

New Zenner

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

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

I have followed the Admin->Tools->Admin Settings link and there is a link to 'edit permissions'. I clicked on this and there was a big list of about 40 items eg define_pages_editor. All items were checked/selected. I could not see infopages there so am unsure as to how I would grant access to it. Do you know what I would need to do to get it to appear here so that I can grant permission to access it?

15 Apr 2007, 2:06 AM
#15
drbyte avatar

drbyte

Sensei

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

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

Sounds like this is necessary:> Do you mean go into table zen_admin_files and insert a new row labelled info pagesThe new row should be labelled infopages, according to the error message:> Page **infopages **not included in table zen_admin_files

16 Apr 2007, 1:28 PM
#16
backinthesaddle avatar

backinthesaddle

New Zenner

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

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

Yippee! May seem a small thing to you but I have done it - hurrah hurrah! For anyone else struggling and whom this might help, I inserted a row into zen_admin_files table labelled infopages and then went back into admin>tools>admin settings>edit permissions and was able to select info pages. Doing this meant I had access to info pages from the admin area, and now I just have to play around to get it to do what I want on the public site!

Thanks DrByte for your support - gave me the confidence to go ahead and try things out!

26 May 2007, 3:53 PM
#17
chas1 avatar

chas1

New Zenner

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

Re: Add/link to new pages without EZ pages? - using InfoPages instead?

misty:

Try Infopages.. downloads section here at zencart forums..
archives.. other modules...
http://www.zen-cart.com/archived_contributions/other/

I don't know if it's too late to ask in this thread, but I have just joined this forum
and I have not figured out how to post to it yet.

I have downloaded the addon infopages to a 1.37 template that I have running on my local machine using xampp and have unzipped the infopages into the folder containing the zencart template named storeinfo, also have ran the sql script using myphp & the tool for sql in the admin of zencart. I checked to make sure the tables were created in mySql db and they are there with no error's. I have opened the admin portion of storeinfo and can't find any reference to the infopages I have looked at the layout control for sideboxes not there. How do you enable the info pages in the admin section, where do you look for them also could you be so kind as to enlighten me on how to post to this forum. Most forums have a button at the bottom that you select when you want to post, I can't find the button.

Thanks ever so much
chas1