Page 1 of 3

WYSIWYG CMS ( CMS php include ) ***UPDATED 15/10/2009***

Posted: Thu Oct 08, 2009 12:22 am
by Eddy
WYSIWYG CMS ( CMS php include.)

15 -10-2009 security update in the pdf for the ajax filemanager.


Image

Manage multiple news/content pages in one window.

I have the editor files not inserted in the extension,otherwise you have to upload everytime all files if
you insert a new newspage in your webbuilder page.
I did not use fckeditor (to many errors with uploading files ) but tinymce what is free to use and have more options to insert movies.
I have build and inserted templates for page layouts and an example template for a table.
I have used ajax file and image manager what is integrated in Lilcms with the tinymce editor.
I have not used an iframe but (HTML with php include) what have a transparent background in all browsers!
After reupload your webbuilder page (if you make changes) login to the editor and click restore to put the content back.
The backup future from news pages is very usefull!
In login php you can enable your own css style for the news pages.(for advanced users)
All pages where u use this extension must have the page extension php.

Please read the pdf !!


FAQ TinyMCE
http://wiki.moxiecode.com/index.php/TinyMCE:FAQ


I used for this CMS:
1.LilCMS for the editor window to select,update and restore al "news" pages.
2.Tinymce editor to update the page content.
3.Ajax File and Image Manager.


LIL' CMS 2.0
http://www.lilcms.com/
You have the right to use this program freely and on an unlimited basis so long as you realise that the author takes no responsibility for any damage which this program might cause you or your computer, directly or indirectly.


Tinymce.
Term And Conditions:
Open Source - Free under the LGPL license, millions of ppl help test and improve this editor every day.
http://tinymce.moxiecode.com/index.php



Tinymce Ajax File and Image Manager.
Term And Conditions:
Our Ajax File Manager is distributed under the GPL and MPL open source licenses, so you could use
it or integrate it into your system at no cost.
We may revise the license by updating this page at any time.
By using our file manager, you agree to be bound by any such revisions and should therefore periodically
visit our site to determine the current terms/License to which you are bound.
http://www.phpletter.com/



Download WYSIWYG CMS for WB 6.5
http://www.mediafire.com/file/ncm2mjoky ... ude_65.zip



All files must in the same directorie/ folder as the pages what use the extension.

If you have security issue concern, you could turn the access control on for the ajax filemanager,please read the pdf




Most asked questions.

This cms works with the same as the News Writer except that the news page is included with php in your WB page.

The "news.html" page is generated and uploaded in the content folder and on that page you write your content.

-If you read "Edit this page!" in the editor than everything is correct.
-Type your text ,insert your images etc and click update.
-Close the editor and renew (F5) your WB page to see the changes.

-------------------------------------------------------------------------------------

If you have used pages in folders ( page not in the same directorie as the cms) than the path to the file is not correct.( php include in the WB page )

Do you have this structure on your server?
Look also to the read and write settings (755) or (777) from your folders.
Look also to the ajaxfilemanager folder permissions.

content
jscripts
uploaded
login.php
webbuilder pages.html
webbuilder pages.html
webbuilder pages.html

-------------------------------------------------------------------------------------

The folder from the ajax filemanager.
jscripts\tiny_mce\plugins\ajaxfilemanager


Are all pages/folders in the root directorie!

1)login and open the news page in the editor
2)upload the image with the ajax file manager.
3)select the image in the filemanager to paste in the news page.(tick the box)
4)close the editor.
5)renew your webbuilder page.


-----------------------------------------------------------------------------------

eggman08.2008 discovered an easier way to use white text in the cms than changing the bgcolor from the cms editor.

In wysiwyg web builder, go to page properties, and in formatting, set the default text colour to white.
Then write your text in the cms editor, but DO NOT set a colour for the text you require to be white.
Your text will show black in the cms, but when published, it will show as the default text colour for the webpage.

Posted: Thu Oct 08, 2009 3:29 am
by me.prosenjeet
Looks nice Eddy!
I will try it tonite

Posted: Thu Oct 08, 2009 5:54 am
by FredericP
Great !!
I'll try it too !

Posted: Thu Oct 08, 2009 11:57 am
by BaconFries
:D Ah you got it released great work as always Eddy....sure this will be greatly appreciated by everyone......

Posted: Thu Oct 08, 2009 12:01 pm
by haakoo
The requested URL /jscripts/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php was not found on this server.

Most important thing to the cms isn't working.
Yes the file is on the server.
yes the permissions are set

Hans

Posted: Thu Oct 08, 2009 12:37 pm
by Eddy
All files must in the same directorie/ folder as the pages what use the extension.

Posted: Thu Oct 08, 2009 1:12 pm
by haakoo
Found it:
You need to load the cms to the root of your site.
if you upload to a different folder you need to change the path.

Hans

Posted: Thu Oct 08, 2009 6:07 pm
by Eddy
another thing but I can use for my work?
You can use this extension in all your websites :D please read the Tems and conditions.

Posted: Thu Oct 08, 2009 9:46 pm
by jordan
index updated . thx for your mail.
extension looks very nice again Eddy.
. 8) .

Posted: Thu Oct 08, 2009 9:51 pm
by Eddy
Ok thanks, where do I put your name in the script?
The credits to the original developers are in the editor window,so you don`t need to write my name in the script :D

Thanks asking this. 8)

Posted: Sun Oct 11, 2009 12:59 pm
by Eddy
but this is too basic and very difficult to explain to the client how to edit the pages
Its almost like using MS word or the official news writer its not so difficult to edit the pages.
And yes, its not a real cms but more like the official news-writer with more options.
If I have to edit, then I can do through the project itself.

Its build for clients who need to update the page content withoud webbuilder :?

TIP:Make a video tutorial for your client.

Posted: Sun Oct 11, 2009 4:00 pm
by DarrenH
First class extension Eddy, as always!

Just a few questions.

Can you upload images - I can't see how to do it.

Also, when I select browse next to the image URL, I get this error:

"The webpage cannot be found
HTTP 404
Most likely causes:
There might be a typing error in the address.
If you clicked on a link, it may be out of date.

What you can try:
Retype the address.

Go back to the previous page.

Go to and look for the information you want.

More information "

Any ideas?

Also, when I insert a predefined template, and click update, it doesn't save the template :(

Any suggestions where I am going wrong.


Thanks Eddy :D

Posted: Sun Oct 11, 2009 4:28 pm
by Eddy
All files/folders must in the same directorie/ folder as the pages what use the extension.
Make also shure that you have read and write access.

Posted: Wed Oct 14, 2009 12:44 pm
by me.prosenjeet
I must say, WB is complete now with this CMS extension.
Much better than the News Writer extension and certainly deserves to be a part of WB 6 officially (replace News Writer if required)

Just one thing, I saw I was not getting the tiny_mce for editing the pages hence I had to manually upload the folder "tiny mce"...infact the full "jscripts" folder.

Noticed, the scripts/folders have to remain at root to function...possible to put them in a folder so it doesn't mix with the main files of the site?

Posted: Wed Oct 14, 2009 2:00 pm
by Eddy
me.prosenjeet wrote:I must say, WB is complete now with this CMS extension.
Much better than the News Writer extension and certainly deserves to be a part of WB 6 officially (replace News Writer if required)
The news writer is much smaller in filesize and easyer to use than this CMS and can used in html pages.
I think also that he is not allowed to put these scripts as download on the official site.
Just one thing, I saw I was not getting the tiny_mce for editing the pages hence I had to manually upload the folder "tiny mce"...infact the full "jscripts" folder.
Yes,I didnt include the jscripts folder in the extension.
Otherwise with every new "news" page you have to upload al files again.
Noticed, the scripts/folders have to remain at root to function...possible to put them in a folder so it doesn't mix with the main files of the site
If you dont use the same foldernames than its no problem.
content
jscripts
uploaded
login.php (you can change this filename)


Important is that the pages what use the extension are in the same folder.

Posted: Wed Oct 14, 2009 11:20 pm
by Eddy
I found a security problem for the ajax filemanager, download the cms and read the updated pdf.

Posted: Fri Oct 16, 2009 1:56 am
by Patr100
I uploaded an inserted an image but when I preview the page I get a blank image holder with the red cross where it should be?

Posted: Fri Oct 16, 2009 6:45 am
by Eddy
If you have used pages in folders ( page not in the same directorie as the cms) than the path to the file is not correct.( php include in the WB page )

Do you have this structure on your server?
Look also to the read and write settings (755) or (777) from your folders.

content
jscripts
uploaded
login.php
webbuilder pages.html
webbuilder pages.html
webbuilder pages.html

Posted: Fri Oct 16, 2009 6:58 pm
by Eddy
Its not the webbuilder page what you can edit!

This cms works with the same as the News Writer except that the news page is included with php in your WB page.

The "news.html" page is generated and uploaded in the content folder and on that page you write your content.

-If you read "Edit this page!" in the editor than everything is correct.
-Type your text ,insert your images etc and click update.
-Close the editor and renew (F5) your WB page to see the changes.

Posted: Sun Oct 18, 2009 11:01 pm
by Patr100
Eddy wrote:If you have used pages in folders ( page not in the same directorie as the cms) than the path to the file is not correct.( php include in the WB page )

Do you have this structure on your server?
Look also to the read and write settings (755) or (777) from your folders.

content
jscripts
uploaded
login.php
webbuilder pages.html
webbuilder pages.html
webbuilder pages.html
Yes I have that structure and read /write permission are corrrect.

Posted: Mon Oct 19, 2009 1:14 am
by Eddy
Is the cms and the pages in the root directorie of your site?,if yes than the only problem I can think of are the file permissions.

Look also to the ajaxfilemanager folder permissions.

Posted: Mon Oct 19, 2009 6:23 am
by Juul
Eddy,

Thanks for the tips :wink: , it works!!!!


Juul

Posted: Sat Oct 24, 2009 3:55 pm
by Eddy
In the downloaded zip file is also a folder jscripts ,did you upload that folder to the same directorie as the pages what use the extension.

Do you have this structure on your server?
Look also to the read and write settings (755) or (777) from your folders.

content
jscripts
uploaded
login.php

webbuilder pages.html
webbuilder pages.html
webbuilder pages.html

Posted: Sat Oct 24, 2009 4:52 pm
by Patr100
Eddy wrote:Is the cms and the pages in the root directorie of your site?,if yes than the only problem I can think of are the file permissions.

Look also to the ajaxfilemanager folder permissions.
All the permissions fro all the folders are set to 777 or 755.
When I upload an image it is placed in the uploads folder.

But it's stil not showing up on the page.

-

Posted: Sat Oct 24, 2009 6:29 pm
by Eddy
Are all pages/folders in the root directorie!

1)login and open the news page in the editor
2)upload the image with the ajax file manager.
3)select the image in the filemanager to paste in the news page.(tick the box)
4)close the editor.
5)renew your webbuilder page.

Posted: Sat Oct 24, 2009 7:06 pm
by Patr100
Eddy wrote:Are all pages/folders in the root directorie!

1)login and open the news page in the editor
2)upload the image with the ajax file manager.
3)select the image in the filemanager to paste in the news page.(tick the box)
4)close the editor.
5)renew your webbuilder page.
Yes I already siad they are al in the root folder.
I've already done the above.
I am going to empty everything and try again another time.

Posted: Sat Oct 24, 2009 7:40 pm
by Eddy
Sorry,there is not much to configure if all folders and pages are in the same directorie with the right folder permissions than it should work.

Maybe you need to give the ajax file manager folder read and write permissions?

Posted: Sat Oct 24, 2009 8:27 pm
by Patr100
Eddy wrote:Sorry,there is not much to configure if all folders and pages are in the same directorie with the right folder permissions than it should work.

Maybe you need to give the ajax file manager folder read and write permissions?
What specific folder are you referring to?

Posted: Sat Oct 24, 2009 8:34 pm
by Eddy
The folder from the ajax filemanager.

jscripts\tiny_mce\plugins\ajaxfilemanager

Posted: Sat Oct 24, 2009 8:58 pm
by Patr100
Eddy wrote:The folder from the ajax filemanager.

jscripts\tiny_mce\plugins\ajaxfilemanager
Just checked it its already 755

Posted: Sun Oct 25, 2009 2:45 am
by Eddy
When I upload an image it is placed in the uploads folder.
But it's stil not showing up on the page.
I asume that your webbuilder page have the extension php otherwise I have no idea why it does not work for you :?

Posted: Sun Oct 25, 2009 3:33 am
by Patr100
Yes it is
I can edit/add text no problem but uploaded pics still just appear as placeholder with the red cross.
I'll try again later

-

Re: Can´t see the Tiny mce editor

Posted: Sun Oct 25, 2009 12:16 pm
by Patr100
Ukra wrote:
Is there an alternative to the ftpmanager?

Ulrik

I use Filezilla (its free) jusst google it.

Posted: Sun Oct 25, 2009 2:17 pm
by Eddy
Patr100 wrote:Yes it is
I can edit/add text no problem but uploaded pics still just appear as placeholder with the red cross.
I'll try again later

-
Look in the "page html" from the page with the extension if the path to the image is correct,if yes than it can only a permission problem.

Maybe.....in the uploaded folder are more folders for the content to upload,did you give these folders permissions.

Posted: Sun Oct 25, 2009 6:44 pm
by Patr100
Ok I sorted it.


Eddy wrote:If you have used pages in folders ( page not in the same directorie as the cms) than the path to the file is not correct.( php include in the WB page )

Do you have this structure on your server?
Look also to the read and write settings (755) or (777) from your folders.

content
jscripts
uploaded
login.php
webbuilder pages.html
webbuilder pages.html
webbuilder pages.html




Unless I was missing something the above was slightly misleading
The problem was the actual path to the image was
root/content /uploaded

when the structure was
root/uploaded

I manually moved the uploaded folder to
root/content/uploaded

and it worked.
-

Posted: Sun Oct 25, 2009 7:40 pm
by Eddy
I`am happy you found the problem!
I dont know what is different on your server but it works now and thats importand. :D

But can you now upload images with the filemanager to the uploaded folder?

Posted: Sun Oct 25, 2009 9:00 pm
by Patr100
Eddy wrote:I`am happy you found the problem!
I dont know what is different on your server but it works now and thats importand. :D

But can you now upload images with the filemanager to the uploaded folder?
Hmmm Good question just tried it doesn't like it. :(

"Unable to locate the specific folder: ../../../../uploaded/"


-

Posted: Sun Oct 25, 2009 10:05 pm
by Eddy
Its in config.base.php , if you make changes in this file than make first a copy,I have work many hours to make all files work together and i dont know if everything wil work if you make changes in this file.

\jscripts\tiny_mce\plugins\ajaxfilemanager\inc\config.base.php


CONFIG_SYS_DEFAULT_PATH is the default folder where the files would be uploaded to and it must be a folder under the CONFIG_SYS_ROOT_PATH or the same folder these two paths accept relative path only, don't use absolute path*/ define('CONFIG_SYS_DEFAULT_PATH', '../../../../uploaded/'); //accept relative path only define('CONFIG_SYS_ROOT_PATH', '../../../../uploaded/');

Posted: Sun Oct 25, 2009 10:23 pm
by Patr100
Will have a look

While I'm in config.base.php what about the addiitional security update option?

How do I change the log in details ?

Change false to 1 - I can do that

the userrname and password are obviolsy encrypted so do we just leave that as is?

=

Posted: Sun Oct 25, 2009 10:36 pm
by Eddy
In the pdf is an example.
Change also the password and login name.

Posted: Sun Oct 25, 2009 11:20 pm
by Patr100
Eddy wrote:In the pdf is an example.
Change also the password and login name.
yes but where? They are encrypted inthe file - The password can be changed via the extension but not the login name?

Posted: Sun Oct 25, 2009 11:28 pm
by Eddy
No,the password in the extension properties window is for the login page to the editor.

The password and login for the filemanager is in the config.base.php
I cannot make this as option in the extension properties window because these files are not in the extension.

Its not encrypted you can change the password and login in the file with notepad,or open the file in a php editor to change the names.

In a php editor the file looks like this

Code: Select all

<?php
	/**
	 * sysem base config setting
	 * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn)
	 * @link www.phpletter.com
	 * @since 1/August/2007
	 *
	 */
	

error_reporting(E_ALL);	
//error_reporting(E_ALL ^ E_NOTICE);	
	
	

	//Access Control Setting
	/**
	 * turn off => false
	 * by session => true
	 */
	define('CONFIG_ACCESS_CONTROL_MODE', false); 	
	define("CONFIG_LOGIN_USERNAME", 'sdfgdfgdfgdgfdgsdfsdfg3454dsfb5e');
	define('CONFIG_LOGIN_PASSWORD', 'ASDF@#%JHGSDFGasdkjfh3812764ksdjfbhkjxcf');
	define('CONFIG_LOGIN_PAGE', 'ajax_login.php'); //the url to the login page
	
	//SYSTEM MODE CONFIG

Posted: Mon Oct 26, 2009 1:04 am
by Patr100
I know this is what I am referring to - I had it open in notepad

You mean the long random password and login - is it automatically generated ?
is it always the same unless we manually change it?

define('CONFIG_ACCESS_CONTROL_MODE', false);
define("CONFIG_LOGIN_USERNAME", 'sdfgdfgdfgdgfdgsdfsdfg3454dsfb5e');
define('CONFIG_LOGIN_PASSWORD', 'ASDF@#%JHGSDFGasdkjfh3812764ksdjfbhkjxcf');
define('CONFIG_LOGIN_PAGE', 'ajax_login.php'); //the url to the login page

Posted: Mon Oct 26, 2009 1:12 am
by Eddy
No,its always the same unless you manually change it.

The long password and login are inserted from the developer as example.

Posted: Mon Oct 26, 2009 2:17 am
by Patr100
Eddy wrote:No,its always the same unless you manually change it.

The long password and login are inserted from the developer as example.
Ok but we don't ever enter it?
When is it used?
So it's best to change it to something else anyway?

Posted: Mon Oct 26, 2009 3:35 am
by Eddy
Ok but we don't ever enter it?
When is it used?
So it's best to change it to something else anyway?
If you enable it (Change false to 1) you have to type the password and login if you need to upload a file with the filemanager.

You should enable this option so nobody else can upload files to your server!

Posted: Mon Oct 26, 2009 10:59 am
by Patr100
Oh I get it .


I assume the config.base.php file itself is not vulnerable to attack without some form of encrypted username/password ?

Posted: Mon Oct 26, 2009 1:21 pm
by Eddy
I assume the config.base.php file itself is not vulnerable to attack without some form of encrypted username/password ?
Its a php file you cannot read the file in a browser,for more information you have to ask the developer,I asume its very secure otherwise they would have changed the login for the filemanager.

Posted: Fri Nov 20, 2009 6:41 pm
by Eddy
I have not tested if this also change the editor backgroundcolor.
I have inserted a css file to make your own styles.
Go to login.php and remove the two // and make your style in:

Code: Select all

jscripts/tiny_mce/plugins/template/css/content.css
This code is in login.php.

Code: Select all

 // Example  content CSS (should be your site CSS)
 //content_css : "jscripts/tiny_mce/plugins/template/css/content.css",

Related forums.
http://tinymce.moxiecode.com/punbb/view ... hp?id=1138
http://tinymce.moxiecode.com/punbb/viewtopic.php?id=288

Posted: Thu Dec 03, 2009 4:10 pm
by Eddy
All your questions are answered in the pdf.
Read also in this topic ,i have answered almost every problem.

Make sure that all files are in the same directorie as your webbuilder pages.

You can use the build-in ftp to cmod the files/folders.( click explore in the publish window)