Results 1 to 4 of 4

Thread: System for generating static websites

  1. #1
    Join Date
    May 2012

    System for generating static websites

    I'm a programmer. Well, I have a MS in computer science but have spent the last 15 years in (ugh!) management so I'm more of a wannabe programmer right now. I totally "get" PHP, mySQL, HTML, CSS...so enough knowledge to be dangerous.

    I want to learn the basic concepts behind how I could create a system that allows a client to select an existing CSS theme, "hit a button" and have their very own website generated - ready to go. Simple, static HTML sites.

    So, not looking for an in depth technical tutorial, I realize that's asking too much -- just the high level idea behind how something like that would work. I would then go do the learning myself to implement, or at least have enough information to have an intelligent discussion with a hired gun to get it done.


  2. #2
    Join Date
    Mar 2011
    I'd suggest you begin by investigating the popular Content Management System and blog scripts like Joomla and WordPress to get an understanding of how they work. It generally consists of a template-based system in which the unique content of each page (title, meta tags, body content, etc.) is stored and retrieved from a database, accompanied by a control panel for the user.

    From there you can create your own templates for your clients to use within such systems, or design your own. Good luck!
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    May 2012
    Thanks, Rick. Yeah I am pretty familiar with WordPress; I modified it a bit and integrated it seamlessly with phpBB on the last site I developed.

    For this problem though I think I need to approach it differently. I don't want a page generator -- I want a site generator. Like, a new root folder inside of public_html and a domain pointer that points to it (so the client can have their own site name www.foo.com or foo.parentsite.com).

    Maybe I'm overthinking it and it is as simple as doing the directory create and copying the file structure over...

  4. #4
    Join Date
    Mar 2011
    The site creation process can be automated if you're willing to use subdomains like foo.parentsite.com by creating a system that would modify the .htaccess file on parentsite.com and load the necessary files into an appropriate directory on parentsite.com. It would take some care to make it stable and secure, but its absolutely possible. I'm sure you could find some scripts online that would do it and explain the details.

    Supporting independent domain names would require a dedicated server (or perhaps a virtual dedicated server). That end of things could be also automated, but it would still require that your clients update the DNS settings on their domain name to point to your server manually. So I don't think it's practical.

    Even the subdomain approach will probably require at least a virtual dedicated server if you start getting more than a handful of clients using it because you can easily run into resource limits on shared hosts for things like MySQL server accesses, and terms of service that prohibit the practice.

    But from there, you can do whatever you like. Make your own Content Management System or rely on one of the scripts we've discussed. Good luck!
    Rick Trethewey
    Rainbo Design

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.09079 seconds
  • Memory Usage 2,864KB
  • Queries Executed 15 (?)
More Information
Template Usage (32):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (4)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (72):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates