Jump to content

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/52777-moduler-website/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/52777-moduler-website/#findComment-260568
Share on other sites

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

 

Link to comment
https://forums.phpfreaks.com/topic/52777-moduler-website/#findComment-260590
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.