7 | | New volunteer case: |
8 | | |
9 | | * Visit the project web site (say, via a link in a news story). |
10 | | * Click on "Download" on the project site, taking you to the BOINC download page. |
11 | | * Click on "Download BOINC". |
12 | | * When the download is done, click on the installer |
13 | | * Click on "defaults" in the installer. |
14 | | * The Manager runs and brings up the Attach wizard. Click on Add Project. |
15 | | * Find the project in the project list (hopefully you still remember its name). |
| 8 | 1. Visit the project web site (say, via a link in a news story). |
| 9 | 1. Click on "Download" on the project site, taking you to the BOINC download page. |
| 10 | 1. Click on "Download BOINC". |
| 11 | 1. When the download is done, click on the installer. |
| 12 | 1. Click on "defaults" in the installer. |
| 13 | 1. The Manager runs and brings up the Attach wizard. Click on Add Project. |
| 14 | 1. Find the project in the project list (hopefully you still remember its name). |
52 | | * Visit project web site, click on "Join (already running BOINC)". |
53 | | * Taken to page saying "open BOINC Manager" and select Add Project. |
54 | | * When they do that, it brings up Attach wizard at "enter email/password" page. |
| 58 | 1. Visit project web site, click on "Join (already running BOINC)". |
| 59 | 1. Taken to page saying "open BOINC Manager" and select Add Project. |
| 60 | 1. When they do that, it brings up Attach wizard at "enter email/password" page. |
| 61 | |
| 62 | == Implementation == |
| 63 | |
| 64 | === What projects must do === |
| 65 | |
| 66 | Project must add the following to config.xml: |
| 67 | * <project_desc>: a few-sentence description of the project |
| 68 | * <project_inst>: the host institution |
| 69 | * <vbox_required/> : if present, this project requires VirtualBox |
| 70 | |
| 71 | In the home page, put: |
| 72 | * a "Join (download BOINC)" button |
| 73 | linked to the URL returned by ''join_download_url()'' PHP function in util.inc. |
| 74 | * a "Join (already running BOINC)" button |
| 75 | linked to the URL returned by ''join_no_download_url()'' PHP function in util.inc. |
| 76 | |
| 77 | If this project requires VBox, replace "BOINC" by "BOINC+VirtualBox" in the above. |
| 78 | |
| 79 | === The join_x_url() functions === |
| 80 | |
| 81 | The ''join_x_url()'' functions extract from config.xml: |
| 82 | * the master URL |
| 83 | * the project name |
| 84 | * the project description |
| 85 | * the project institution |
| 86 | * vbox_required |
| 87 | |
| 88 | and pass these as URL args to a URL on the BOINC web server (concierge.php). |
| 89 | If the user is logged in on the project site, it also passes |
| 90 | * the user name |
| 91 | * the user authenticator |
| 92 | |
| 93 | '''join_download_url()''' also passes a "download_required" flag. |
| 94 | |
| 95 | === The concierte.php script === |
| 96 | |
| 97 | The concierge.php script looks at the master URL to see if the project is in BOINC's list. |
| 98 | |
| 99 | If "download_required" is set, |
| 100 | it looks at the user agent string to find the computer's platform, |
| 101 | and gets the URL of the current BOINC installer for that platform. |
| 102 | (If vbox_required is present, it uses the BOINC+Vbox installer). |
| 103 | |
| 104 | It then sends the following cookies (from the boinc.berkeley.edu domain): |
| 105 | |
| 106 | '''attach_known''':: 1 if the project is known to BOINC |
| 107 | '''attach_master_url''':: the master URL |
| 108 | '''attach_project_name''':: the project name |
| 109 | '''attach_project_desc''':: the project description |
| 110 | '''attach_project_inst''':: the project institution |
| 111 | '''attach_user_name''':: the user name (if present) |
| 112 | '''attach_auth''':: the user authenticator (if present) |
| 113 | |
| 114 | These cookies are sent with a 24-hour expiration time. |
| 115 | |
| 116 | If "download_required" is set, |
| 117 | the script then redirects to the URL of the installer file. |
| 118 | On current browsers this doesn't change the web page |
| 119 | (which is still the project's main page); |
| 120 | it starts a download of the BOINC installer, |
| 121 | which is displayed in the status bar or elsewhere. |
| 122 | |
| 123 | If "download_required" is not set, it does something |
| 124 | to avoid showing a web page (need to figure this out). |
| 125 | |
| 126 | === Manager === |
| 127 | |
| 128 | When the manager starts up, it looks for the '''attach_master_url''' cookie from |
| 129 | the boinc.berkeley.edu domain. |
| 130 | If this is present, it puts up the Attach Wizard, |
| 131 | at the email/password page. |
| 132 | |
| 133 | It does the same check when |
| 134 | |
| 135 | == Comments == |
| 136 | |
| 137 | There are actually four scenarios, corresponding to: |
| 138 | |
| 139 | 1. Whether the user has installed BOINC on the computer. |
| 140 | 1. Whether the user has an account on this project. |
| 141 | |
| 142 | This design is geared to the cases where 2 is false. |
| 143 | We should handle the other cases as well. |