Changeset 27

Show
Ignore:
Timestamp:
11/06/07 19:08:13 (10 months ago)
Author:
francois
Message:

better configurability, fixed registration bug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/INSTALL

    r23 r27  
    3131The 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. 
    3232 
     33For 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 
    3335### Zero configuration 
    3436 
    3537This 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. 
    3638 
    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
     39The 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
    3840 
    3941You should end up with a file structure similar to: 
     
    5860            ... 
    5961 
    60  
    6162That's all. Now test motyle by browsing to: 
    6263 
     
    6566### Custom web root 
    6667 
    67 A better way to install motyle is to unpack 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: 
     68A 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: 
    6869 
    6970    my_site/ 
  • trunk/TODO

    r26 r27  
     1 * Create Example config files fir app.yml, databases.yml, etc., to allow better configuration with SVN dependency 
    12 * Rich text in posts with sfSimpleForum_PayloadFilterChain 
    23 * Mail alerts with sfPropelNotificationBehaviorPlugin 
  • trunk/apps/frontend/config

    • Property svn:ignore set to
      app.yml
  • trunk/apps/frontend/modules/sfGuardAuth/templates/signinSuccess.php

    r25 r27  
    3939    <?php echo submit_tag(__('Sign in')) ?> 
    4040    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;
    4242      )) ?> 
    4343  </div> 
  • trunk/apps/frontend/modules/user/actions/actions.class.php

    r26 r27  
    7575    $mail->addAddress($this->getRequestParameter('user_email')); 
    7676    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')))); 
    7878    $this->mail = $mail; 
    7979     
  • trunk/apps/frontend/modules/user/templates/registrationConfirmationSuccess.php

    r26 r27  
    22<p><?php echo __('Dear %forum_name% user,', array('%forum_name%' => sfConfig::get('app_name', 'Motyle'))) ?></p> 
    33 
    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'))) ?> 
    55   
    66<p><?php echo link_to('', 'user/confirmRegistration?username='.$username.'&key='.$key, array('absolute' => true)) ?></p>