KDM Posted December 14, 2010 Share Posted December 14, 2010 I've made a site for a client and they like it. They asked me who does the updates me or them? So I know they want to make the updates themselves. Do anyone know the best place I can learn how to create a CMS? I would prefer video tutorials. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/221658-how-do-i-build-a-content-management-system/ Share on other sites More sharing options...
Anti-Moronic Posted December 14, 2010 Share Posted December 14, 2010 This might work: http://css-tricks.com/php-for-beginners-building-your-first-simple-cms/ Quote Link to comment https://forums.phpfreaks.com/topic/221658-how-do-i-build-a-content-management-system/#findComment-1147286 Share on other sites More sharing options...
KDM Posted December 14, 2010 Author Share Posted December 14, 2010 This might work: http://css-tricks.com/php-for-beginners-building-your-first-simple-cms/ Thanks. Looks very simple. Quote Link to comment https://forums.phpfreaks.com/topic/221658-how-do-i-build-a-content-management-system/#findComment-1147289 Share on other sites More sharing options...
Anti-Moronic Posted December 14, 2010 Share Posted December 14, 2010 It is quite simple, especially if you have good experience with php. It uses OOP to a small degree. From what I see, he is implementing it all wrong; more just a collection of functions inside a class. Nontheless, good place to start and it's right on topic. The basic logic here is you need to store the data for your current application in a database. Things like categories, page content etc You then create an admin area which allows full control over this. Depending on the complexity of the app, the database could become quite complex in itself. I'd also look at optimal database design (unless the site is already database driven). Quote Link to comment https://forums.phpfreaks.com/topic/221658-how-do-i-build-a-content-management-system/#findComment-1147291 Share on other sites More sharing options...
ignace Posted December 14, 2010 Share Posted December 14, 2010 Do anyone know the best place I can learn how to create a CMS? If you have a good amount of knowledge on what a CMS is and have the necessary PHP skills then I don't see why you would need a tutorial at all. Quote Link to comment https://forums.phpfreaks.com/topic/221658-how-do-i-build-a-content-management-system/#findComment-1147292 Share on other sites More sharing options...
KDM Posted December 21, 2010 Author Share Posted December 21, 2010 It is quite simple, especially if you have good experience with php. It uses OOP to a small degree. From what I see, he is implementing it all wrong; more just a collection of functions inside a class. Nontheless, good place to start and it's right on topic. The basic logic here is you need to store the data for your current application in a database. Things like categories, page content etc You then create an admin area which allows full control over this. Depending on the complexity of the app, the database could become quite complex in itself. I'd also look at optimal database design (unless the site is already database driven). This tutorial is a great start. The only thing I need to know now is how to implement the ability for a user to add and delete photo's. Quote Link to comment https://forums.phpfreaks.com/topic/221658-how-do-i-build-a-content-management-system/#findComment-1149751 Share on other sites More sharing options...
ZulfadlyAshBurn Posted December 21, 2010 Share Posted December 21, 2010 cms.php <?php echo "<form enctype='multipart/form-data' action='upload.php' method='POST'>Choose a file to upload: <input name='uploadedfile' type='file' /> <input type='submit' value='Upload File' /> </form>"; $buildhtml = ""; $dirpath = "files/"; $dlist = opendir($dirpath); while ($file = readdir($dlist)) { if (!is_dir("$dirpath/$file")) { // assuming that all the files are image files // when admin click the photo, it will delete the photo $buildhtml .= "<img src=files/$file onClick='unlink(files/$file);'></img><br>"; } } closedir($dlist); if (!empty($buildhtml)) { echo "Files in Storage</strong></u><p>" . $buildhtml . "</p>"; echo "Click on it to download"; } else { echo "The directory is <strong>empty</strong>! Upload the files by using the form above."; } upload.php <?php // Created by ZulfadlyAshBurn header('Refresh: 3; URL=index.php'); // you have to create a folder named files and it should have 777 permissions. $target_path = "files/"; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; } else{ echo "There was an error uploading the file, please try again!"; } ?> show.php <?PHP // Created by ZulfadlyAshBurn $buildhtml = ""; $dirpath = "files/"; $dlist = opendir($dirpath); while ($file = readdir($dlist)) { if (!is_dir("$dirpath/$file")) { // assuming that all the files are image files $buildhtml .= "<img src=files/$file></img><br>"; } } closedir($dlist); if (!empty($buildhtml)) { echo "Files in Storage</strong></u><p>" . $buildhtml . "</p>"; echo "Click on it to download"; } else { echo "The directory is <strong>empty</strong>!"; } ?> you may want to put this (show.php) file in the main page. as you can see, the cms i add in unlink for the admin to be able to delete the photo but at the show pg, the viewers are only able to see but not delete. you can secure you cms.php with some mysql and php. Quote Link to comment https://forums.phpfreaks.com/topic/221658-how-do-i-build-a-content-management-system/#findComment-1149818 Share on other sites More sharing options...
KDM Posted April 29, 2011 Author Share Posted April 29, 2011 Had anyone ever used joomla as a CMS? I here it's free. Quote Link to comment https://forums.phpfreaks.com/topic/221658-how-do-i-build-a-content-management-system/#findComment-1208034 Share on other sites More sharing options...
ZulfadlyAshBurn Posted May 3, 2011 Share Posted May 3, 2011 HAHA. Joomla was the first CMS i used. I was curious about CMS then try making my own one. It works but is not really that secure. I also used my own extensions and parsed it as PHP so ppl would be confused Quote Link to comment https://forums.phpfreaks.com/topic/221658-how-do-i-build-a-content-management-system/#findComment-1209833 Share on other sites More sharing options...
ignace Posted May 3, 2011 Share Posted May 3, 2011 Had anyone ever used joomla as a CMS? I here it's free. Joomla is only one of many free available CMS systems. Take a look at the offerings on: http://php.opensourcecms.com/scripts/show.php?pagenumber=1 Select "Votes Cast (Most to Least)" from the dropdown. Quote Link to comment https://forums.phpfreaks.com/topic/221658-how-do-i-build-a-content-management-system/#findComment-1209968 Share on other sites More sharing options...
Xtremer360 Posted May 3, 2011 Share Posted May 3, 2011 Not to discourage you from using Joomla but you should also take a look at WordPress. But that site at CSS-Tricks is a great site the owner, Chris Coyier, does excellent work. Quote Link to comment https://forums.phpfreaks.com/topic/221658-how-do-i-build-a-content-management-system/#findComment-1209981 Share on other sites More sharing options...
spiderwell Posted May 3, 2011 Share Posted May 3, 2011 i used this page: http://www.intranetjournal.com/php-cms/ and its probably outdated but taught me all i needed to know to get a basic cms of my own design up and running, again its class based with basic oop ideas i also used the one at css tricks its very good Quote Link to comment https://forums.phpfreaks.com/topic/221658-how-do-i-build-a-content-management-system/#findComment-1210084 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.