Development

Changeset 10255

You must first sign up to be able to contribute.

Changeset 10255

Show
Ignore:
Timestamp:
07/13/08 14:20:12 (5 years ago)
Author:
pookey
Message:
  • removing the schema and fixtures - trying to do it this way was
    a bad idea for several reasons.
  • updating the config.php to throw an exception when no vendor
    directory is configured
  • updated config.php for 1.1
  • modifed the template so that it works when output escaping
    is enabled
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfPhorumPlugin/branches/1.1/README

    r10254 r10255  
    1010 
    1111Uncompress this module into the 'mods' directory in your phorum directory. 
     12Copy the tempaltes directories in the mod to the templates directory 
     13of phorum. 
    1214 
    13 Insert the fixtures. 
     15You will need to setup phorum outside of symfony.  After configuring the 
     16database, and following the install guide, you will then want to enabled 
     17the embed_phorum module, and alter the templates of your forums to use the 
     18embed tempalte. 
    1419 
    1520Look at the app.yml.sample, and you'll see the vendor_path setting that 
     
    4550 
    4651  * grep code for any 'FIXME's 
    47   * alter fixtures so that there's no mention of 'pookey' (the domain name is set 
    48     in there for the forum.. how to solve that? 
    49   * alter schema so that the search index is fulltext 
    50   * do something to allow admin.php access... 
    5152  * change the user sync so that only users with permission X are set as administrators 
    5253 
  • plugins/sfPhorumPlugin/branches/1.1/config/config.php

    r10245 r10255  
    11<?php 
     2 
     3if (!sfConfig::get('app_sfPhorum_vendor_dir')) 
     4{ 
     5  throw new sfException('You must set app_sfPhorum_vendor_dir to point to your phorum installation'); 
     6} 
    27 
    38if (sfConfig::get('app_sfPhorum_routes_register', true) && in_array('sfPhorumForum', sfConfig::get('sf_enabled_modules'))) 
    49{ 
    5   $r = sfRouting::getInstance(); 
    6   $r->prependRoute('sf_phorum_forum', '/phorum', array('module' => 'sfPhorumForum', 'action' => 'index')); 
    7   $r->prependRoute('sf_phorum_css', '/phorum_css', array('module' => 'sfPhorumForum', 'action' => 'css')); 
     10  $this->dispatcher->connect('routing.load_configuration', array('sfPhorumRouting', 'listenToRoutingLoadConfigurationEvent')); 
    811} 
    912 
  • plugins/sfPhorumPlugin/branches/1.1/lib/sfPhorumPluginConnector.class.php

    r10245 r10255  
    11<?php 
     2 
     3// required as phorum might be installed outside of symfony's lib folders 
     4require_once( sfConfig::get('app_sfPhorum_vendor_dir') . 'mods/embed_phorum/PhorumConnectorBase.php' ); 
    25 
    36class sfPhorumPluginConnector extends PhorumConnectorBase 
     
    8891     * added for symfony 
    8992     */ 
     93    public function getRssLink() 
     94    { 
     95      return $this->elements['rss_link']; 
     96    } 
     97 
     98    /** 
     99     * added for symfony 
     100     */ 
    90101    public function getCss() 
    91102    { 
  • plugins/sfPhorumPlugin/branches/1.1/lib/sfPhorumPluginUserToolkit.class.php

    r10245 r10255  
    77      global $PHORUM; 
    88      // FIXME: fix paths 
    9       require_once (dirname(__FILE__) . "/vendor/phorum/mods/embed_phorum/syncuser.php"); 
    10       require_once (dirname(__FILE__) . "/vendor/phorum/include/users.php"); 
    11 //        require_once (dirname(__FILE__) . "/vendor/phorum/include/cache/file.php"); 
     9      require_once ( sfConfig::get('app_sfPhorum_vendor_dir') . 'mods/embed_phorum/syncuser.php' ); 
     10      require_once ( sfConfig::get('app_sfPhorum_vendor_dir'). 'include/users.php' ); 
    1211      embed_phorum_syncuser($syncuser); 
    1312      return $syncuser['user_id']; 
  • plugins/sfPhorumPlugin/branches/1.1/modules/sfPhorumForum/templates/indexSuccess.php

    r10245 r10255  
    11<?php 
    2   echo $forum->getPageBody(); 
     2  echo $forum->getPageBody(ESC_RAW); 
    33 
    44  slot('sfPhorum'); 
    5     echo $forum->elements["rss_link"]
     5    echo $forum->getRssLink(ESC_RAW)
    66  end_slot(); 
    77