Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 08:06:07 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155480 Posts in 21708 Topics by 7757 Members
Latest Member: rofroodoOvego
* Home Help Search Login Register
Pages: [1] 2 3   Go Down
Print
Author Topic: New Multi Page Creation Module  (Read 8578 times)
vizmotion

Offline Offline

Posts: 107


« on: March 05, 2009, 02:37:59 PM »

To help with creating bigger sites faster I developed a admin module for adding many pages at one time. The module is simple.

Direction
Go to the admin tool
Type in the name of the pages that you want
Select the page types
Select their parent
Save to create the pages.
If you want to create more then continue the process

This will put a blank page at the appropriate structure that you have defined. I hope this module helps generate more modules for creating and managing larger sites. Please feel free to modify or add to the module to make it better.
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #1 on: March 05, 2009, 02:45:52 PM »

Hello, this looks promising.
Unfortunatly I get a lot of error reporst:
Code:
Notice: Undefined variable: error in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 89
Notice: Undefined variable: run in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 90
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 90
Notice: Undefined variable: pagenum in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 100
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 100

Notice: Undefined variable: run in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 104
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 104
Pages Created:
Notice: Undefined variable: created in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 164
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 164
Notice: Use of undefined constant PHP_SELF - assumed 'PHP_SELF' in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 176
Notice: Undefined variable: options in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 267
Notice: Undefined variable: options in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 272
Notice: Undefined variable: options in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 272
Notice: Undefined variable: options in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 272
Notice: Undefined variable: options in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 272
Notice: Undefined variable: options in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 272
Notice: Undefined variable: options in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 272
Notice: Undefined variable: options in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 272
Notice: Undefined variable: typeoptions in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 200
Notice: Uninitialized string offset: 0 in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 211
Notice: Uninitialized string offset: 1 in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 211
Notice: Uninitialized string offset: 2 in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 211
Notice: Uninitialized string offset: 3 in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 211
Notice: Uninitialized string offset: 4 in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 211
Notice: Uninitialized string offset: 5 in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 211
Notice: Uninitialized string offset: 6 in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 211
Notice: Uninitialized string offset: 7 in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 211
Notice: Uninitialized string offset: 8 in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 211
Notice: Uninitialized string offset: 9 in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 211

Somehow I like it.
Could be very handy indeed.

Regards,
Stefek

Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
vizmotion

Offline Offline

Posts: 107


« Reply #2 on: March 05, 2009, 02:59:54 PM »

Hmm, I will look into it later today. Are you running WB 2.7? What error reporting settings do you have set?
« Last Edit: March 05, 2009, 03:15:46 PM by vizmotion » Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #3 on: March 05, 2009, 03:21:01 PM »

WB 2.7 on Xampp (WIN XP).
Error reporting [E_ALL]

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
vizmotion

Offline Offline

Posts: 107


« Reply #4 on: March 05, 2009, 04:24:05 PM »

Here is an update for MultPage. I think I got all the warnings handled. Give it a try and let me know what you think. Thanks everyone.
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #5 on: March 05, 2009, 05:04:04 PM »

Hello.
The Module itself is a handy Admin-Tool. Like it.

But I still get some errors, if I push the SAVE Button without filling in something.

Notice: Undefined variable: run in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 86
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 86
Notice: Undefined variable: pagenum in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 96
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 96
Notice: Undefined variable: run in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 100
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 100
Pages Created:

Notice: Undefined variable: created in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 160
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wb-testu\modules\multipage\tool.php on line 160



Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
vizmotion

Offline Offline

Posts: 107


« Reply #6 on: March 05, 2009, 05:12:01 PM »

Oops forgot to check for no entry. Do you get any errors when you put in a name?
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #7 on: March 05, 2009, 05:31:07 PM »

No. Then it's fine - unless I didn't press the button without putting info before.

I want to ask you for a further adjustment on this.
It's meant for Multilingual Usage:

instead of hardcode the Names in english like "Save", "Type" an so fort, please use the appropriate  Language Variables for that instead. As for Example:
 {$TEXT['SAVE']}

Furthermore please think over the name "Title".
It's misleading a little. Because it is the "Menu Title" (Yes, it is wrong also in the Backend ->pages->create new page).

There is also another point which you should think about to make this a really handy tool:
Please make it possible to choose if the new page has to be visible, hidden, registered ...

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
vizmotion

Offline Offline

Posts: 107


« Reply #8 on: March 05, 2009, 06:08:19 PM »

Hey Stefek,

No problem I can put the multilingual text terms in.

The title is really both menu and page title. So I used the same convention as the page tab. Should I try and name it differently.

> There is also another point which you should think about to make this a really handy tool:
> Please make it possible to choose if the new page has to be visible, hidden, registered ...

Not sure how what the user interface should look like when you have a private or registered user. Any thoughts?
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #9 on: March 05, 2009, 06:19:59 PM »

Hello.

Quote
The title is really both menu and page title. So I used the same convention as the page tab. Should I try and name it differently.
I think, "TITLE" is fine. No need to change this into "menu title".
Quote
> There is also another point which you should think about to make this a really handy tool:
> Please make it possible to choose if the new page has to be visible, hidden, registered ...

Not sure how what the user interface should look like when you have a private or registered user. Any thoughts?
Maybe you misunderstood me.
What I meant is the ability to choose the visibility-condition while creating the new pages wink

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
vizmotion

Offline Offline

Posts: 107


« Reply #10 on: March 05, 2009, 06:35:21 PM »

Yes, I understand. But when your visibility is private or registered then you have to display who has access to the page. For sites that have a lot of different group types the question becomes how do you provide that list for each page. You also have to consider the ability to edit to if you have different groups with editing capabilities.
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #11 on: March 05, 2009, 07:06:17 PM »

Yes.
Now I see what you mean.

At least I would say we need as MINIMUM visible and none.
Otherwise - on a running installation - you have blank pages in you menu wink

I myself would say, "none" shold stay as default.
Anyway you will need to make additional settings changes to this pages.

I think its enough then.

What you think?

Regards,
Stefek

Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
vizmotion

Offline Offline

Posts: 107


« Reply #12 on: March 06, 2009, 02:59:02 AM »

Hmm not sure what you mean by blank pages. Every page now that is created by the multiple page creator is public so each page will show on menu at the appropriate place. I am adding the multilingual to the module tonight and will get it up by tomorrow.

Anyone else have any thoughts about the module?
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #13 on: March 06, 2009, 03:27:55 AM »

Hmm not sure what you mean by blank pages. Every page now that is created by the multiple page creator is public so each page will show on menu at the appropriate place.

Hello.
What I mean with "the page is blank" is that there is no content inside the page. So it is better to set the visibility-condition to "hidden" or to "none" instead of "visible".

Think about a Situation where you have 50 Visitors on your page and you create additional pages which are "blank". Your visitors will become confused a little, don't you think?  smiley

Regards,
Stefek

P.S.: Thanks for thinking about the Language variables.
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
vizmotion

Offline Offline

Posts: 107


« Reply #14 on: March 06, 2009, 04:11:21 AM »

That makes sense. I will look into what it would take to add visible, hidden and none. Should be pretty easy. Thanks for looking at the module and giving great feedback.
Logged
vizmotion

Offline Offline

Posts: 107


« Reply #15 on: March 06, 2009, 02:31:32 PM »

OK here is the latest version of the MultiPage.

Thanks for all your comments Stefek.

It now has visibility (public,hidden, and none). Defaults to public [sorry I am using it to create sites from scratch so want them to all be public  smiley ]

It is multilingual (changed help messages also to use language settings)

Fixed no title bug so it will give message to add a page title.

I think that covers it. Interested in any feedback.

Finally it would be really great to have a massive change tool for pages. This would allow you to select a number of pages and change the properties on them. Such as visibility, parent, template, etc. Then going from all the pages being public to being hidden is no big deal. Anyone interested in collaborating on a tool like this? You can send me a direct message if you are?
Logged
vizmotion

Offline Offline

Posts: 107


« Reply #16 on: March 06, 2009, 02:32:44 PM »

I guess it would help to post the file  wink
Logged
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #17 on: March 06, 2009, 02:34:39 PM »

Hey, I just stumbled upon this module. I tried it and I think it's a great one! Very nice that you can create both parent and childpages at the same time as well...

A multichange tool for existing pages would be wonderful! I wish I could code...
« Last Edit: March 06, 2009, 02:44:47 PM by Argos » Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #18 on: March 06, 2009, 04:32:55 PM »

Thanks for all your comments Stefek.
Yes, you're welcome!

I like this module and I created  stylesheet for the backend.

Please have a look.
I am no coder - i didn't touch the PHP itself expect where I needed to put a CSS selector between the lines.

This version will not overwrite the existing one. Please deinstall first.


Finally it would be really great to have a massive change tool for pages. This would allow you to select a number of pages and change the properties on them. Such as visibility, parent, template, etc. Then going from all the pages being public to being hidden is no big deal. Anyone interested in collaborating on a tool like this? You can send me a direct message if you are?
Yes, I agree with this.
This was a really handy module.

Regards,
Stefek

Download removed. please find attached a newer version later in this thread.
« Last Edit: March 08, 2009, 11:18:07 PM by Stefek » Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
vizmotion

Offline Offline

Posts: 107


« Reply #19 on: March 08, 2009, 12:24:33 AM »

Hey Stefek, Good job on the backend. It looks really nice. Maybe we will have a chance to work together again. You do good work.
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #20 on: March 08, 2009, 01:18:36 AM »

Thanks.

Always welcome,if you have good ideas for modules. wink

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #21 on: March 08, 2009, 12:01:55 PM »

Hi,

I tried the latest version, but it doesn't work. I removed the previous version (which worked), installed the new version, created some pages, and pressed the save button. Nothing happens. It seems like a dead button. No error, no new pages, no message, nothing.

Default WB2.7 installation...
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
vizmotion

Offline Offline

Posts: 107


« Reply #22 on: March 08, 2009, 01:51:11 PM »

Was it version 0.9.4 that did not work? I have used that now on two different sites and it worked great. Were you using it with English as the default language? Maybe there was an error message and it did not display because of a different language. If there are pages already names like the one you created that will produce an error from the language file and not do anything.
Logged
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #23 on: March 08, 2009, 02:09:53 PM »

Hi,

yes, I used 0.9.4. As a test I removed this one again, and reinstalled and tried version 0.93. That worked fine. Then I removed v0.9.3 again, and installed v0.9.4. And again that does not do anything. I use a standard English WB2.7 test site: http://www.argosmedia.net/wb2/. It doesn't matter what page names I use, previous used one, or completely new ones like "wefsdfsfsfefwrwerwe r".
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #24 on: March 08, 2009, 09:29:29 PM »

Hello Jurgen.

Which System/Browser did you use?
I think I know what the issue is.

Please let me know.

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Pages: [1] 2 3   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!