Page 1 of 1

CMS additions

Posted: Tue Sep 21, 2004 7:57 am
by Thijs
Hi, I made some additions/changes to CMS made simple. I did not want to post them yet since there are some open ends, but seeing that version 6.2 has already been published, and having made alterations against 6.1, I decided just to post as-is. I hope you find the work worthy of inclusion in the code base :) :

I am running a working example on

http://testsite.contemplated.net/cms/admin

site is published at
http://testsite.contemplated.net/cms/

login: admin/admin

:: fixed bugs
- files.php: fixed filemanagement giving strange logentries (action = -1) (audit in module.modules & audit in page.functions not equal)

:: Change log
- Changed stylesheet and header/footer to reflect new admin layout
- Filemanager extension handler: (files.php)
General filetype format to allow for easy extension of file handlers
item format:

Code: Select all

     	    'extention'  =>Array('img'=>'imagename','desc'=>'File description',
     			'link'=>Array(
     				'handler name1'=>'link1',
     				'handler name2'=>'link2'
     			)
     		), 
note that '
extention' is without leading '.'
'imagename' is without trailing '.png'
'link' is parsed: {file} denotes the file name with relative dir,
                  {dir_file} denotes the file name with full dir,
                  {url_dir_file} denotes the file name with full dir and URL,

// For now, only the handler 'view' is used. In the future, a shall popup will
// occur for multiple handlers for one file type (such as "Edit", "Convert",
// etc)


- Very simple & lightweight template parser included for inline parsing of filemanager extentions. (misc.functions.php)
(Should Smarty be used?)
- Icons for different files (files.php)
- Smarter filesize formatting (MB, KB, B) (files.php)
- Added new filemanager related language entries (lang/admin.inc.php, see end of file)
- .gif images converted to .png, references adjusted (assorted files but not HTMLArea)
- Translation fixes for Dutch CMS language package
- Automatic language selection for HTMLarea
- Prepared for HTMLArea language switching (header.php, ... .nls.php)
- Htmlarea changes:
  • updated script, against HTMLArea CVS
    Changed button style 'button' to 'HAbutton' (button style is already used for (form)buttons)
    Added Indite plugin (seems a bit slow and little buggy, author is notified)
    Added Dutch language translations for HTMLarea plugins
    [/list:u]
    - Layout changes for login (login.php)

    Things that should probably be done before inclusion in a release version:

    - Clean up CSS stylesheet
    - Popup for multiple file handlers

    I am still very enthousiastic about CMS made easy, and I really hope my submissions can be used. Wishy, should I mail this as a compressed package to you? If I should post submissions in another way (directly in the CVS, or through IRC) please let me know.

Re: CMS additions

Posted: Tue Sep 21, 2004 9:29 am
by Ted
Hey Thijs,

You're definatly been busy. Nice work. There are definatly some great enhancements here. However, there are a couple of issues as well, mostly concerning the style changes. Can you jump on IRC when you get a chance, and we can work them out? I'd love to include your work in the next release.

Thanks!

CMS additions

Posted: Tue Sep 21, 2004 9:35 am
by Thijs
Thanks, I'll install a client and logon tonight (as I'm at work right now). This might give a time zone problem, though since I live in a GMT +1:00 country. Will I be able to reach you?

CMS additions

Posted: Tue Sep 21, 2004 9:40 am
by Ted
I should be around. I'm GMT-5, and on IRC all day at work, too. You'll probably be going to bed when I'm ready to go home. :)

CMS additions

Posted: Tue Sep 21, 2004 12:38 pm
by Thijs
:) in that case, till tonight