mirror of https://github.com/BOINC/boinc.git
144 lines
5.0 KiB
PHP
144 lines
5.0 KiB
PHP
|
<?php
|
||
|
require_once("docutil.php");
|
||
|
page_head("Customizing the Project for the BOINC Manager skin");
|
||
|
echo "
|
||
|
<h3>Contents</h3>
|
||
|
<ul>
|
||
|
<li><a href=\"#CustomizeSimpleGUI\">Custom Project Elements within the Simple GUI</a>
|
||
|
<ul>
|
||
|
<li><a href=\"#Icon\">Project Icon</a>
|
||
|
<li><a href=\"#Slideshow\">Project Application Slideshow</a>
|
||
|
<li><a href=\"#Sample\">Sample</a>
|
||
|
</ul>
|
||
|
</ul>
|
||
|
|
||
|
<h3><a name=\"CustomizeSimpleGUI\">Custom Project Elements within the Simple GUI</a></h3>
|
||
|
<p>
|
||
|
A 'project_files.xml' file can be created for the purposes of sending project customization
|
||
|
elements to the BOINC client's Simple GUI. The file should be created in the project root
|
||
|
directory.
|
||
|
<p>
|
||
|
The contents of 'project_files.xml' should look like this:
|
||
|
"; block_start(); echo "
|
||
|
<file_info />
|
||
|
<file_info />
|
||
|
...
|
||
|
<project_files>
|
||
|
<file_ref />
|
||
|
<file_ref />
|
||
|
...
|
||
|
</project_files>
|
||
|
"; block_end(); echo "
|
||
|
<p>
|
||
|
It is important to note that all file_info records must appear before the project_files
|
||
|
record.
|
||
|
<p>
|
||
|
|
||
|
|
||
|
<h4><a name=\"Icon\">Project Icon</a></h4>
|
||
|
<p>
|
||
|
A project icon is a 40x40 image that will uniquely identify your project within the simple
|
||
|
GUI. Project icons can be any of the following image types: PNG, JPG, GIF, and BMP.
|
||
|
<p>
|
||
|
An example would look like this:
|
||
|
"; block_start(); echo "
|
||
|
<file_info>
|
||
|
<name>stat_icon_01.png</name>
|
||
|
<url>http://www.example.com/download/stat_icon_01.png.gz</url>
|
||
|
</file_info>
|
||
|
<project_files>
|
||
|
<file_ref>
|
||
|
<file_name>stat_icon_01.png</file_name>
|
||
|
<open_name>stat_icon</open_name>
|
||
|
</file_ref>
|
||
|
</project_files>
|
||
|
"; block_end(); echo "
|
||
|
<p>
|
||
|
Two things to note here:
|
||
|
<ul>
|
||
|
<li>The '01' in stat_icon_01.png is used for versioning, in case you want to eventually
|
||
|
change your icon without causing the client to resort to using the default icon for
|
||
|
a short period of time.
|
||
|
<li>The physical name for the project icon is 'stat_icon_01.png' while the logical name
|
||
|
for the project icon is 'stat_icon'. The manager is looking for 'stat_icon'.
|
||
|
</ul>
|
||
|
|
||
|
<h4><a name=\"Slideshow\">Project Application Slideshow</a></h4>
|
||
|
<p>
|
||
|
You can have one or more images displayed in the Simple GUI when BOINC is processing your
|
||
|
task. Each image can have a height of 126px and a width of 290px, and can be any of the
|
||
|
following image types: PNG, JPG, GIF, and BMP.
|
||
|
<p>
|
||
|
An example would look like this:
|
||
|
"; block_start(); echo "
|
||
|
<file_info>
|
||
|
<name>slideshow_exampleapp_01_01.png</name>
|
||
|
<url>http://www.example.com/download/slideshow_exampleapp_01_01.png</url>
|
||
|
</file_info>
|
||
|
<file_info>
|
||
|
<name>slideshow_exampleapp_02_01.png</name>
|
||
|
<url>http://www.example.com/download/slideshow_exampleapp_02_01.png</url>
|
||
|
</file_info>
|
||
|
<project_files>
|
||
|
<file_ref>
|
||
|
<file_name>slideshow_exampleapp_01_01.png</file_name>
|
||
|
<open_name>slideshow_exampleapp_01</open_name>
|
||
|
</file_ref>
|
||
|
<file_ref>
|
||
|
<file_name>slideshow_exampleapp_02_01.png</file_name>
|
||
|
<open_name>slideshow_exampleapp_02</open_name>
|
||
|
</file_ref>
|
||
|
</project_files>
|
||
|
"; block_end(); echo "
|
||
|
<p>
|
||
|
In this example:<br>
|
||
|
slideshow_exampleapp_02_01.png
|
||
|
<p>
|
||
|
'slideshow_' is the beginning of what the manager is looking for, 'exampleapp' is the
|
||
|
applications short name for which the slideshow belongs too, '02' is the index of the
|
||
|
slide within the slideshow, and 01 is the version of the file.
|
||
|
<p>
|
||
|
|
||
|
<h3><a name=\"Sample\">Sample</a></h3>
|
||
|
<p>
|
||
|
Here is the 'project_files.xml' file SETI@Home is using:
|
||
|
"; block_start(); echo "
|
||
|
<file_info>
|
||
|
<name>arecibo_181.png</name>
|
||
|
<url>http://setiathome.berkeley.edu/sg_images/arecibo_181.png</url>
|
||
|
</file_info>
|
||
|
<file_info>
|
||
|
<name>sah_40.png</name>
|
||
|
<url>http://setiathome.berkeley.edu/sg_images/sah_40.png</url>
|
||
|
</file_info>
|
||
|
<file_info>
|
||
|
<name>sah_banner_290.png</name>
|
||
|
<url>http://setiathome.berkeley.edu/sg_images/sah_banner_290.png</url>
|
||
|
</file_info>
|
||
|
<file_info>
|
||
|
<name>sah_ss_290.png</name>
|
||
|
<url>http://setiathome.berkeley.edu/sg_images/sah_ss_290.png</url>
|
||
|
</file_info>
|
||
|
<project_files>
|
||
|
<file_ref>
|
||
|
<file_name>sah_40.png</file_name>
|
||
|
<open_name>stat_icon</open_name>
|
||
|
</file_ref>
|
||
|
<file_ref>
|
||
|
<file_name>sah_ss_290.png</file_name>
|
||
|
<open_name>slideshow_setiathome_enhanced_00</open_name>
|
||
|
</file_ref>
|
||
|
<file_ref>
|
||
|
<file_name>arecibo_181.png</file_name>
|
||
|
<open_name>slideshow_setiathome_enhanced_01</open_name>
|
||
|
</file_ref>
|
||
|
<file_ref>
|
||
|
<file_name>sah_banner_290.png</file_name>
|
||
|
<open_name>slideshow_setiathome_enhanced_02</open_name>
|
||
|
</file_ref>
|
||
|
</project_files>
|
||
|
"; block_end(); echo "
|
||
|
";
|
||
|
page_tail();
|
||
|
?>
|