WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Droplets & Snippets => Topic started by: lousou76 on February 26, 2009, 06:41:48 PM

Title: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on February 26, 2009, 06:41:48 PM
Hi to all,

I d ' like to congratulate everyone for creating this project, I really liked it.

One problem that I usualy encounter when I use pages with many block sections is that it takes years to load 7 or 8 fckeditors when I try to modify them.

The second is that the modification page does not display any information on the module type, number and description.

So I made the panel open in html mode and have an Edit button in every block.
If you push the edit button the page reloads, taking you to that specific block with only that block having an fckeditor (or any other editor you have as default).

I also added code to display enough info on top of every block. (label, section number and module type)
You can now configure on how many editors in one page will actually activate this layout.

That way, pages with just a few editors will load as usual while others will display one editor at the time when clicking on the section you wish to edit.

Either way though, the section info on top of every section will always be displayed so that way you can use this info for example to print the same content on another page etc.

v0.7 update bugfix: - Modification on admin.class framework to correctly show block names when other template selected. (admin->get_page_results function)

LS

bakeronefckedit.zip (http://fazer.gr/bakerwork/bakeronefckedit.zip)

bakeronefckedit_svn.zip (http://fazer.gr/bakerwork/bakeronefckedit_svn.zip) (for latest trunc r956)
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: Stefek on February 26, 2009, 07:00:59 PM
Hello LouSou

This is something I like to see.

Where did you put the modifications in?
Do you have any files you could upload and share?

Regards,
Stefek
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: lousou76 on February 26, 2009, 07:06:04 PM
Hi, Well I uploaded the files but The moderators requested I sign up first so they didn't show.
You will have it as soon as they approve.

It's pretty cool but it has a lot of work to do...
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: Stefek on February 26, 2009, 07:34:20 PM
Hi, Well I uploaded the module but The moderators requested I sign up first so it didn't show.
You will have it as soon as they approve.
I understand, thanks.

Quote
It's pretty cool but it has a looot of work to do...
Oh yeehh. I can imagin that. Worked for some 200 hours on the Admin Backend and no end in sight ;-)
But it's a lot of fun, for sure.:-)

Regards,
Stefek
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: lousou76 on February 27, 2009, 12:32:24 PM
It's ok now you can download it.

Replaces two files, please check.
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: Stefek on February 27, 2009, 12:56:29 PM
Hello.
I fact very interesting. (And worth to see it.)

Some hints:
1 - while having more than one section on one page it would be very handy (after pressing the [open editor] button)  to move directly to the selected section. I am sure this can be achieved with "anchors" somehow.
2 - Unfortunatly there is no possibility to see the content of the section "Wysiwyg" if the editor is toggled out. So the normal user will have problems finding the section he wants to edit.  :-(

For my own installations it is very handy - but as long as the second point is not working with as I mentioned above it's not that good for my customers installations. Maybe someone has any solution for this?

Anybody has ideas?

Thanks for sharing and best regards to Greece.
Stefek
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: lousou76 on February 28, 2009, 04:58:10 PM
Hmm point number 1 I can understand, I think it's a very good idea and I will try to add it.

The point number 2 I don;t quite get but I will try toggling out the editor and see if I missed something out.
It should be very easy to fix.

Will have it ready soon enough.
Cheers.
LS


Hello.
I fact very interesting. (And worth to see it.)

Some hints:
1 - while having more than one section on one page it would be very handy (after pressing the [open editor] button)  to move directly to the selected section. I am sure this can be achieved with "anchors" somehow.
2 - Unfortunatly there is no possibility to see the content of the section "Wysiwyg" if the editor is toggled out. So the normal user will have problems finding the section he wants to edit.  :-(

For my own installations it is very handy - but as long as the second point is not working with as I mentioned above it's not that good for my customers installations. Maybe someone has any solution for this?

Anybody has ideas?

Thanks for sharing and best regards to Greece.
Stefek
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: lousou76 on February 28, 2009, 05:21:17 PM
Yeap, you where right. I did have a bug there.
I fixed it.

It now works the same if you have the editor enabled or not.
I will deal with the ancors later on.

Cheers!
LS
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: Stefek on February 28, 2009, 08:53:14 PM
Hello LouSou.
Thanks for fixing this.
But I didn't mean it.
What I meant is (I think) a more dificult thing to do.

Illutration:
In the normal case, if the editor is displayed you can see the entries in the sections a lá WYSIWYG. Thus a "standard user" can see at first glance which section to edit.
Using your addition it is very hard for the "standard user" (not familiar with HTML) to spot the right section to edit.
If it where possible somehow to show the entries WYSIWYG while the Editors are "turned off" anyway...
I hope you can follow this picture.
I am not coder so I don't know how doable it is. But if this where possible so it was a handy thing. I thought very often about something like this and your core replacement is the only one addition which goes in that direction.

If you still dont understand, let me know. I will make "screenshots" then to explain it visual.

Best Regards,
Stefek
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: lousou76 on March 01, 2009, 09:02:56 AM
Yeap I got the picture.
I must think of a way to do this safely though.
You see if I display the content blocks as html then they wouldn't be editable before the open editor button is pushed. It could also brea the html of the edit page.

I thought that the section names would help in that direction, but you are right.
It doesn't help the client.

We must show the html with all options turned off so it loads easily.
I ll see if we can do this.
I would though like to keep using this part for myself.
I want to be able to edit the html on first look.

LS
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: lousou76 on March 01, 2009, 06:59:36 PM
I fixed the Notices and added the anchors.
It now takes you to the exact section you asked to edit.

I am now working on adding an iframe to show the html on the first page.
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: lousou76 on March 02, 2009, 07:49:43 PM
Ok I finished it!

I had to add one more file to be able to show content on iframes.
It now shows the source in iframes with click and rightclick disabled and you can use the 'Open Editor' button to enable the editor and go directly to the editing section.

If you liked it the way it was and you want it to show the source textarea when you edit pages instead, you can open the file

/modules/wysiwyg/modify.php and change at the top line where it says
Code: [Select]
$emode = 'iframe'; to
Code: [Select]
$emode = 'none';
Hope you enjoy!

Cheers,
LS
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: kweitzel on March 02, 2009, 09:56:24 PM
You could try to render these sections with a "text2image" script into a graphic and display that, clicking it would open the editor in/for that section. That would make it a bit more "end user friendly", don't you think?

cheers

Klaus
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: lousou76 on March 03, 2009, 12:04:31 AM
That would be nice too but:

1) I am afraid the images would slow down the edit page (html will load a lot faster)
2) We could have a lot of problems when converting text2image and the final user might see a section differently than it shows on his browser.

I could although change the iframe's onclick event and instead of doing nothing it could take you to edit it.
That way you wouldn;t even have to click on the "open editor" button.

LS


You could try to render these sections with a "text2image" script into a graphic and display that, clicking it would open the editor in/for that section. That would make it a bit more "end user friendly", don't you think?

cheers

Klaus
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: Stefek on March 03, 2009, 01:13:07 AM
Hello LouSou!!

Brava!!
Didn't have the time to take a look at this earlier today. I am impressed. Really!

Only 2 Things left:
1) if I am at admin/pages/sections.php?page_id=n and I am selecting one of the sections. Would it be possible to toggle the editor "on"?
2) Creating a new Page it would be great if the editor is also toggled "on".

This are only my suggestions. Maybe I am wrong with Point (1) because sometimes you only want to see the content of the section...

Again. I am impressed. This is very handy and fast.
It should be Part of the next release (with the possibility to turn this function on/off in WB-Settings.

Thanks for picking my Idea up.

Best regards,
Stefek
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: lousou76 on March 03, 2009, 08:08:44 AM
Thank you! I am glad you liked it!
I really think it should be part of the next release. Pages with many sections take too much time to modify if loading too many editors.

Now about the suggestions,  as I can see,  if you click on the left column links you will go directly to the section you wish to see or edit. We could make it having the editor on there, but we would have to check if they have the editor enabled.

About 2 I am not sure. I guess you mean we should load the section so you can see what you are editing.
I think we are adding too much code with no real need though. Clicking the left link of the section will open the section on a new tab so you can see it. But I always like to be carefull on the labels I use so I know which part I am changing.

Regards,
LS


Hello LouSou!!

Brava!!
Didn't have the time to take a look at this earlier today. I am impressed. Really!

Only 2 Things left:
1) if I am at admin/pages/sections.php?page_id=n and I am selecting one of the sections. Would it be possible to toggle the editor "on"?
2) Creating a new Page it would be great if the editor is also toggled "on".

This are only my suggestions. Maybe I am wrong with Point (1) because sometimes you only want to see the content of the section...

Again. I am impressed. This is very handy and fast.
It should be Part of the next release (with the possibility to turn this function on/off in WB-Settings.

Thanks for picking my Idea up.

Best regards,
Stefek
Title: Re: Admin panel modification to page load one fckeditor at a time.
Post by: Stefek on March 03, 2009, 01:05:17 PM
Hello  LouSou.

Nevermind. This two points I mentiioned above are not really importand.

I have another 2 suggestions:

1) Your Quote:
I could although change the iframe's onclick event and instead of doing nothing it could take you to edit it.
That way you wouldn't even have to click on the "open editor" button.

Yes, I think this is a very handy approach.

2) The CSS.
Now it is just HTML without any Style.
It is possible for you to implement the css-file. Sometimes we create also a so called "editor.css" which renders the HTML in a special way. Else the standard CSS File is applied.

Is this something doable?

Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section i
Post by: lousou76 on March 03, 2009, 01:38:02 PM
Well, I think they both are doable.

I just wonder which css file to use. I must find out in which template the section belongs to and then import it into the current editor's one.

Lets see...
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: doc on March 03, 2009, 07:02:03 PM
Hi,

tested it with WB 2.7 final and error reporting set to E_ALL (Options -> Advanced Settings). The only thing I can see are some warnings and the output of two menu calls from info.php. What WB version is required for testing?

Regards Christian
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: Stefek on March 03, 2009, 07:15:49 PM
I used a fresh 2.7 final (no SVN something).

Did you put the files in the correct directories?

Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: doc on March 03, 2009, 07:33:43 PM
Hi,

well, there were only 3 files to put in the right place, so yes.
Think problem is error reporting. Setting it to E_ALL I get warnings which break the function.

Regards Christian
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on March 03, 2009, 08:06:34 PM
Hi,

well, there were only 3 files to put in the right place, so yes.
Think problem is error reporting. Setting it to E_ALL I get warnings which break the function.

Regards Christian

That couldn't be right. I have the setting to E_ALL and I get no warning at all.
Could you give us the warnings?

LS
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: Stefek on March 03, 2009, 08:34:48 PM
Setting the reports to E_ALL gives me - in fact -  warnings.

Notice: Undefined index: template in C:\xampp\htdocs\wb-testu\admin\pages\modify.php on line 60

and

Notice: Undefined variable: block in C:\xampp\htdocs\wb-testu\admin\pages\modify.php on line 129

But the function is running anyway...

Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: doc on March 03, 2009, 08:43:51 PM
@Lousou76:
Also check the php.in for the following settings (e.g. xampp/apache/bin/php.ini; remember to restart Apache afterwards).

Code: [Select]
display_errors = On
error_reporting  =  E_ALL

Regards Christian
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on March 03, 2009, 08:48:32 PM
@Lousou76:
Also check the php.in for the following settings (e.g. xampp/apache/bin/php.ini; remember to restart Apache afterwards).

Code: [Select]
display_errors = On
error_reporting  =  E_ALL

Regards Christian

I couldn't reproduce those notices, but they are definately not fatal.
(I am running this code on redhat with display_errors=on and error_reporting=E_ALL)
The code is running. Something else is wrong.

I 've updated the zip file. It now opens the editor on the specific section when you click on it.

Regards,
LS
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: Stefek on March 03, 2009, 08:58:46 PM
I 've updated the zip file. It now opens the editor on the specific section when you click on it.
Cool.

For the stuff with warnings I have no idea.

I really hope that the devs will pick this idea up and integrate this in the next release.
It really speeds up the work on multi-section pages. I literally _dreamed_ about something similar. :-)

Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: doc on March 03, 2009, 09:49:38 PM
Hello,

attached a modified /admin/pages/modify.php file which fixes the warnings and the php short tags.

Have tested the stuff but do not really see the benefit as long as you do not add at least 3 WYSIWYG sections on a single page, which I guess is not the case for the majority of the WB users.

What I do not like is the fact, that I have to press the show editor button even if only one WYSIWYG editor is present on a page. Think it would be more convinient to show the editor per default if only one WYSIWYG section is added to a page and show the buttons only if more than X WYSIWYG editors are used at one page. Ideally this option should be configurable via the backend (e.g. option 0, show as usual, 1 toogle if 1 WYSIWYG editor is present, 5 if 5 ore more are present).

@lousou76: May be worth while to initiate a poll to find out if people would like to see this feature in a future WebsiteBaker version or not.

Regards Christian

[gelöscht durch Administrator]
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: Stefek on March 03, 2009, 10:48:47 PM
What I do not like is the fact, that I have to press the show editor button even if only one WYSIWYG editor is present on a page.
With the latest updat by LouSou there is no need anymore to press the button. Editor opens if you click into the content frame.
I propose to rename it back to "save".

Quote
Ideally this option should be configurable via the backend (e.g. option 0, show as usual, 1 toogle if 1 WYSIWYG editor is present, 5 if 5 ore more are present).
Yes. I agree.

Quote
@lousou76: May be worth while to initiate a poll to find out if people would like to see this feature in a future WebsiteBaker version or not.
Yes, LouSou.
Please do it.
If you want I will startone in the German Language forum.

Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on March 04, 2009, 07:19:14 AM
doc thanks for helping, I am adding it to the zip right now.

I agree with you Christian, there should be an option for this in the main panel and a limit as you mention for how many editors before this stuff is activated. I will add these options to the top of the file and I will initiate a poll later on today.

Basically I wanted this because most of my pages have more than 3 sections. I like to make small editable sections which do not mess with the rest of the page.

Stefek when the html iframe is shown there is no form to save, that is why I do not show the save button and show only the edit one. I guess it would be nice to leave it there just in case of not clicking in the frame, or using the other mode that displays the textareas instead of these iframes.

Regards,
Lazaros

Hello,

attached a modified /admin/pages/modify.php file which fixes the warnings and the php short tags.

Have tested the stuff but do not really see the benefit as long as you do not add at least 3 WYSIWYG sections on a single page, which I guess is not the case for the majority of the WB users.

What I do not like is the fact, that I have to press the show editor button even if only one WYSIWYG editor is present on a page. Think it would be more convinient to show the editor per default if only one WYSIWYG section is added to a page and show the buttons only if more than X WYSIWYG editors are used at one page. Ideally this option should be configurable via the backend (e.g. option 0, show as usual, 1 toogle if 1 WYSIWYG editor is present, 5 if 5 ore more are present).

@lousou76: May be worth while to initiate a poll to find out if people would like to see this feature in a future WebsiteBaker version or not.

Regards Christian
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: doc on March 04, 2009, 07:31:08 AM
@lousou76:
Maybe it is worth while to offer a package based on the latest SVN version, as the release candiate of the next version WebsiteBaker 2.8 (http://project.websitebaker2.org/roadmap) will be released soon. Some of the files have changed (especially admin/pages/modify.php should be a candidate).

Quote from: lousou76
I will add these options to the top of the file and I will initiate a poll later on today.
This option should be available in the Advanced Settings dialogue of WebsiteBaker. To get an impression on what files needs to be changed for this, have a look on Changeset 929 (http://project.websitebaker2.org/changeset/929l) which adds the possibility to specify the redirect time in ms for sucess messages. One needs to touch all all language files and some core files to add a single value to the settings table.

Regards Christian
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on March 04, 2009, 10:38:46 AM
Looks like I ll be spending the weekend home...  :-D

Ok I ll download the latest svn and see how to make the appropriate changes.

I 've already added the right code and you can now define those startup values on top of the modules/wysigy/modify.php

It will load as requested if more than 2 editors are on the page.

I will now work on the latest svn and have those files ready on a seperate package.
Regards,
LS


@lousou76:
Maybe it is worth while to offer a package based on the latest SVN version, as the release candiate of the next version WebsiteBaker 2.8 (http://project.websitebaker2.org/roadmap) will be released soon. Some of the files have changed (especially admin/pages/modify.php should be a candidate).

Quote from: lousou76
I will add these options to the top of the file and I will initiate a poll later on today.
This option should be available in the Advanced Settings dialogue of WebsiteBaker. To get an impression on what files needs to be changed for this, have a look on Changeset 929 (http://project.websitebaker2.org/changeset/929l) which adds the possibility to specify the redirect time in ms for sucess messages. One needs to touch all all language files and some core files to add a single value to the settings table.

Regards Christian
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: doc on March 04, 2009, 11:20:22 AM
lousou76:
If you need any help on that, just drop me a few lines via PM  :-)
Very curious to see what the community is voting for.

Regards Christian
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on March 04, 2009, 11:45:19 AM
Ok Christian thanx.
I 've also changed the layout a bit so the iframes border look nicer.

As I look into it, I can see little changes to the admin/pages/modify.php and no changes to the
modules/wysigg../modify.php so I don;t think there will be a problem there.

I will just have to install the latest trunc to be able to test it.
I ll let you know If I get stack.

Regards,
LS


lousou76:
If you need any help on that, just drop me a few lines via PM  :-)
Very curious to see what the community is voting for.

Regards Christian
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on March 04, 2009, 06:17:58 PM
I don't see anyone voting lol

I just finished importing the settings to baker on both 2.7 and svn version as well. (redownload, run the install file and go enable it on the advanced settings page).

It only has the apropriate changes in the english language.
I include an install script to add the extra settings to the db (it doesn't matter how many times you run it).

I 've made the necessary changes to the initial WebsiteBaker script for the svn version, so if you patch first and then install it will work fine and the included install_onefckedito r script is not needed.

My tests show it works fine.

Please check.
Regards,
LS

Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: Stefek on March 04, 2009, 07:37:12 PM
Hello LS.

Thanks for your dedication.

I love this feature.  :-)

Hope mor guys will vote in the next hours.

Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on March 04, 2009, 11:17:21 PM
Dear Stefek,

Thanks for the kind words.
No matter how the voting goes, we are surely happy with the result.
I couldn't live without this feature. Other CMSs like joomla etc load one section at the time instead of loading one page with many editors. Loading more than one editor would only make sence if you could save multiple chances at once.

Otherwise it just makes changes a very time consuming process.
I had complains about this from my customers. I couldn't work well in older pc's and I found all these editors useless when the block section had just one image to change.

I guess this speeds things up and even if you don;t like it, you just disable it so everyone is happy.
Let's see how the voting goes.

Regards,
LS

Hello LS.

Thanks for your dedication.

I love this feature.  :-)

Hope mor guys will vote in the next hours.

Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: Stefek on March 05, 2009, 12:10:34 AM
Loading more than one editor would only make sence if you could save multiple chances at once.

You're absolutley right.
And the solution you provide is pretty handy indeed.

Let's see how the voting goes.
Yes.
The current votes:
Quote
Would you agree to integrate the "lousou76 - One fckeditor at the time + section info" backend to be integrated to the next release of WB?
Yes it's a must                                                                     0 (0%)
Only if I can enable/disable it through the WB panel                 5 (71.4%)
Not really necessary                                                             1 (14.3%)
I 'd preffer that it stays as a seperate package                         1 (14.3%)
I hate it! The developer should be crucified and burned alive!      0 (0%)
Indicate that it is wanted.
But let us see if additional Voters come tomorrow.  :wink:

Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: doc on March 05, 2009, 07:31:42 PM
Hi lousou76,

are you sure you linked the right zip archive based on the latest WB trunk from SVN?

In the trunk from SVN, all template files were moved to the folder /templates/wb_theme/. The file /admin/settings/template.html should be located in /templates/wb_theme/templates/settings.htt and the file /admin/settings/index.php should use THEME_PATH instead of ADMIN_PATH.

Could you please check if you have really the latest version from SVN or linket the correct file?

Best regards
Christian
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on March 06, 2009, 01:07:15 AM
lol, Thanks for finding that doc.

Yes I am pretty positive I have the right svn zip ready.
I wasn't although that positive on puting the right link in the first page.
So both links I gave were pointing on the same file... (the 2.7 one).

Download now the correct one if you like.

Regards,
LS


Hi lousou76,

are you sure you linked the right zip archive based on the latest WB trunk from SVN?

In the trunk from SVN, all template files were moved to the folder /templates/wb_theme/. The file /admin/settings/template.html should be located in /templates/wb_theme/templates/settings.htt and the file /admin/settings/index.php should use THEME_PATH instead of ADMIN_PATH.

Could you please check if you have really the latest version from SVN or linket the correct file?

Best regards
Christian
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: doc on March 06, 2009, 07:01:32 PM
Hi,

some more warning due to not defined indizes in admin/settings/index.php but easy to fix. Can you please check your php.ini settings again, if display error is enabled and error reporting is set to E_ALL. In addition, you need to set error reporting in the WB advanced settings to E_ALL to see errors and warnings.

Also it seems that the settings have no impact at all. I can disable / enable, use html or textarea, but any number, the behaviour is always the same. Also all the settings are quite confusing (at least to me). Wouldn´t it be enough to have one text field called:
Code: [Select]
One editor if editor/page >With the options:
-1... (disabled, default value, everything is as without the stuff)
0... (always show text area, you need to click in text area to show the WYSIWY editor)
1.999... (only show if more than x editors ares present at one single page)

What is the option other blocks show as for? Also the "Open Editor" text seems to be hardcoded and should be moved into the WB language files.

Regards Christian
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on March 06, 2009, 08:55:34 PM
Hi,

Well, I did see the index errors and I was trying to fix them with no luck.
If you could help a bit on that I would appreciate it...  :-D

The settings do work Christian unless I messed something up. But I did try them all on both the svn and the 2.7 version and have them setup in both. I will although try them again reinstalling from sratch just to be sure.

First you need the feature enabled.
Then you need to set number of blocks/page to activate.
Then you need to go modify a page with more than this number of blocks.

You also need to have one WYSI editor defined (I have the fckeditor). If you have none than this does not work of course.

After that:

- If you have set html mode then the modify page will load showing every block with an "Open Editor button" and a "Cancel" button (you cannot edit stuff, you just see how it looks).

- If you set textarea then you get 3 buttons ("Save", "Open Editor", "Cancel") and you see the blocks in textareas. You can either open one editor or edit the textarea and save without opening the Editor.
(that's the kind I like most)...

Now how can we use your suggestion to improve those settings...you kind of rule out the html mode with what you mentioned..

The Open Editor I think I forgot to put on the language file...I will you 're right..

Regards,
LS

Hi,

some more warning due to not defined indizes in admin/settings/index.php but easy to fix. Can you please check your php.ini settings again, if display error is enabled and error reporting is set to E_ALL. In addition, you need to set error reporting in the WB advanced settings to E_ALL to see errors and warnings.

Also it seems that the settings have no impact at all. I can disable / enable, use html or textarea, but any number, the behaviour is always the same. Also all the settings are quite confusing (at least to me). Wouldn´t it be enough to have one text field called:
Code: [Select]
One editor if editor/page >With the options:
-1... (disabled, default value, everything is as without the stuff)
0... (always show text area, you need to click in text area to show the WYSIWY editor)
1.999... (only show if more than x editors ares present at one single page)

What is the option other blocks show as for? Also the "Open Editor" text seems to be hardcoded and should be moved into the WB language files.

Regards Christian
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on March 06, 2009, 09:23:53 PM
Well now that I check it you are right. The enable/disable option doesn't work.

Yeap, my mistake. I can  see where the error is.
I fixed the language thing and the setting problem.

I will try to fix the notices until you comment on the rest.

Regards,
LS
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: doc on March 06, 2009, 11:15:21 PM
Hi,

Quote from: lousou76
Well, I did see the index errors and I was trying to fix them with no luck.
Well most of the warnings are simply wrong array key declaration like $var = array(hash => value), which should read like $var = array('hash' => 'value'). Simply check the line number which contains the error for such constructs. Another source of those errors is using variables which were not defined before. Make use of isset etc.

Regards Christian
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on March 08, 2009, 11:57:35 AM
Ok enable/Disable setting now works, 'Open Editor' button is in the language file (English only) and Notices were fixed.

Please keep testing and I ll try to make the settings like you mentioned Christian but even so, I must leave the "Show other blocks As" setting as is unless you have another suggestion...

regards,
LS
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: Stefek on March 26, 2009, 10:47:42 PM
Hello LouSou,

I just wanted to ask if you was able to implement this functionality (with the switcher on/of).

Kind Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on April 06, 2009, 09:04:27 AM
Hi Stefek,

I didn't have time to further develop using the suggestions you mentioned (like -1, 1 etc) but as it is now it is working and it does have an enable/disable radio, the familiar html/textarea select box and the number/page limit to activate.

I 've tested it in both 2,7 and latest wb. Some text definitions only exists in the English language file, they should be added to others for it to not show warnings when other language file used.

Regards,
LS

Hello LouSou,

I just wanted to ask if you was able to implement this functionality (with the switcher on/of).

Kind Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: Stefek on April 06, 2009, 01:32:21 PM
Hello LouSou.

Thank you for the Answer.

I am glad about this new feature and I hope this will be implemented into the 2.8 Version.
I do not really have a clue how they are working (and who).

I am only supporting good Ideas as WB User ;-)

So, thanks for this one.

Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on April 08, 2009, 03:27:59 PM
Dear Stefek,

I have found a bug/missing attribute in function admin->get_page_details($page_id) which is used to get all required info in admin pages (modify.php, sections.php etc).

In the SELECT query the attribute "template" is not fetched so in the modify.php if a different template than the default has been selected the information shown is incorrect.

I modified and added the file in both 2.7 and 2.8 versions of my patch.
I am totally happy with the features this patch adds. It has made my life a lot easier and the clients are very happy.
But you cannot really see what it does unless you experiment with it by changing  html/textarea modes and having the feature on.

You can load the modify.php page with textareas and at the same time you are able to load a full featured fck editor for only one of the blocks, or you can view every block as html and open a full fckeditor on one block.

It makes loading pages with many editors fast as lightening!

Regards,
LS
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: Stefek on April 08, 2009, 05:34:53 PM
Hello LouSou.
Thank you for your corrections.


Yes, you're right and I encourage all the WB users to test it.
Unfortunately not everyone has the time to edit all this changes on his installations - therefore I hope the 2.8 Version will come very soon with this feature integrated.

Kind Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: Stefek on April 09, 2009, 01:17:15 AM
Hello LouSou.

I am satisfied about the changes. Everything is working fine... however, I still get this massage:
Notice: Undefined index: SEC_ANCHOR in C:\xampp\htdocs\wb-testu\admin\settings\index.php on line 591

I am using the 2.7 version.

//Edit:
I have another hint:
"Other Blocks show as:" should be renamed into "Other Sections show as:" or better "Other WYSIWYG-Sections show as:"
Blocks has something to do with the (multiple) Blocks you are using in your Template.
This words are not synonyms in the WB terminology (http://en.wikipedia.org/wiki/Terminology).
This could cause some confusion ;-)
(especialy by those starting with WB CMS.)


Kind Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on May 11, 2009, 03:31:00 PM
Dear Stefek,

Sorry about long delay I was kind of busy to the neck...

I think SEC_ANCHOR is in the language file and if you are using anothe rlanguage it's not there,
but I will have a look at it.
I can also make the change you say on your hint easilly as well because it's in the languiage file.

I did forgot to say that working with that modification and trying this I 've noticed that there is a bug in the latest wb. Native version has a description on every block just like my own modification, but the information is wrong when the page has another default template defined. The section info is retrieved from the default template.

I do not remember the exact point I corrected, but my mod has this bug corrected and works fine.
Regards,
LS


Hello LouSou.

I am satisfied about the changes. Everything is working fine... however, I still get this massage:
Notice: Undefined index: SEC_ANCHOR in C:\xampp\htdocs\wb-testu\admin\settings\index.php on line 591

I am using the 2.7 version.

//Edit:
I have another hint:
"Other Blocks show as:" should be renamed into "Other Sections show as:" or better "Other WYSIWYG-Sections show as:"
Blocks has something to do with the (multiple) Blocks you are using in your Template.
This words are not synonyms in the WB terminology (http://en.wikipedia.org/wiki/Terminology).
This could cause some confusion ;-)
(especialy by those starting with WB CMS.)


Kind Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: Stefek on May 11, 2009, 04:28:23 PM
Hello LouSou.

Thank you for letting me know all this.

I am looking forward to this feature and I hope it will be implemented into the next version of WB CMS.

Thank you for developing this.

Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on May 12, 2009, 09:09:34 PM
Dear Stefek,

Thank you for your kind comments.
I am very happy you find this usefull and I hope manyh other users will too. ( I really did!).
I have made the change you requested on the language file. ("Other WYSIWYG-Sections show as:").

It looks like the SEC_ANCHOR definition is defined in the language file as
'Section Anchor text' and I don;t know why it is not defined on 2.7 while I did find it already defined
in the svn version.

I 've added it to my language file as well.
I guess the module is ready and working as expected showing correct information no matter what template is selected on both standard 2.7 and svn versions.

However in case my module is not used on the new WB someone should correct that small mentioned bug on the standard svn and page admin/pages/modify.php should be corrected accordingly.

I am very pleased to contribute in at least such a small way to this great project and will continue supporting with other modules as well. (as I can see my slideshow2gallery has reached stable release and working as expected too!!!).

Regards,
LS

Hello LouSou.

Thank you for letting me know all this.

I am looking forward to this feature and I hope it will be implemented into the next version of WB CMS.

Thank you for developing this.

Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: Stefek on May 13, 2009, 12:51:55 AM
Hello LouSou.
It looks like the SEC_ANCHOR definition is defined in the language file as
'Section Anchor text' and I don;t know why it is not defined on 2.7 while I did find it already defined
in the svn version.
This is because it will be a new feature to the next release. Right now it is not possible to change the section anchor text without having a touch on the core files.

Kind Regards,
Stefek
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: mr-fan on May 13, 2009, 12:47:13 PM
hi lousou,

Quote
I am very pleased to contribute in at least such a small way to this great project and will continue supporting with other modules as well. (as I can see my slideshow2gallery has reached stable release and working as expected too!!!).

indeed your work is great!!

someone of the german threat has made a mootools integrations for animating the whole thing you can take a look at it!

https://forum.WebsiteBaker.org/index.php/topic,13768.msg84716.html#msg84716 (https://forum.WebsiteBaker.org/index.php/topic,13768.msg84716.html#msg84716)

i've link it cross to her that nothing get loss in the different threats   :wink:

keep on rocking

ps.: your gallery runs on a site from me with more than 150-200 pics...http://www.mr-vilsbiburg.de/pages/mr-bildergalerie/mr-fahrten.php (http://www.mr-vilsbiburg.de/pages/mr-bildergalerie/mr-fahrten.php)

THX again for your work - regards martin
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on May 15, 2009, 03:19:14 PM
Thank you!

I 've updated the gallery with minorchanges (see the relevant post added X mark and descriptions on lightbox).
I can't find anything related to the gallery on the link you posted...I did not quite understand about motools...

I am kind of thinking to help on the googlemaps modules now...

Regards,
LS

hi lousou,

Quote
I am very pleased to contribute in at least such a small way to this great project and will continue supporting with other modules as well. (as I can see my slideshow2gallery has reached stable release and working as expected too!!!).

indeed your work is great!!

someone of the german threat has made a mootools integrations for animating the whole thing you can take a look at it!

https://forum.WebsiteBaker.org/index.php/topic,13768.msg84716.html#msg84716 (https://forum.WebsiteBaker.org/index.php/topic,13768.msg84716.html#msg84716)

i've link it cross to her that nothing get loss in the different threats   :wink:

keep on rocking

ps.: your gallery runs on a site from me with more than 150-200 pics...http://www.mr-vilsbiburg.de/pages/mr-bildergalerie/mr-fahrten.php (http://www.mr-vilsbiburg.de/pages/mr-bildergalerie/mr-fahrten.php)

THX again for your work - regards martin
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: mr-fan on May 16, 2009, 10:00:44 AM
Quote
I can't find anything related to the gallery on the link you posted...I did not quite understand about motools...

 :roll: :roll: sorry my bad english.....

i've mixed to much the topics....

1. i wanted to thx for your work and tell you that i'm using it...and it works great

2. i wanted to crosslink the threat because a other user has made a admin backend modification of your admin backend!! nothing with the gallery!

    -> he made a JS animation with mootools that make with the editors like a "query"....or accordion...

i only want crosslink that not development gets here in the english part and similar in the german...to get no doubled work...

regards martin
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: PauluSJ on November 25, 2009, 04:33:32 PM
Hi All!
I'm just starting with WB, but it seems, that I'll love Module. Unfortunately I cannot install it. I use backend Install-module, but it doesn't work. I a result I see top backend menu, and blank content.
Help please!
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: lousou76 on December 03, 2009, 11:14:41 AM
- Minor update.
I have only changed the text input field in the advanced settings tab for the number of max editors to show as listbox (from 1-8 values).

-------------
To install this module you have to:

1) unpack the contents of the zip files to your WebsiteBaker installation overwriting the originals.
2) run the install_bakeronefck edit.php from http://yoursite/install_bakeronefckedit.php  once.
(doesn't matter if you run it more times).

Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: Luisehahne on December 03, 2009, 02:44:27 PM
Can you pls wait for WB 2.8.1 something already will be integrate. A short list of changeset you can find here

Sorry in moment only in german
http://www.WebsiteBaker-next.de/wb/pages/de/startseite/aenderungen-wb-2.8.1.php (http://www.WebsiteBaker-next.de/wb/pages/de/startseite/aenderungen-wb-2.8.1.php)

Dietmar
Title: Re: Admin panel modification to load one fckeditor at a time plus more section info
Post by: tiggerific on January 30, 2010, 02:31:56 AM
Just a couple of points...

1. It seems that the only download available from AMASP is the old one (before the SVN) so it can't work with 2.8.
2. From checking (as best I can in German) the feature list of 2.8.1 RC3, there doesn't seem to be any mention of "collapsible" wysiwyg blocks.
3. Installing the SVN in the first post on 2.8.1 RC3 - everything appears to be there and I can select the Settings, etc. but viewing the WYSIWYG module with multiple blocks doesn't show any different.

I realise that the last post indicated the features would be available in 2.8.1, but that may be a while to wait and I also can't see this specific topic covered in those release notes.