Changes between Version 33 and Version 34 of WebConfig


Ignore:
Timestamp:
Nov 14, 2016, 3:12:15 PM (7 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebConfig

    v33 v34  
    77which links to pages where users can log in, edit preferences, create profiles, and so on.
    88
    9 Before your project goes public, you'll want to change this web site by adding content
    10 and giving the web site a graphical identity specific to your project. 
    11 Make sure you do a good job;
    12 your web site has a large impact on your project's ability to
     9Before your project goes public, you'll want to change this web site as follows:
     10 * Add and alter content:
     11   * Edit the main page (`index.php`).
     12   * Add new pages, linked to from the main page.
     13     These might describe your project's research, its leadership team, etc.
     14     Typically these are .php files of the form
     15{{{
     16<?php
     17require_once("../inc/util.inc");
     18page_head("Title");
     19... content
     20page_tail();
     21?>
     22}}}
     23   * Customize page headers and footers (see below).
     24   * Set config options (see below).
     25
     26 * Give the web site a graphical identity (fonts, color scheme).
     27 Do this [StyleSheets using CSS stylesheets].
     28
     29Try to do a good job; your web site has a large impact on your project's ability to
    1330[VolunteerRecruit recruit and retain participants].
    14 
    15 Some of this customization can be done by editing the main page (`index.php`) and the stylesheet (`white.css`) files.
    16 Other aspects are changed using a configuration file, described below.
    17 
    18 An alternative version of the Account page,
    19 with many graphical icons, is available here:
    20 http://boinc.berkeley.edu/BOINC_WebIcons_and_php_code.zip
    21 (not supported, and doesn't work any more).
    2231
    2332== Web configuration file ==
     
    115124=== Functions ===
    116125
     126 '''project_banner()'''::
     127    Prints page header
     128 '''project_footer()'''::
     129    Prints page footer
    117130 '''donations_intro()'''::
    118131    Displays customized donation information.
    119132    Useful to describe what the project uses donations for, and project specific guides for donations.
    120133    If function is not defined, standard donation information is displayed.html/user/donations.php.
    121  '''project_banner()'''::
    122     Prints page header
    123  '''project_footer()'''::
    124     Prints page footer
    125134 '''project_form_post_info($forum)''':: return a string describing instructions for a particular forum
    126135    (e.g.  how to post in Questions and problems).
     
    145154    Text on user profile page
    146155
    147 To use [https://github.com/PHPMailer/PHPMailer PHPMailer] (the preferred way to send emails to participants),
     156To use [https://github.com/PHPMailer/PHPMailer PHPMailer]
     157(the preferred way to send emails to participants),
    148158you must download PHPMailer and put it in PROJECT/html/inc/phpmailer
    149159(i.e. the files class.smtp.php and class.phpmailer.php should be in that directory).
    150160Then modify the following function:
    151161
    152  '''make_php_mailer()''':: return a PHPMailer object with authentication information (see ServerIntro#PHPMailer),
     162 '''make_php_mailer()''':: return a PHPMailer object with authentication information
     163 (see ServerIntro#PHPMailer),
    153164used when the above is set to true.
    154165
    155166If you do not define '''make_php_mailer()''' then e-mail to participants can still be sent,
    156167but it will use PHP's simpler '''mail()''' function.
     168