Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 06:47:37 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149621 Posts in 21098 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Poll
Question: 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 Voters: 25

Pages: 1 [2] 3   Go Down
Print
Author Topic: Admin panel modification to load one fckeditor at a time plus more section info  (Read 9666 times)
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4753



« Reply #25 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. smiley

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
doc
Guest
« Reply #26 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
« Last Edit: March 03, 2009, 09:54:38 PM by doc » Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4753



« Reply #27 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
Logged

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

Offline Offline

Posts: 123


« Reply #28 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
« Last Edit: March 04, 2009, 07:23:41 AM by lousou76 » Logged
doc
Guest
« Reply #29 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 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 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
Logged
lousou76

Offline Offline

Posts: 123


« Reply #30 on: March 04, 2009, 10:38:46 AM »

Looks like I ll be spending the weekend home...  grin

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 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 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
Logged
doc
Guest
« Reply #31 on: March 04, 2009, 11:20:22 AM »

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

Regards Christian
Logged
lousou76

Offline Offline

Posts: 123


« Reply #32 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  smiley
Very curious to see what the community is voting for.

Regards Christian
Logged
lousou76

Offline Offline

Posts: 123


« Reply #33 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

« Last Edit: March 04, 2009, 07:07:10 PM by lousou76 » Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4753



« Reply #34 on: March 04, 2009, 07:37:12 PM »

Hello LS.

Thanks for your dedication.

I love this feature.  smiley

Hope mor guys will vote in the next hours.

Regards,
Stefek
« Last Edit: March 04, 2009, 07:40:08 PM by Stefek » Logged

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

Offline Offline

Posts: 123


« Reply #35 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.  smiley

Hope mor guys will vote in the next hours.

Regards,
Stefek
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4753



« Reply #36 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
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
doc
Guest
« Reply #37 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
Logged
lousou76

Offline Offline

Posts: 123


« Reply #38 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
Logged
doc
Guest
« Reply #39 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:
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
« Last Edit: March 06, 2009, 07:28:38 PM by doc » Logged
lousou76

Offline Offline

Posts: 123


« Reply #40 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...  grin

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:
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
Logged
lousou76

Offline Offline

Posts: 123


« Reply #41 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
« Last Edit: March 06, 2009, 09:35:17 PM by lousou76 » Logged
doc
Guest
« Reply #42 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
Logged
lousou76

Offline Offline

Posts: 123


« Reply #43 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
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4753



« Reply #44 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
Logged

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

Offline Offline

Posts: 123


« Reply #45 on: April 06, 2009, 08: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
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4753



« Reply #46 on: April 06, 2009, 12: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 wink

So, thanks for this one.

Regards,
Stefek
Logged

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

Offline Offline

Posts: 123


« Reply #47 on: April 08, 2009, 02: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
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4753



« Reply #48 on: April 08, 2009, 04: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
Logged

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

Offline Offline

Posts: 4753



« Reply #49 on: April 09, 2009, 12: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.
This could cause some confusion wink
(especialy by those starting with WB CMS.)


Kind Regards,
Stefek
« Last Edit: April 09, 2009, 12:28:21 AM by 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!