Changeset 10255
- Timestamp:
- 07/13/08 14:20:12 (5 years ago)
- Files:
-
- plugins/sfPhorumPlugin/branches/1.1/README (modified) (2 diffs)
- plugins/sfPhorumPlugin/branches/1.1/config/config.php (modified) (1 diff)
- plugins/sfPhorumPlugin/branches/1.1/config/schema.yml (deleted)
- plugins/sfPhorumPlugin/branches/1.1/data/fixtures/phorum_default.yml (deleted)
- plugins/sfPhorumPlugin/branches/1.1/lib/sfPhorumPluginConnector.class.php (modified) (2 diffs)
- plugins/sfPhorumPlugin/branches/1.1/lib/sfPhorumPluginUserToolkit.class.php (modified) (1 diff)
- plugins/sfPhorumPlugin/branches/1.1/lib/sfPhorumRouting.class.php (added)
- plugins/sfPhorumPlugin/branches/1.1/modules/sfPhorumForum/templates/indexSuccess.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPhorumPlugin/branches/1.1/README
r10254 r10255 10 10 11 11 Uncompress this module into the 'mods' directory in your phorum directory. 12 Copy the tempaltes directories in the mod to the templates directory 13 of phorum. 12 14 13 Insert the fixtures. 15 You will need to setup phorum outside of symfony. After configuring the 16 database, and following the install guide, you will then want to enabled 17 the embed_phorum module, and alter the templates of your forums to use the 18 embed tempalte. 14 19 15 20 Look at the app.yml.sample, and you'll see the vendor_path setting that … … 45 50 46 51 * grep code for any 'FIXME's 47 * alter fixtures so that there's no mention of 'pookey' (the domain name is set48 in there for the forum.. how to solve that?49 * alter schema so that the search index is fulltext50 * do something to allow admin.php access...51 52 * change the user sync so that only users with permission X are set as administrators 52 53 plugins/sfPhorumPlugin/branches/1.1/config/config.php
r10245 r10255 1 1 <?php 2 3 if (!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 } 2 7 3 8 if (sfConfig::get('app_sfPhorum_routes_register', true) && in_array('sfPhorumForum', sfConfig::get('sf_enabled_modules'))) 4 9 { 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')); 8 11 } 9 12 plugins/sfPhorumPlugin/branches/1.1/lib/sfPhorumPluginConnector.class.php
r10245 r10255 1 1 <?php 2 3 // required as phorum might be installed outside of symfony's lib folders 4 require_once( sfConfig::get('app_sfPhorum_vendor_dir') . 'mods/embed_phorum/PhorumConnectorBase.php' ); 2 5 3 6 class sfPhorumPluginConnector extends PhorumConnectorBase … … 88 91 * added for symfony 89 92 */ 93 public function getRssLink() 94 { 95 return $this->elements['rss_link']; 96 } 97 98 /** 99 * added for symfony 100 */ 90 101 public function getCss() 91 102 { plugins/sfPhorumPlugin/branches/1.1/lib/sfPhorumPluginUserToolkit.class.php
r10245 r10255 7 7 global $PHORUM; 8 8 // 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' ); 12 11 embed_phorum_syncuser($syncuser); 13 12 return $syncuser['user_id']; plugins/sfPhorumPlugin/branches/1.1/modules/sfPhorumForum/templates/indexSuccess.php
r10245 r10255 1 1 <?php 2 echo $forum->getPageBody( );2 echo $forum->getPageBody(ESC_RAW); 3 3 4 4 slot('sfPhorum'); 5 echo $forum-> elements["rss_link"];5 echo $forum->getRssLink(ESC_RAW); 6 6 end_slot(); 7 7