Menu

Phorum 5.0.9 Integration

2004-09-10
2013-04-16
  • Brad Schwie

    Brad Schwie - 2004-09-10

    If you want to integrate the latest version of Phorum in to the OFFL package, follow these directions, from the latest "INSTALL" file on the CVS.

    Optional: Integrating Phorum.

       1. Download the latest version of phorum from http://phorum.org/.  Brad has tested with 5.0.9.
       2. Unpack this into the webroot of your OFFL site, so the phorum-X.X.X directory is a subdirectory of your     webroot. I would recommend renaming it to just "phorum" or whatever.
       3. Now follow the phorum directions for installing phorum. I just installed it into my existing offl_db database, no big deal to me.  Table names are phorums_*, plus two based off a name you specify, so there should be no overlaps.
       4. Now, from the phorum directory, edit the templates/header.tpl file so it looks like this (and only this):

    <?php  $pageTitle = "Chat Forum";

    require_once("../lib/config.php");
    require_once("../offlconfig.php");

    include ("../lib/header.php");

    ?>

    <?php echo '<?xml version="1.0" encoding="iso-8859-1"?>'; ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "DTD/xhtml1-transitional.dtd">
    <html lang="<?php echo $PHORUM['locale']; ?>">
    <head>
    <title>{HTML_TITLE}</title>
    <style type="text/css">
    {include css}
    </style>
    {if URL->REDIRECT}
    <meta http-equiv="refresh" content="5; url={URL->REDIRECT}" />
    {/if}
    {LANG_META}
    {HEAD_TAGS}
    </head>
    <body>
    <div align="{forumalign}">
    <div class="PDDiv">
    {IF notice_all}
    <div class="PhorumNotificationArea PhorumNavBlock">
    {IF PRIVATE_MESSAGES->new}<a class="PhorumNavLink" href="{PRIVATE_MESSAGES->inbox_url}">{LANG->NewPrivateMessages}</a><br />{/IF}
    {IF notice_messages}<a class="PhorumNavLink" href="{notice_messages_url}">{LANG->UnapprovedMessagesLong}</a><br />{/IF}
    {IF notice_users}<a class="PhorumNavLink" href="{notice_users_url}">{LANG->UnapprovedUsersLong}</a><br />{/IF}
    {IF notice_groups}<a class="PhorumNavLink" href="{notice_groups_url}">{LANG->UnapprovedGroupMembers}</a><br />{/IF}
    </div>
    {/IF}
    <span class="PhorumTitleText PhorumLargeFont">
    {IF NAME}<a href="{URL->TOP}">{NAME}</a>&nbsp;:&nbsp;{/IF}{TITLE}</span>

          Similarly, edit the templates/footer.tpl file so it reads thusly:

    <div class="PhorumFooterPlug" align="center">This <a href="http://phorum.org/">forum</a> powered by <a href="http://phorum.org/">Phorum</a>.</div>
    <!-- these are the two div's from header.tpl -->
    </div>
    </div>
    </body>
    </html>

    <?php
    require("../lib/footer.php"); ?>

       5. Alright now you just need to provide links. For now you'll have to manually edit the lib/header.php from your offl install directory and copy one of the header links and make one for your phorum. Note that your actual phorum will have a url ending in "list.php?f=1" or something like that.

     
    • handband2

      handband2 - 2004-09-10

      I like and am using phpbb (http://www.phpbb.com/).  Everyone in the league likes to use the Avatars and smily faces :)

      -I just put all the contents in a folder named "forum" on my server
      -went to "http://www.mydomain.tld/forum/install/install.php"
      -walk through the setup process (which it sets everything on it own which is great for many of us!)
      -setup your forum/load up smilies/load up avatars/load up a few MODs and we are up and running.
      -change the files as said above to direct to your forum and you should be up and running.

      -V

       
    • Stephen Rochelle

      I'll add a note about integration:

      As with maintenance scripts, offlconfig.php is the only file that PHP has to be able to locate on its own.  Once that one is found, all the others can be located with require($DOC_ROOT . "/lib/header.php") and such.  I recommend making a copy of offlconfig in the Phorum directory, as that's a bit more flexible (if, say, you later move the directory around).

       
    • aintnuttin

      aintnuttin - 2004-12-06

      I would like the forums to be read by anybody, but they can only post if they are a member of the league.

      What is the easiest way to do this with out the members having to login to the forums. Is there a way to use the login information from the league?

      Thanks in advance.

       
    • Brad Schwie

      Brad Schwie - 2005-01-01

      I haven't tried to figure this out yet (integrating the login information from a fantasy league with Phorum to avoid the creation of another user account in Phorum).

      I'm a little disappointed in the integration of Phorum.  I found that no one in my league used the Chat Forum after I created it.  In years past, I used a solution similar to what you are mentioning, where anyone could post, and it was used much more back then...  I'm going to talk to guys in my league, and then possibly propose something to Stephen...  I'll post back here if we attempt to develop anything.

       

Log in to post a comment.

MongoDB Logo MongoDB