WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.

Donate with PayPal buttonSpenden mit dem PayPal-Button

  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Admin panel modification to load one fckeditor at a time plus more section info

Poll

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
8 (27.6%)
Only if I can enable/disable it through the WB panel
15 (51.7%)
Not really necessary
3 (10.3%)
I 'd preffer that it stays as a seperate package
1 (3.4%)
I hate it! The developer should be crucified and burned alive!
2 (6.9%)

Total Members Voted: 16

  • Print
Pages: [1] 2 3   Go Down

Author Topic: Admin panel modification to load one fckeditor at a time plus more section info  (Read 56776 times)

lousou76

  • Guest
Admin panel modification to load one fckeditor at a time plus more section info
« 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

bakeronefckedit_svn.zip (for latest trunc r956)
« Last Edit: April 08, 2009, 03:19:52 PM by lousou76 »
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #1 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
« Last Edit: February 26, 2009, 07:03:02 PM by Stefek »
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

lousou76

  • Guest
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #2 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...
« Last Edit: February 26, 2009, 08:13:05 PM by lousou76 »
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #3 on: February 26, 2009, 07:34:20 PM »
Quote from: lousou76 on February 26, 2009, 07:06:04 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
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

lousou76

  • Guest
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #4 on: February 27, 2009, 12:32:24 PM »
It's ok now you can download it.

Replaces two files, please check.
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #5 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
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

lousou76

  • Guest
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #6 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


Quote from: 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
Logged

lousou76

  • Guest
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #7 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
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #8 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
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

lousou76

  • Guest
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #9 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
Logged

lousou76

  • Guest
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #10 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.
Logged

lousou76

  • Guest
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #11 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
Logged

Offline kweitzel

  • WebsiteBaker Org e.V.
  • **
  • Posts: 6983
  • Gender: Male
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #12 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
Logged

lousou76

  • Guest
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #13 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


Quote from: 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
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #14 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
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

lousou76

  • Guest
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #15 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


Quote from: 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
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Admin panel modification to page load one fckeditor at a time.
« Reply #16 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:
Quote from: lousou76 on March 03, 2009, 12:04:31 AM
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
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

lousou76

  • Guest
Re: Admin panel modification to load one fckeditor at a time plus more section i
« Reply #17 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...
Logged

doc

  • Guest
Re: Admin panel modification to load one fckeditor at a time plus more section info
« Reply #18 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
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Admin panel modification to load one fckeditor at a time plus more section info
« Reply #19 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
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

doc

  • Guest
Re: Admin panel modification to load one fckeditor at a time plus more section info
« Reply #20 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
Logged

lousou76

  • Guest
Re: Admin panel modification to load one fckeditor at a time plus more section info
« Reply #21 on: March 03, 2009, 08:06:34 PM »
Quote from: 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

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
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Admin panel modification to load one fckeditor at a time plus more section info
« Reply #22 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
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

doc

  • Guest
Re: Admin panel modification to load one fckeditor at a time plus more section info
« Reply #23 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
Logged

lousou76

  • Guest
Re: Admin panel modification to load one fckeditor at a time plus more section info
« Reply #24 on: March 03, 2009, 08:48:32 PM »
Quote from: 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

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
Logged

  • Print
Pages: [1] 2 3   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Admin panel modification to load one fckeditor at a time plus more section info
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2