Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder logictrap's Avatar
    Join Date
    Apr 2008
    Posts
    155
    Thanks
    11
    Thanked 3 Times in 3 Posts

    How to allow users to add modules in a custom CMS

    I want to allows users to customize parts of a website by allowing them to insert modules such as a poll or slideshow from a preset list of modules without giving them the ability to use php or javascript code.

    I'm looking for recommendations for methods to handle this. The first method I came up with is to use FCKeditor and allow them to enter plain text in a field and then have php parse the code and replace it with the corresponding module.

    Example:

    Users enters: %%poll%%

    PHP replaces it '%%poll%%' with <?php include('poll.php'); ?>

    Is this a good method? security issues? is there a better method that might be easier and more versatile?

    Thanks

    Which came first - the chicken or the egg? The egg... [ticket closed]
    If a tree falls... does it make a sound? Yes.............. [ticket closed]

  • #2
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    How about having a poll and slideshow column in a MySQL database with a default value of 0 for off. When the user changes the value to 1 for on, the poll or slideshow would be included.





    -----------
    Leonard Whistler


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •