Changes between Version 33 and Version 34 of WebConfig
- Timestamp:
- Nov 14, 2016, 3:12:15 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebConfig
v33 v34 7 7 which links to pages where users can log in, edit preferences, create profiles, and so on. 8 8 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 9 Before 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 17 require_once("../inc/util.inc"); 18 page_head("Title"); 19 ... content 20 page_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 29 Try to do a good job; your web site has a large impact on your project's ability to 13 30 [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.zip21 (not supported, and doesn't work any more).22 31 23 32 == Web configuration file == … … 115 124 === Functions === 116 125 126 '''project_banner()''':: 127 Prints page header 128 '''project_footer()''':: 129 Prints page footer 117 130 '''donations_intro()''':: 118 131 Displays customized donation information. 119 132 Useful to describe what the project uses donations for, and project specific guides for donations. 120 133 If function is not defined, standard donation information is displayed.html/user/donations.php. 121 '''project_banner()'''::122 Prints page header123 '''project_footer()'''::124 Prints page footer125 134 '''project_form_post_info($forum)''':: return a string describing instructions for a particular forum 126 135 (e.g. how to post in Questions and problems). … … 145 154 Text on user profile page 146 155 147 To use [https://github.com/PHPMailer/PHPMailer PHPMailer] (the preferred way to send emails to participants), 156 To use [https://github.com/PHPMailer/PHPMailer PHPMailer] 157 (the preferred way to send emails to participants), 148 158 you must download PHPMailer and put it in PROJECT/html/inc/phpmailer 149 159 (i.e. the files class.smtp.php and class.phpmailer.php should be in that directory). 150 160 Then modify the following function: 151 161 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), 153 164 used when the above is set to true. 154 165 155 166 If you do not define '''make_php_mailer()''' then e-mail to participants can still be sent, 156 167 but it will use PHP's simpler '''mail()''' function. 168