Zen Cart Logo
Forums / All Other Contributions/Addons / Define Pages Generator addon - Support

Define Pages Generator addon - Support

Views: 29,960

Results 81 to 100 of 137
6 May 2008, 2:24 PM
#81
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Define Pages Generator addon - Support

sandeep:

These are the errors

Notice: Object of class queryFactoryResult could not be converted to int in /xxxxxx/xxxxxx/public_html/final/includes/application_bottom.php on line 16Which has nothing to do with this module.

6 May 2008, 2:24 PM
#82
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

cs_jono:

Hey when I go to use this tool I get this messsage that pops up....

Application attempted to perform an operation not allowed by the security policy. To grant this application the required permission, contact your system administrator, or use the Microsoft .NET Framework Configuration tool.

If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

Request for the permission of type
'System.Security.Permissions.FilelOPermission, mscorlib, Version=2.0.0.9, Culture=neutral, PublicKeyToken=b77a5c671934e089

Does any one now how to fix this?
You install .net framework which can be found on microsoft page.

19 Jun 2008, 7:33 PM
#83
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: Define Pages Generator addon - Support

Hi I just wanted to say how great I think this program is. I've been unsure for a while whether to use Define Pages or E-Z Pages for a particular project where by many extra pages will be needed. I really wanted to avoid E-Z Pages because of their meaningless URLs but was always put off by the complexity of the Define Pages. This contribution solves this problem. :smile:

3 Jul 2008, 8:49 PM
#84
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

This generator is amazing. I was sitting here forever individually changing names. Only problem is the new pages aren't showing up in Configuration-->Define Page Status and they also aren't showing up in my Information Sidebox. I did alter the information.php file to include my new pages.

3 Jul 2008, 8:59 PM
#85
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: Define Pages Generator addon - Support

khopek:

the new pages aren't showing up in Configuration-->Define Page Status

Check to make sure the file is in both of these locations:

includes/languages/english/html_includes

and

includes/languages/english/html_includes/your_template

3 Jul 2008, 9:12 PM
#86
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: Define Pages Generator addon - Support

Sorry I thought you said Define Pages Editor.

I don't think they're supposed to appear under Define Page Status.

4 Jul 2008, 12:49 AM
#87
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

Oh well then I guess everything is perfect! One thing though, is my zenID supposed to be showing in every link to the new Defines Pages?

28 Jul 2008, 1:35 PM
#88
dphillips209 avatar

dphillips209

New Zenner

Join Date:
Jul 2008
Location:
CA, USA
Posts:
1
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

banswidthjunkie:

About
Define Pages Generator isn't exactly a zencart module, you would probably call it a meta-module, it is a small Windows application that makes it really easy to make new "define pages."

All you need to do is specify the name you want to give your page, the name of your current template and a directory to build the directory / file structure in and it does the rest. This directory structure can then be copied over to a zencart installation to make the define page accessible.

Motivation
Making a new define page seems to be a really fiddly task. However these pages are pretty useful, since unlike ezpages they don't get stored in the database, so they are easier to develop (ie you can use Dreamweaver). With a few simple tweeks, it is quite straight forward to give them a menu structure (ie pretend to nest one inside the other so the breadcrumb shows home::parent::child::....) and you can use php inside the pages which I don't think you can do with ezpages.

Acknowledgements
The code it generates is based on the "About Us" module, which seems to be the main resource for working out how to build a new define page.

Download
The Application can be downloaded from: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=804

Important
NOTE: It only runs under Windows and although I am a Linux user there is little likelihood of me porting it over. You need to have the .NET 2.0 framework to run it, you can get this from http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en
**
If you have a question about how to use the application, or you find a bug please let me know.**

I just used the define pages generator and uploaded the files to my server, and all seems well - accept...

when I go to define pages editor, I can pull up the page, enter the text, which right now I have 'coming soon'

but when I type the URL in to the browser, only a blank page comes up...
http://www.1999-or-less.com/index.php?main_page=faq
I know it must be there, because the 'page not found' doesn't come up, like if you typed in http://www.1999-or-less.com/index.php?main_page=fakepage (page not found because it don't exist)

so my problem is, how do I get the text I type in the define pages editor (ie coming soon) to appear on the page:
http://www.1999-or-less.com/index.php?main_page=faq

thanks
[email protected]

3 Aug 2008, 8:36 PM
#89
pacdad avatar

pacdad

New Zenner

Join Date:
Jul 2006
Location:
St. Charles, MO
Posts:
30
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

ok, i've beaten my head over this, and I just can't figure out how to get my NEW page from the generator to show up on the site, in the sidebox on the right that says, Additional Information, and instead of page 2, page 3, etc. www.div8hardware.com
I've created a page called "define_lock_functions.php", and it IS showing up under the TOOLS>DEFINE PAGES EDITOR, and yes i can edit THAT. It is NOT showing up on CONFIG>DEFINE PAGE STATUS. How do I get this to show up?
Also, can anyone tell me how to change the name of the pages that show up on that sidebox?

5 Aug 2008, 2:25 AM
#90
oakwood avatar

oakwood

New Zenner

Join Date:
May 2008
Posts:
85
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

Thanks for this mod, it rocks!!!

pacdad:

ok, i've beaten my head over this, and I just can't figure out how to get my NEW page from the generator to show up on the site, in the sidebox on the right that says, Additional Information, and instead of page 2, page 3, etc. www.div8hardware.com
I've created a page called "define_lock_functions.php", and it IS showing up under the TOOLS>DEFINE PAGES EDITOR, and yes i can edit THAT. It is NOT showing up on CONFIG>DEFINE PAGE STATUS. How do I get this to show up?
Also, can anyone tell me how to change the name of the pages that show up on that sidebox?

Pages will not show up in CONFIG>DPS. To change the name of the side box, find the php file. I don't do sideboxes but I wanted to put them in the header, I just had to find the tpl_header.php file to change the link in the header. I added this to the php file:

<li><?php echo '<a href="' . zen_href_link(FILENAME_ABOUT_US, '' ) . '">About Us</a>'; ?></li> where the red text is the name that appears in the header. :cool:
5 Aug 2008, 11:10 AM
#91
pacdad avatar

pacdad

New Zenner

Join Date:
Jul 2006
Location:
St. Charles, MO
Posts:
30
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

Oakwood:

Pages will not show up in CONFIG>DPS.
Thanks for replying Oakwood.
Actually the PAGES do show up in the DPS, it's how you turn them on and off, add/remove the links/text. I'm not trying to change the HEADER of the sideboxes, that I know how to do. It's turning the new created pages on so they'll show up IN the sidebox, and renaming the existing pages in there (and the DPS) that I'm trying to accomplish. Any more thoughts?

6 Aug 2008, 11:19 PM
#92
oakwood avatar

oakwood

New Zenner

Join Date:
May 2008
Posts:
85
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

I was reffering to the header bar (maybe its called nav bar?) at the top (home, log in, etc). I am no pro but I would assume if you found the php file for the sideboxes that you were looking for and implemented that code it would work. I dont know where to tell you to look for the php file because I dont use sideboxes.

Hope that helps.

11 Aug 2008, 8:43 AM
#93
anno avatar

anno

Zen Follower

Join Date:
Jan 2004
Location:
Netherlands
Posts:
74
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

hi,

I have been reading this topic as good as possible, but i still have a question i would like to ask:

i am using the define pages generator (it's great!) to make pages i want to add to the information sidebox. I have put the files in the correct directories and i can see the files in de editor.

I have read a lot of adding pages to a header but how to add the pages to the information box?
what file to change? and what's the code? Can someone give the answer to my questions? That would be great.

e.a. i have a file bedrijven.php what's the line to add to the file(s) i have to change?

28 Aug 2008, 10:01 PM
#94
sjunianto avatar

sjunianto

New Zenner

Join Date:
Aug 2008
Location:
Jakarta
Posts:
4
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

khopek:

This generator is amazing. I was sitting here forever individually changing names. Only problem is the new pages aren't showing up in Configuration-->Define Page Status and they also aren't showing up in my Information Sidebox. I did alter the information.php file to include my new pages.

hello Khopek and Anno,
i'm new comer in zen-cart. To add the new define page to Define Page Status, you must execute this SQL command in your database (you can use phpmyadmin) :

INSERT INTO configuration( configuration_title, configuration_key, configuration_value, configuration_description,
configuration_group_id, sort_order, last_modified, date_added, use_function, set_function ) VALUES (
'Name of your Form', 'DEFINE_NAME_OF_YOUR_FORM_STATUS', '1', 'Enable Name of Your Form Link/Text?<br />0= Link ON,
Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF,
Define Text OFF', '25', '84', now( ) , now( ) , NULL , 'zen_cfg_select_option(array('0', '1', '2', '3'),');

notes :

  • change name_of_your_form with the name of your form
  • if you use prefix for the table, i.e : 'zen_', then change the table configuration with zen_configuration in SQL command above

To add your new define page in sidebox, you must edit the sidebox file. For example, open your includes/modules/sideboxes/information.php. Add these lines to your information.php under unset($information); :

if (DEFINE_NAME_OF_YOUR_FORM_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_NAME_OF_YOUR_FORM) . '">' . BOX_INFORMATION_NAME_OF_YOUR_FORM . '</a>';
}

note :

  • also change name_of_your_form with the name of your form

save the file and refresh your Online Catalog.

regards,

siyam junianto

29 Aug 2008, 8:03 PM
#95
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: Define Pages Generator addon - Support

banswidthjunkie I just think this app is better then sliced bread it saves so much time.
As a small give back I am posting this snippet of code I use for custom define page meta tags.

I was in need of real meta tags for my Define Pages so I have
come up with this small snippet of code to allow custom meta tags for
all of my define pages. I am using it with v1.3.8

How to setup:

If you are NOT using an overwrite meta_tags file then
copy /includes/modules/meta_tags.php to your /includes/modules/YOUR_TEMPLET/meta_tags.php if you are
then just open /includes/modules/YOUR_TEMPLET/meta_tags.php to edit.
Find: Around Line 336

 // NO "break" here. Allow defaults if not overridden at the per-page level
 default:
 define('META_TAG_TITLE', (defined('NAVBAR_TITLE') ? NAVBAR_TITLE . PRIMARY_SECTION : '') . TITLE . TAGLINE);
 define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . (defined('NAVBAR_TITLE') ? NAVBAR_TITLE : '' ) . SECONDARY_SECTION . KEYWORDS);
 define('META_TAG_KEYWORDS', KEYWORDS . METATAGS_DIVIDER . (defined('NAVBAR_TITLE') ? NAVBAR_TITLE : '' ) );
}

Replace with:

// NO "break" here. Allow defaults if not overridden at the per-page level
 default:
 /********************************************************************
  *
  * Define Pages Meta Tags SkipWater 08.08.08
  * Due to unknown page names we look for DESCRIPTION_DEFINE_PAGE
  * To setup add your meta tag values to:
  * /includes/languages/english/YOUR_TEMPLET/define_page_file_name.php
  * define('TITLE_DEFINE_PAGE', (defined('NAVBAR_TITLE') ? NAVBAR_TITLE . PRIMARY_SECTION : '') . TITLE); // use as default or change
  * define('DESCRIPTION_DEFINE_PAGE','Your Description Here');
  * define('KEYWORDS_DEFINE_PAGE','Your Keywords Here');
  * If you do not want to use Define Page Custom Meta Tags
  * do not declare them in your /includes/languages/english/YOUR_TEMPLET/define_page_file_name.php file.
  * 
 ********************************************************************/
 if (defined('DESCRIPTION_DEFINE_PAGE')){
   	define('META_TAG_TITLE', TITLE_DEFINE_PAGE);
 		define('META_TAG_DESCRIPTION', DESCRIPTION_DEFINE_PAGE);
 		define('META_TAG_KEYWORDS', KEYWORDS_DEFINE_PAGE);
 } else {
 		define('META_TAG_TITLE', (defined('NAVBAR_TITLE') ? NAVBAR_TITLE . PRIMARY_SECTION : '') . TITLE . TAGLINE);
 		define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . (defined('NAVBAR_TITLE') ? NAVBAR_TITLE : '' ) . SECONDARY_SECTION . KEYWORDS);
 		define('META_TAG_KEYWORDS', KEYWORDS . METATAGS_DIVIDER . (defined('NAVBAR_TITLE') ? NAVBAR_TITLE : '' ) );

 }
}

Now to add meta tags to your define page open
/includes/languages/english/YOUR_TEMPLET/define_page_file_name.php
Find:

// This is used to display the heading and the navigation bar
	define('NAVBAR_TITLE', 'title');
	define('HEADING_TITLE', 'heading title');

add below it:

// This is used for custom define page meta tags
    define('TITLE_DEFINE_PAGE', (defined('NAVBAR_TITLE') ? NAVBAR_TITLE . PRIMARY_SECTION : '') . TITLE); // use as default or change
    define('DESCRIPTION_DEFINE_PAGE','Your Description Here');
    define('KEYWORDS_DEFINE_PAGE','Your Keywords Here');

Thanks Again:clap:
Skip

20 Sep 2008, 4:12 AM
#96
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

Hello
I downloaded this mod and Iam trying to use to generate links in my items description for extra information regarding these items for example sample Installed item or Available options, Now My problem is locating the Directory, Iam not sure I understand what you mean by Directory in this File. I tried to use the browse button and was able to create files on my desktop, but when i type in the link of where I want these files to be create i get a message Directory does not exist. Iam typing in https://www.coolcarpartsonline.com/dev/info/pages which is where I want to create these pages. Please can you explain more about the "directory".
Would this work for my application????
"Creating pages to have link to into my product description."

13 Dec 2008, 5:22 PM
#97
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

I'm wondering if there is any update necessary for version 1.3.8 for this "meta-module"?

This is an excellent tool. I'm almost afraid I might get carried away and add too many pages to my site, lol.

Thanks for this.

13 Dec 2008, 9:14 PM
#98
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: Define Pages Generator addon - Support

mafiasam:

I'm wondering if there is any update necessary for version 1.3.8 for this "meta-module"?

This is an excellent tool. I'm almost afraid I might get carried away and add too many pages to my site, lol.

Thanks for this.

If you are asking about the code I posted No this code should work in all 1.3x versions.

Skip

3 Mar 2009, 11:43 PM
#99
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

Using 1.3.8

I used the generator to build a SPONSORS page.

I have uploaded the files and checked them a half dozen times. The page actually shows up in the define pages editor and I am able to make changes to it there but the page is completely blank except for the Title.

http://oldwestpokersupplies.com/index.php?main_page=sponsors

or

http://oldwestpokersupplies.com/sponsors.html

All the files and folders have the correct file attributes. I've done this before but since I upgraded to 1.3.8 I think this is my first time adding a page. I'm just wondering what I am missing.

Does anyone have any ideas?

Salvatore

8 Mar 2009, 11:44 PM
#100
matbourne avatar

matbourne

New Zenner

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

Re: Define Pages Generator addon - Support

just checked your site but looks like you've got it working now... :clap: