Version 5 (modified by davea, 5 years ago) (diff)



GUI URLs is a mechanism that projects to pass URLs to the client, for display as hyperlinks in the GUI. These links will be shown when the project is selected in the Projects tab. To use this feature, include a file 'gui_urls.xml' in the project root directory, with the following form:

        <name>Your account</name>
        <description>View your account information and credit totals</description>
        <description>Get help about SETI@home</description>
            <description>Info about <team_name/></description>

Each entry describes a GUI URL. These URLs (macro-substituted as described below) will be sent to client hosts in the reply to scheduler RPCs. Team-specific entries should be enclosed in <ifteam>; they will be sent only if the user belongs to a team.

Like with any XML file, all text (including URLs) must be entity-escaped:

Character Escape Code
Ampersand & &amp;
Single Quote ' &apos;
Double Quote " &quot;
Greater Than > &gt;
Less Than < &lt;

The components of a <gui_url> element are:

A short name, used e.g. as a button name or menu item
An explanation, used e.g. as a rollover popup

All items are macro-substituted as follows:

The user's account key
The host ID
The project's master URL
The project name (from config.xml) <rss_auth/>:" An authenticator used by notices.php
The team ID
The team name
The user ID
The user name
<ifteam> ... </ifteam>
The enclosed items are included only if the user belongs to a team.