Changes between Version 3 and Version 4 of WebConfig
- Timestamp:
- May 26, 2007, 8:00:46 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebConfig
v3 v4 2 2 3 3 == Customizing the default web site == 4 When you create a BOINC project using [MakeProject make_project], a web site is created for you. This consists of a front page ( html/user/index.php), which links to pages where users can log in, edit preferences, create profiles, and so on.4 When you create a BOINC project using [MakeProject make_project], a web site is created for you. This consists of a front page (`html/user/index.php`), which links to pages where users can log in, edit preferences, create profiles, and so on. 5 5 6 Before your project goes public, you'll want to change this web site by adding content specific to your project, and by giving the web site a graphical identity specific to your project. Make sure you do a good job; your web site has a large impact on your project's ability to [VolunteerRecruit recruit and retain participants]. 6 Before your project goes public, you'll want to change this web site by adding content specific to your project, and by giving the web site a graphical identity specific to your project. 7 Make sure you do a good job; your web site has a large impact on your project's ability to [VolunteerRecruit recruit and retain participants]. 7 8 8 Some of this customization can be done by editing the main page ( index.php) and the stylesheet (white.css). Other aspects are changed using a configuration file, described below.9 Some of this customization can be done by editing the main page (`index.php`) and the stylesheet (`white.css`) files. Other aspects are changed using a configuration file, described below. 9 10 10 11 == Web configuration file == 11 The file 'html/project/project.inc' serves as a configuration file for your web site. It exists in a separate directory (html/project) so that you can put this directory under CVS and put all project-specific web files there (create symbolic links from html/inc and html/user).12 The file `html/project/project.inc` serves as a configuration file for your web site. It exists in a separate directory (html/project) so that you can put all project-specific web files there (create symbolic links from `html/inc` and `html/user`). You can also put this directory under your own CVS to manage version control. 12 13 13 project.inc is generated by [MakeProject make_project] with default values. It includes constants: 14 The file `project.inc` is generated by [MakeProject make_project] with default values. 15 When you set up your project you need to edit this file to customize the constants and functions it contains. 16 17 18 To properly configure your project you need to set values for these constants: 14 19 15 20 '''PROJECT''':: … … 20 25 Base URL for web pages (usually same as master URL) 21 26 '''STYLESHEET''':: 22 Name of stylesheet file 27 Name of stylesheet file (such as `white.css`) 23 28 '''COPYRIGHT_HOLDER''':: 24 29 Name of copyright holder … … 28 33 Moderation-related emails (such as user complaints) are sent here. 29 34 '''INVITE_CODES''':: 30 regular expression used for [AccountControl controlling account creation].35 Regular expression used for [AccountControl controlling account creation]. 31 36 '''EMAIL_FROM''':: 32 37 'from' address for emails … … 34 39 'from' name for emails 35 40 36 andfunctions:41 You also need to customize these functions: 37 42 38 43 '''project_banner()''':: 39 prints page header44 Prints page header 40 45 '''project_banner()''':: 41 prints page footer46 Prints page footer 42 47 '''show_profile_heading1(), show_profile_heading2()''':: 43 text on user profile page48 Text on user profile page 44 49 '''show_profile_question1(), show_profile_question2()''':: 45 text on user profile page50 Text on user profile page 46 51 '''project_workunit()''':: 47 prints project-specific text on workunit page52 Prints project-specific text on workunit page 48 53 '''project_user_summary()''':: 49 prints project-specific text on user page54 Prints project-specific text on user page 50 55 '''project_user_page_private()''':: 51 prints project-specific text on private user page56 Prints project-specific text on private user page 52 57 53 and variables: 58 If you want to use PHPMailer to send e-mail to project participants then you should set the following 59 constants to appropriate values. 54 60 55 61 '''USE_PHPMAILER''':: … … 59 65 '''PHPMAIL_MAILER''':: 60 66 The Mailer argument to PHPMailer; typically 'sendmail', 'mail', or 'smtp'. 67 68 If you do not set '''USE_PHPMAILER''' then e-mail to participants can still be sent, but it will use PHP's simpler '''mail()''' function.