Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

PHP - CMS


ghost's Avatar
0 0

Hey. I need help coding a CMS. I want to make it from scratch as I want to put it in a portfolio. I can code PHP … Not amazingly well but I can code in it.

There are just a few questions i want to ask and any help will be majorly appriciated.

  1. What sort of things do I need to include in a CMS? ie. What functions, what pages
  2. Where do I start?

And thats about everything. If anyone could help that would be awsome.

T.I.A


ghost's Avatar
0 0

DarkMantis wrote:

  1. What sort of things do I need to include in a CMS? ie. What functions, what pages

A CMS is composed of the following:

  1. Tables for users, page content, and user content
  2. A login page / main page
  3. Pages to edit content using PHP & MySQL
  4. Pages that pull content from the MySQL database to display some

That's it, in a nutshell. The proper question to ask at this point is: "What content and types of content am I planning to manage?"

  1. Where do I start?

Written outlines, diagrams, and sketches would be a good place to start. Make it more real than mysterious.


ghost's Avatar
0 0

Thanks. Youve helped quite a bit:)

I know what sort of things im going to be using it for, I just needed an outline of what needs to go in it and how to get it started.

Thanks Zephyr_Pure :D


Infam0us's Avatar
Member
0 0

DarkMantis wrote:

  1. Where do I start?

And thats about everything. If anyone could help that would be awsome. T.I.A Building on what zephyr has already said, IMHO its always good to start with "pseudo code" . Which is an easily readable and writable "code" that you can use to illustrate your ideas for the code that will be used for the CMS. It will help you build a general layout for the way you want it to be built.

i.e. this is pseudo code


if filetype is valid then
    execute upload and display a loading screen
else
    show a generic failure message
end if

for this :


<?php
if (is_valid($file)) {
    upload($file);
    loading_screen($filename);
} else {
    show_failure();
}
?>```


This will help with making your ideas have a shape and general outline, this way (like zephyr said) it will make them more real than mysterious.

References:  http://en.wikipedia.org/wiki/Pseudocode#Examples_of_pseudocode

ghost's Avatar
0 0

Agreed. Pseudocode takes a lot of the mystery out of it because, once you can think of it in a way that makes sense to you, the code will come naturally. Sketches of designs do the same for HTML/CSS work, too.


ghost's Avatar
0 0

I will definatly have a look at that code. Thanks. It defenitly looks worth doing.

=]] Thanks guys :) Please feel free to carry on posting anything i may need:)

Thanks.