Changeset 27
- Timestamp:
- 11/06/07 19:08:13 (10 months ago)
- Files:
-
- trunk/INSTALL (modified) (3 diffs)
- trunk/TODO (modified) (1 diff)
- trunk/apps/frontend/config (modified) (1 prop)
- trunk/apps/frontend/config/app.yml (deleted)
- trunk/apps/frontend/config/app.yml.sample (added)
- trunk/apps/frontend/modules/sfGuardAuth/templates/signinSuccess.php (modified) (1 diff)
- trunk/apps/frontend/modules/user/actions/actions.class.php (modified) (1 diff)
- trunk/apps/frontend/modules/user/templates/registrationConfirmationSuccess.php (modified) (1 diff)
- trunk/apps/frontend/modules/user/validate/createAccount.yml (moved) (moved from trunk/apps/frontend/modules/sfGuardAuth/validate/createAccount.yml)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/INSTALL
r23 r27 31 31 The configuration of the web server may differ between the local server and the production server. Three methods are proposed here, choose the one that best fits your needs and constraints. 32 32 33 For all methods, you need to download the project tarball and unpack it, or do a checkout of the motyle SVN repository. You must also copy the sample application configuration file `motyle/apps/frontend/config/app.yml.sample` to `motyle/apps/frontend/config/app.yml`. Customize it as you wish. 34 33 35 ### Zero configuration 34 36 35 37 This method requires no change in web server or database configuration. It should work out of the box on all systems and is a good way to test the application and see if it fits your needs. However, you should not use this method in production, as it gives access to scripts and data files that should remain hidden to the end user. 36 38 37 The installation is really straightforward: Either unpack the motyle tarball, or do a checkout of the motyle trunk, under the web root folder of your web server.39 The installation is really straightforward: Move the motyle files under the web root folder of your web server. Of course, you can directly unpack the tarball or do the repository checkout there. 38 40 39 41 You should end up with a file structure similar to: … … 58 60 ... 59 61 60 61 62 That's all. Now test motyle by browsing to: 62 63 … … 65 66 ### Custom web root 66 67 67 A better way to install motyle is to unpackthe content of the motyle/web/ folder under your web root, and the rest under another directory outside of the web root. Let's assume that your host offers you two directories for yous applications:68 A better way to install motyle is to put the content of the motyle/web/ folder under your web root, and the rest under another directory outside of the web root. Let's assume that your host offers you two directories for yous applications: 68 69 69 70 my_site/ trunk/TODO
r26 r27 1 * Create Example config files fir app.yml, databases.yml, etc., to allow better configuration with SVN dependency 1 2 * Rich text in posts with sfSimpleForum_PayloadFilterChain 2 3 * Mail alerts with sfPropelNotificationBehaviorPlugin trunk/apps/frontend/config
- Property svn:ignore set to
app.yml
- Property svn:ignore set to
trunk/apps/frontend/modules/sfGuardAuth/templates/signinSuccess.php
r25 r27 39 39 <?php echo submit_tag(__('Sign in')) ?> 40 40 or <?php echo link_to(__('Create a new account'), 'user/register', array( 41 'onclick' => ' f = document.createElement(\'form\'); username = document.createElement(\'input\'); username.name = \'username\'; username.value = document.getElementById(\'username\').value; f.appendChild(username); document.body.appendChild(f); f.method = \'POST\'; f.action = this.href; f.submit(); return false'41 'onclick' => 'if(username = document.getElementById(\'username\').value) this.href=this.href + "?username=" + username;' 42 42 )) ?> 43 43 </div> trunk/apps/frontend/modules/user/actions/actions.class.php
r26 r27 75 75 $mail->addAddress($this->getRequestParameter('user_email')); 76 76 sfLoader::loadHelpers(array('I18N')); 77 $mail->setSubject(__(' Motyle registration confirmation'));77 $mail->setSubject(__('%forum_name% registration confirmation', array('%forum_name%' => sfConfig::get('app_name', 'Motyle')))); 78 78 $this->mail = $mail; 79 79 trunk/apps/frontend/modules/user/templates/registrationConfirmationSuccess.php
r26 r27 2 2 <p><?php echo __('Dear %forum_name% user,', array('%forum_name%' => sfConfig::get('app_name', 'Motyle'))) ?></p> 3 3 4 <p><?php echo __('To complete your registration to the %forum_name%, you must click on the following link:', array('%forum_name%' => sfConfig::get('app_ sfSimpleForumPlugin_forum_name', 'Motyle forums'))) ?>4 <p><?php echo __('To complete your registration to the %forum_name%, you must click on the following link:', array('%forum_name%' => sfConfig::get('app_mail_registration_confirmation_name', 'Motyle forums'))) ?> 5 5 6 6 <p><?php echo link_to('', 'user/confirmRegistration?username='.$username.'&key='.$key, array('absolute' => true)) ?></p>
