Just for fun, phpBeta 2.01 released

Discussion in 'PHP' started by pixmania, Apr 27, 2009.

  1. #1
    I'm a complete novice when it comes to programming, however I put together a free CMS system called phpBeta, it has a few bugs browser related and theres probable 100 better ways to do some of the ideas I have implemented. Hence I'm looking for a few people ( not necessarily experts ) just novice php users to help and improve upon the system...

    As above its a completely free system so no you wont be paid, but of course any help along the way will go into some form of recognition within the scripts.

    So if anybody is interested in its development, please see my signature...
     
    pixmania, Apr 27, 2009 IP
  2. Steve136

    Steve136 Peon

    Messages:
    240
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hey There,

    It's good to see more people are releasing open source software and I wish you the best of luck with this project!

    I've had a quick look through some of the files and have a few suggestions...

    Templates

    I can see that you are using your own code for managing the templates and template selection, have you thought about using an open source template manager? - For example: http://www.smarty.net which is really good and provides many many features (one of course, is caching)

    MySQL

    I've noticed you have alot of MySQL code in nearly every file, this can greatly be reduced by using Classes, (you can use mine if you wish, send a PM) this will allow you to do MySQL queries in effective two lines of code - for example:

    
    $msQry = $MySQL->Query("SELECT `id FROM `blah` WHERE `id` = 1");
    $msRes = $MySQL->fetch_assoc($msQry);
    
    Code (markup):
    You can also do a number of other things like testing performance and the speed of the queries globally across the site.

    Structure and Organising

    Most of the code currently is in each separate file and there is a lot of code duplication, have you thought about moving the code into functions and classes which would make it easier to maintain, as more people start working on it then easier it gets to develop - As currently, if you need to edit a certain feature you have to change the code in all files.

    I would also provide some support for SEO, with a few lines of code and a .htaccess file you can make the site completely SEO URL friendly. ie: blah.com/page/home instead of blah.com?page=home

    I can see you have put a lot of time and effort into this and I hope you carry on updating it, there is a lot of other content management systems currently out and it's hard to get a small project noticed.

    I've linked to a few resources that may be of interest to you -

    http://www.smarty.net - PHP Template manager, very quick, very good piece of software.
    http://www.jquery.com - For nice JS animation/AJAX work on the CMS.
    http://jqueryui.com - Extension to above, providing JS widgets and UI elements on the pages.
    http://tinymce.moxiecode.com - Open Source very good WYSIWYG editor.
    http://sourceforge.net/projects/codepress - Code formatter/editor with lines/numbers maybe useful for the CSS editor.

    As I said, these are only suggestions feel free to ignore/not use anything I've said, I was just throwing ideas about.

    I will gladly help if you need help with anything (send me a PM)

    Regards,

    Steve
     
    Steve136, Apr 28, 2009 IP
  3. pixmania

    pixmania Peon

    Messages:
    229
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Steve I truly, greatly, thankfully and any other words you can think of that express gratitude for your comments.. as above I'm just a novice and really appreciate your comments, between yesterday and today I have implemented the following..


    http://www.smarty.net - Installed does caching work okay with Google ads ?
    http://www.jquery.com - Installed with various plugins and scripts, should I provide a call from a jquery/ directory for future plugins ?
    http://jqueryui.com - This one I'm stumped, what does this mean, how would it benefit the webmaster using the CMS script ?
    http://tinymce.moxiecode.com - Installed working on image uploads anybody speak Russian for a file translation otherwise looks good and working ?
    http://sourceforge.net/projects/codepress - Installed as suggested.

    Once I sort out the Russian language I will release the script as a package and look for bugs, what you reckon ?

    Ive editd the smarty scripts to read new themes, however I think the admin/backend panel needs a clear cache/directory script, should any user change the template ?
     
    pixmania, Apr 29, 2009 IP
  4. Steve136

    Steve136 Peon

    Messages:
    240
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hey,

    The Smarty caching is enabled with a variable setting, so you could provide an option in the admin panel to turn it on/off, however it should work ok on with changing templates.

    Clearing the cache manually would just be reading the /templates_c folder and deleting all files - Pretty basic and an effective way of doing it.

    JQuery is mainly for developers to take advantage of, it's a very powerful javascript library. By default I wouldn't include it all, by option (maybe admin panel/php config file) you could have an option to include it.

    The JQuery UI is for the widgets, ie: calendar, scrollbars, popup boxes this could be implemented in any number of ways.

    I'm not sure about the russian docs, I originally used the wiki located here

    Once you have a stable version I would then release updates for users to test the new version, however something like this needs extensive testing before being used on a live server, as it's open source malicious users may not report bugs or exploits and use them for their own personal gain, not saying that this is always is the case but it happens.

    Regards,

    Steve
     
    Steve136, Apr 29, 2009 IP