Portfolio Installation

  1. Create your database on the new server. The schema should be as follows (this SQL may be used to create your new table):

    CREATE TABLE images (
    id bigint(20) unsigned NOT NULL auto_increment,
    `type` varchar(16) NOT NULL,
    h1_text varchar(64) default NULL,
    h1_link varchar(256) default NULL,
    h2_text varchar(64) default NULL,
    h2_link varchar(256) default NULL,
    img_alt varchar(64) default NULL,
    img_url varchar(128) NOT NULL,
    img_link varchar(256) default NULL,
    caption text,
    description text,
    PRIMARY KEY (id)
    ) ENGINE=InnoDB;


  2. Copy the entire portfolio/ directory to the desired location on your new server.

    The portfolio/ directory should include at least the following:
  3. Modify every variable inside config.php to match the configuration on the new server.

  4. Change the $page variable inside portfolio/index.php (this will simply redirect to the page you specify if someone tries to visit portfolio/ in a browser)

  5. That's all! Now just follow the instructions in portfolio/README.html on how to use it.

RSS Installation

  1. Copy rss2html.php and any rss template files to your new server (for example your current template files are named rss-template-events.html and rss-template-news.html)

  2. Modify your template file or create a new one. This is what tells the RSS reader how to format the output.

  3. Add the following to your page where you want the RSS displayed:

    <!-- Begin RSS Feed -->
    <?PHP
    $eventsFeeds = array("http%3A%2F%2Ftheframemaker.com%2Fevents%2F%3Ffeed%3Drss2", "http%3A%2F%2Ftheframemaker.com%2Fdesign%2F%3Ffeed%3Drss2", "http%3A%2F%2Ftheframemaker.com%2Fmcasd%2F%3Ffeed%3Drss2", "http%3A%2F%2Ftheframemaker.com%2Farchive%2F%3Ffeed%3Drss2");
    shuffle($eventsFeeds); // this will randomly change the order of the feeds
    foreach ($eventsFeeds as $url){
    include "http://theframemaker.com/rss2html.php?XMLFILE={$url}&TEMPLATE=rss-template.html&MAXITEMS=1";
    }
    ?>
    <!-- End RSS Feed -->


  4. In the code above, change the URLs to the feeds that you want. Remember, the urls need to be formatted with special characters replaced by html codes. A list of codes may be found here: http://www.ascii.cl/htmlcodes.htm

  5. In the code above, change the "rss-template.html" to whatever you named your template file. MAXITEMS may also be set which will limit the number of results displayed for each URL.

  6. That's it!

    NOTE: documentation on how to create/modify templates, etc. can be found on the FeedForAll website: http://www.feedforall.com/php-documentation.htm