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

In this section you can share self-made extensions with other users of WYSIWYG Web Builder.
There is a dedicated section for commercial extensions.
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

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

Post 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.
Last edited by Eddy on Thu Apr 22, 2010 10:22 am, edited 16 times in total.
User avatar
me.prosenjeet
 
 
Posts: 1265
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Post by me.prosenjeet »

Looks nice Eddy!
I will try it tonite
Check the new Chat GPT and Malware detect extensions at the link below

Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
FredericP
 
 
Posts: 71
Joined: Thu Apr 26, 2007 5:10 pm
Location: Bourges (France)
Contact:

Post by FredericP »

Great !!
I'll try it too !
[url]http://Peyronnin.fr[/url]
User avatar
BaconFries
 
 
Posts: 5327
Joined: Thu Aug 16, 2007 7:32 pm

Post by BaconFries »

:D Ah you got it released great work as always Eddy....sure this will be greatly appreciated by everyone......
haakoo
 
 
Posts: 189
Joined: Fri Apr 25, 2008 8:02 am
Location: Groningen/NL

Post 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
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post by Eddy »

All files must in the same directorie/ folder as the pages what use the extension.
Last edited by Eddy on Thu Oct 08, 2009 7:19 pm, edited 1 time in total.
haakoo
 
 
Posts: 189
Joined: Fri Apr 25, 2008 8:02 am
Location: Groningen/NL

Post 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
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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.
jordan
 
 
Posts: 831
Joined: Tue Jun 26, 2007 1:56 pm
Contact:

Post by jordan »

index updated . thx for your mail.
extension looks very nice again Eddy.
. 8) .
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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)
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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.
User avatar
DarrenH
 
 
Posts: 46
Joined: Thu Apr 10, 2008 9:31 am

Post 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
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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.
User avatar
me.prosenjeet
 
 
Posts: 1265
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Post 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?
Last edited by me.prosenjeet on Wed Oct 14, 2009 2:04 pm, edited 2 times in total.
Check the new Chat GPT and Malware detect extensions at the link below

Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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.
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post by Eddy »

I found a security problem for the ajax filemanager, download the cms and read the updated pdf.
Patr100
 
 
Posts: 115
Joined: Tue Dec 25, 2007 10:52 pm

Post 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?
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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.
Patr100
 
 
Posts: 115
Joined: Tue Dec 25, 2007 10:52 pm

Post 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.
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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.
Juul
 
 
Posts: 7
Joined: Wed Aug 15, 2007 12:21 pm

Post by Juul »

Eddy,

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


Juul
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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
Patr100
 
 
Posts: 115
Joined: Tue Dec 25, 2007 10:52 pm

Post 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.

-
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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.
Patr100
 
 
Posts: 115
Joined: Tue Dec 25, 2007 10:52 pm

Post 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.
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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?
Patr100
 
 
Posts: 115
Joined: Tue Dec 25, 2007 10:52 pm

Post 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?
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post by Eddy »

The folder from the ajax filemanager.

jscripts\tiny_mce\plugins\ajaxfilemanager
Patr100
 
 
Posts: 115
Joined: Tue Dec 25, 2007 10:52 pm

Post by Patr100 »

Eddy wrote:The folder from the ajax filemanager.

jscripts\tiny_mce\plugins\ajaxfilemanager
Just checked it its already 755
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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 :?
Patr100
 
 
Posts: 115
Joined: Tue Dec 25, 2007 10:52 pm

Post 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

-
Patr100
 
 
Posts: 115
Joined: Tue Dec 25, 2007 10:52 pm

Re: Can´t see the Tiny mce editor

Post by Patr100 »

Ukra wrote:
Is there an alternative to the ftpmanager?

Ulrik

I use Filezilla (its free) jusst google it.
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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.
Patr100
 
 
Posts: 115
Joined: Tue Dec 25, 2007 10:52 pm

Post 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.
-
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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?
Patr100
 
 
Posts: 115
Joined: Tue Dec 25, 2007 10:52 pm

Post 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/"


-
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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/');
Patr100
 
 
Posts: 115
Joined: Tue Dec 25, 2007 10:52 pm

Post 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?

=
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post by Eddy »

In the pdf is an example.
Change also the password and login name.
Patr100
 
 
Posts: 115
Joined: Tue Dec 25, 2007 10:52 pm

Post 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?
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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
Patr100
 
 
Posts: 115
Joined: Tue Dec 25, 2007 10:52 pm

Post 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
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post by Eddy »

No,its always the same unless you manually change it.

The long password and login are inserted from the developer as example.
Patr100
 
 
Posts: 115
Joined: Tue Dec 25, 2007 10:52 pm

Post 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?
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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!
Patr100
 
 
Posts: 115
Joined: Tue Dec 25, 2007 10:52 pm

Post 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 ?
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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.
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post 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)
Post Reply