ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Introducing Fresh - A CodeIgniter CMS

July 30, 2009 8:05am

Subscribe [10]
  • #1 / Jul 30, 2009 8:05am

    Adam Griffiths

    316 posts

    Hi guys,

    I wanted to use the forum as a means to promote my newest contribution to the CodeIgniter community. I have built a simple CMS built on top of CodeIgniter and The Authentication Library — I created a series of posts on my website on how to create a CMS and have decided to release the code as a package and support it.

    Some of you may remember my first libraries for CodeIgniter — they went under the moniker “Fresh Powered” which is the CMS I originally built. This time though I have had the time to create it again but at a much simpler level.

    So far Fresh has all the features of The Authentication Library as well as an added page management area. The page management is very simple, and no WYSIWYG editor is included as yet. The front end is also very primitive, although I have ideas for helpers I can use on the frontend to make it better.

    I have a website dedicated to Fresh which includes all links to demos etc but I will link to everything in this thread.

    Fresh — A CodeIgniter CMS
    Fresh demo
    Fresh demo login demo:password
    Fresh on Github

    I’m hoping this thread will become a hive of ideas for the CMS and as it is in a very early state it will be easier to implement features that people may need or want in a CMS.


    Thanks guys,
    Adam

  • #2 / Jul 30, 2009 8:36am

    Phil Sturgeon

    2889 posts

    http://freshpowered.com/demo/index.php/admin/users/manage

    Unable to locate the model you have specified: usermodel

    http://www.freshpowered.com/demo/

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined offset: 0

    Filename: controllers/page.php

    Line Number: 36
    A PHP Error was encountered

    Severity: Notice

    Message: Undefined variable: title

    Filename: views/index.php

    Line Number: 1
    A PHP Error was encountered

    Severity: Notice

    Message: Undefined variable: content

    Filename: views/index.php

    Line Number: 3

    There are no actions to click when something has been added. Perhaps redirect them somewhere or offer a link?

    Other than that, off to a good start! 😊

  • #3 / Jul 30, 2009 8:54am

    ralf57

    52 posts

    The demo throws errors in many pages.
    I think you’ve published it too soon 😉

  • #4 / Jul 30, 2009 9:01am

    Adam Griffiths

    316 posts

    Looked like somebody changed the homepage name on the demo. So that’s why the errors were being thrown. I\‘ll build a failsafe for it soon.

  • #5 / Aug 03, 2009 1:23pm

    InsiteFX

    6819 posts

    Hi Adam,

    Problems:

    1) In the dump.sql, the INSERT INTO `pages` is missing the slug field.

    2) I have installed the way you stated, but I get nothing but can not send headers, header already sent by /index.php/page/1.

    3) Not a problem, but I would just download the font-min.css file and place it into a css directory.

    Enjoy
    InsiteFX

  • #6 / Aug 03, 2009 2:19pm

    Adam Griffiths

    316 posts

    Hi Adam,

    Problems:

    1) In the dump.sql, the INSERT INTO `pages` is missing the slug field.

    2) I have installed the way you stated, but I get nothing but can not send headers, header already sent by /index.php/page/1.

    3) Not a problem, but I would just download the font-min.css file and place it into a css directory.

    Enjoy
    InsiteFX

    I have fixed the dump.sql file and pushed it to the repo, thanks.

    Unless you have a page with the name 1, then you are likely going to see errors. Without more information though I will not be able to help.

    What version of PHP are you using?
    Have you added pages yet? Try adding a few then go to index.php/page/
    What version of CodeIgniter are you using? I’ve only tested it with 1.7.1.

     

    Thanks,
    Adam

  • #7 / Aug 03, 2009 7:47pm

    InsiteFX

    6819 posts

    Hi Adam,

    PHP 5.2.9
    MySQL 5.1.33 Community
    CodeIgniter 1.7.1

    I may have this setup wrong not sure.

    Directory Structure:

    Localhost/codeigniter/cms

    Is this correct?

    Also what do I need to setup a page?

    I do a lot web graphics, so if you want I can design some things Fresh CMS.

    Thank you for your help
    InsiteFX

  • #8 / Aug 03, 2009 7:59pm

    Adam Griffiths

    316 posts

    Hi Adam,

    PHP 5.2.9
    MySQL 5.1.33 Community
    CodeIgniter 1.7.1

    I may have this setup wrong not sure.

    Directory Structure:

    Localhost/codeigniter/cms

    Is this correct?

    Also what do I need to setup a page?

    I do a lot web graphics, so if you want I can design some things Fresh CMS.

    Thank you for your help
    InsiteFX

    Basically all you need to do is setup the $base_url variable inside application/config/config.php, edit the application/config/database.php settings and run the dump.sql query on a database table.

    To add a new page (provided that you have run the SQL query on a database and are connected to it) simple go to http://yoururl.ext/path/to/fresh/index.php/register — to register a new account, once a new account has been made you need to change the group_id for that user to 1 in the database (there’s a screencast on Programmers Voice that shows you how).

    Then you can go to http://yoururl.ext/path/to/fresh/index.php/login to login and go into the “Manage Pages” tab to add a new page.


    Now that might sound really long winded but it’s all fairly simple to do.


    If you want to help out with some graphics that would be cool, I’ll private message you my email.

     


    Thanks,
    Adam

  • #9 / Aug 03, 2009 8:15pm

    InsiteFX

    6819 posts

    Hi Adam,

    Thank you very much.

    Will email.

    Enjoy
    InsiteFX

  • #10 / Aug 04, 2009 4:38am

    InsiteFX

    6819 posts

    Hi Adam,

    As I promised here is the link to the dashboard images.

    they are all in .png 256x256, 128x128, 64x64 and 32x32

    I will be adding a header, footer and logo as soon as Adam gives me the sizes.
    I want to try and keep the layout images like Programmers Voice.

    Included:

    These can also be used in Adam’s Auth 1.0.6

    Shopping Cart
    Pages
    Page
    Email
    Internet
    Site Tools
    Site Config
    Auth Security
    Groups
    Users
    Plus more.

    All have edit, delete, view and add.

    These will be licensed under the Fresh CMS, and are free to the Fresh CMS community.

    Link: http://www.procoversfx.com/download/codeigniter/black.zip

    If you find any problems please leave me a message here in the forums.
    Also if you find something I missed or you want added let me know.

    Enjoy
    Everyone

  • #11 / Aug 04, 2009 7:14am

    Phil Sturgeon

    2889 posts

    Where were my free logo’s for PyroCMS InsiteFX? I am hurt and offended… :’(

  • #12 / Aug 04, 2009 8:23am

    Adam Griffiths

    316 posts

    Thanks for the icons, I’ll go over them and see which ones I can add into the interface.

    Thanks,
    Adam

  • #13 / Aug 04, 2009 10:59am

    InsiteFX

    6819 posts

    Hi Adam,

    I have checked everything and did what you told me to do.

    I was able to register the admin account etc.

    But I’m still getting these errors on login, then I can not get to the admin dashboard.

    A PHP Error was encountered
    Severity: Warning
    
    Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\CodeIgniter\CMS\index.php:1)
    
    Filename: libraries/Session.php
    
    Line Number: 662
    
    A PHP Error was encountered
    Severity: Warning
    
    Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\CodeIgniter\CMS\index.php:1)
    
    Filename: libraries/Auth.php
    
    Line Number: 53
    
    home
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sed libero consectetur arcu suscipit convallis. Sed accumsan dictum risus, sollicitudin eleifend velit mollis eget. Curabitur varius orci sagittis sapien elementum porta. Pellentesque interdum nulla quis purus luctus nec auctor sem venenatis. Vivamus ultrices odio sit amet metus faucibus suscipit. Morbi sed enim a sapien facilisis scelerisque. Duis facilisis leo quis sapien laoreet eget mollis ipsum condimentum. Etiam placerat accumsan leo, vel faucibus nunc ultrices vel. Aenean tristique mi vitae orci consequat id fermentum tortor accumsan. Donec adipiscing turpis sem. Mauris rhoncus tellus ac elit consequat consectetur. Maecenas elementum volutpat ligula at malesuada.

    That is what I get right after login and before. I’ll double check for any white space, I checked before but I might have missed a file.

    Thank you
    InsiteFX

  • #14 / Aug 04, 2009 6:35pm

    ray73864

    268 posts

    The demo page is down, it has several php errors on it.

  • #15 / Aug 04, 2009 6:38pm

    Adam Griffiths

    316 posts

    Those errors are appearing because some kids keep changing the name of the homepage from ‘home’ to something different. I will implement a fail safe as soon as I have some spare time.


    Thanks,
    Adam

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases