Cenron Posted May 24, 2007 Share Posted May 24, 2007 I am currently writing a website in PHP and I want to make it moduler....for example if I want to add a news module I want to be able to drop it in the module folder and the website will read it add all the right things to the admin panel so you can integrate the module into your site. I want to write this so the person integrating the module dosent have to have much programming knowledge....was wondering if anyone has done anything like this before...if so what would be the best way to do it? Quote Link to comment https://forums.phpfreaks.com/topic/52777-moduler-website/ Share on other sites More sharing options...
redarrow Posted May 24, 2007 Share Posted May 24, 2007 The only easy way to do this is to design the website with template's. For example say you design a news page your need the new links for that new page to be added to the project so buy having example a link template page your add the new link to the template for the news and suply the new news php pages. to be onest your better offering updates to your customers via a downloadeable link via the project from a set page. Quote Link to comment https://forums.phpfreaks.com/topic/52777-moduler-website/#findComment-260568 Share on other sites More sharing options...
Silverado_NL Posted May 24, 2007 Share Posted May 24, 2007 I know some CMS (Content Management Systems) that have separate working modules. Examples are PHPNuke or OSCommerce or Joomla. you could look into those script. and try creating a script like that. if you don’t want to emulate an existing script and have you own, best is to start from scratch. my way of creating such a script would be to load all the module info into a database, so you can make some input fields for the users to fill in the module information. you could use template's to give the modules its looks, i recommend you use C.S.S. to minimize the amount of markup(colors , text-color , background , borders) you will have to write. then you could give each module a sorting number so they appear in order on your website, and if you want you could let the users change the module order for their own personal preferences, this way the user will be able to position the module where he wants. and if you want you could even let the users choose their own template settings, so the PHP script of each module stays the same, but the appearance will chance depending on what template the users chooses it is not really easy to create such large scripts if you are new to PHP. but writing functions or working in OOP will make a big difference. and planning ahead is probely the most important aspect on your way to building lose modules. good luck& greetingz Silverado Quote Link to comment https://forums.phpfreaks.com/topic/52777-moduler-website/#findComment-260590 Share on other sites More sharing options...
Cenron Posted May 24, 2007 Author Share Posted May 24, 2007 right on guys thanks for the replys...I have been working or php for a while now so shouldnt be to hard...I was just wondering if there was a simple way of doing it that i didnt think of...THANKS ALOT FOR THE HELP GUYS Quote Link to comment https://forums.phpfreaks.com/topic/52777-moduler-website/#findComment-260964 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.