Changes between Version 37 and Version 38 of WebConfig
- Timestamp:
- Jan 24, 2018, 3:31:04 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebConfig
v37 v38 131 131 === Functions === 132 132 133 Required functions: 134 133 135 '''project_banner()''':: 134 136 Prints page header 135 137 '''project_footer()''':: 136 138 Prints page footer 139 140 Optional functions: 141 137 142 '''donations_intro()''':: 138 Displays customized donation information. 139 Useful to describe what the project uses donations for, and project specific guides for donations. 140 If function is not defined, standard donation information is displayed.html/user/donations.php. 143 Show donation information. 144 Describe what the project uses donations for, and show guidelines for donations. 145 If function is not defined, standard donation information is displayed. 146 Called from html/user/donations.php. 141 147 '''project_form_post_info($forum)''':: return a string describing instructions for a particular forum 142 148 (e.g. how to post in Questions and problems). 143 149 '''project_forum_post_rules()''':: return a string describing message board policies. 144 150 '''project_rules_policies()''':: 145 Displays customized project rules and policies. 151 Show general rules and policies 152 (e.g. don't run BOINC on someone else's computer without permission). 146 153 If return value is ''true'', standard rules and policies are appended. 147 154 If function is not defined, default rules and policies are displayed. 155 '''project_user_credit($user)''':: 156 Print table row for project-defined credit info. 148 157 '''project_user_links($user)''':: 149 Return project-specific text to be shown after user name.150 '''project_user_page_private( )'''::151 Print s project-specific text on private user page152 '''project_user_summary ()'''::153 Print s project-specific texton user page158 Return HTML to be shown after user name (e.g. donation icons). 159 '''project_user_page_private($user)''':: 160 Print project-specific content on private user page 161 '''project_user_summary_public($user)''':: 162 Print project-specific table row on user page 154 163 '''project_workunit($wu)''':: 155 164 Prints project-specific text on workunit page … … 160 169 '''show_profile_question1(), show_profile_question2()''':: 161 170 Text on user profile page 171 '''show_user_donations_private($user)''':: 172 Print table row describing donations, shown only to user. 173 '''show_user_page_private($user)''':: 174 Print project-specific info at bottom of private user page. 162 175 163 176 To use [https://github.com/PHPMailer/PHPMailer PHPMailer] … … 173 186 If you do not define '''make_php_mailer()''' then e-mail to participants can still be sent, 174 187 but it will use PHP's simpler '''mail()''' function. 175