| QCD BrowseAmp manual |
| for v1.99 beta 2 |
| back |
| chapter 2: creating skins | |||
|
2.2 HTML tags
|
|||
| 2.1 General information |
| QCD BrowseAmp -> creating skins -> General information |
|
The skin html file is parsed by BrowseAmp and all valid HTML-Tags are replaced with the information they describe.
|
|||
| what is needed for a skin | |||
With these two steps BrowseAmp should detect your skin on a QCD restart. |
|||
| 2.2 HTML tags |
| QCD BrowseAmp -> creating skins -> HTML tags |
|
Tagname syntax Some hints how to use the tags If a parameter contains blanks you need some " " Attention: Use < and > instead of < or >. If you don't replace the "<>" you could get access violations! Tagname is NOT case sensitive. <#date> or <#DaTe> will do the same. Example 1 Example 2 |
|||
| adding a file at the tag position | |||
inserts the given file at the current position. Parameter Example |
|||
| show all available drives | |||
Used to build a list of all available drives on your system. Parameter Example |
|||
| insert a drive | |||
Should be used in the template for browser_drives. The tag is replaced with a drive. Parameter Example |
|||
| show a list of all directories | |||
Used to build a list of directories in the current folder. Parameter Example |
|||
| insert a directory name | |||
Should be used in the template for browser_directories. The tag is replaced with a directory name. Parameter Example |
|||
| insert a directory name in a form | |||
Should be used in the template for browser_directories. The tag is replaced with a directory name modified to be used in a form (e.g. checkbox). Parameter Example |
|||
| show a list of all files | |||
Used to build a list of files in the current folder. Parameter Example |
|||
| insert a filename | |||
Should be used in the template for browser_files. The tag is replaced with a filename. Parameter Example |
|||
| insert a filename in a form | |||
Should be used in the template for browser_files. The tag is replaced with a filename modified to be used in a form (e.g. checkbox). Parameter Example |
|||
| show the current directory | |||
Is replaced with the directory you are currently in. Parameter Example |
|||
| show the current playlist | |||
Used to build a list of files in the current folder. Parameters next: Specifies a path/filename to use as template for the next track beeing played. You can use table rows <tr>...</tr> for example. length: many song to show (integer). offset: specifies the beginning of the playlist relative to the current track. If you use offset=-2 then the two tracks before the current track are also shown. You will understand that when you tried it... Example |
|||
| show the path an filename of a playlist entry | |||
Should be used in a template for playlist. The tag is replaced with the filename of a song. Parameter Example |
|||
| show the artist of a playlist entry | |||
Should be used in a template for playlist. The tag is replaced with the artist of a track. Parameter Example |
|||
| show the title of a playlist entry | |||
Should be used in a template for playlist. The tag is replaced with the title of a track. Parameter Example |
|||
| show the artist and title of a playlist entry | |||
Should be used in a template for playlist. The tag is replaced with "<#artist> - <#title>" of a track. If <#artist> is empty it is only repleaced with <#title>. Parameter Example |
|||
| show the ID of a playlist entry | |||
Should be used in a template for playlist. The tag is replaced with the ID of a track. This is used for hyperlink commands affecting the playlist. The ID is the CRC32 value of the filename combined with the current playlist index. Using IDs keeps the HTML code short but unreadable. ;-) Parameter Example |
|||
| show the index of a playlist entry | |||
Should be used in a template for playlist. The tag is replaced with the index of a track in the current playlist. Creates numbers from 1...n. Parameter Example |
|||
| show the length of a playlist entry in minutes | |||
Should be used in a template for playlist. The tag is replaced with the length of a track of the current playlist in minutes. Creates numbers from 1...n. Parameter Example |
|||
| show the length of a playlist entry in seconds | |||
Should be used in a template for playlist. The tag is replaced with the length of a track of the current playlist in seconds. Creates numbers from 01...nn. Parameter Example |
|||
| show the length of the whole playlist | |||
The tag is replaced with the length of the whole playlist. Format: "h:mm:ss" Parameter Example |
|||
| show the current time | |||
Shows the time. The format depends on your local settings. Parameter Example |
|||
| show the current date | |||
Shows the date. The format depends on your local settings. Parameter Example |
|||
| show the player version number | |||
show the player version number. Like "3.40". Parameter Example |
|||
| show the BrowseAmp version number | |||
show the BrowseAmp version. Like "1.99 beta 2". Parameter Example |
|||
| show the current username | |||
show the username or "user management disabled" if you don't use it. Parameter Example |
|||
| show the root directory of the current user | |||
show the root directory of the current user. Parameter Example |
|||
| insert the charset of the current user | |||
show the charset of the current user. Use that in your HEAD tag to set the correct charset or use it in a dropdown combo to let the user select a charset (see base skin). Parameter Example |
|||
| insert the artist of the current song | |||
Insert the artist of the current song. Parameter Example |
|||
| insert the title of the current song | |||
Insert the title of the current song. Parameter Example |
|||
| insert the name of the current song | |||
Is replaced with <#artist> - <#title>. If <#artist> is empty it is replaced only with <#title>. Parameter Example |
|||
| insert the length of the current song in minutes | |||
Insert the length of the current song in minutes. Format: "mm" Parameter Example |
|||
| insert the length of the current song in seconds | |||
Insert the length of the current song in seconds. Format: "ss" Parameter Example |
|||
| insert the position in the current song in minutes | |||
Insert the position of the current song in minutes. Format: "mm" Parameter Example |
|||
| insert the position in the current song in seconds | |||
Insert the position of the current song in seconds. Format: "ss" Parameter Example |
|||
| insert the remaining time of the current song in minutes | |||
Insert the remaining time of the current song in minutes. Format: "mm" Parameter Example |
|||
| insert the remaining time of the current song in seconds | |||
Insert the remaining time of the current song in seconds. Format: "ss" Parameter Example |
|||
| insert the bitrate of the current song | |||
Insert the bitrate of the current song in kHz. Parameter Example |
|||
| insert the samplerate of the current song | |||
Insert the samplerate of the current song in kbps. Parameter Example |
|||
| insert the number of channels of the current song | |||
Insert the number of channels of the current song. Says "mono" or "stereo" by default. Parameters Example |
|||
| insert the shuffle state | |||
Can be "on" or "off" by default. Parameters Example |
|||
| insert the repeat state | |||
Can be "off", "track" or "all" by default. Parameters Example |
|||
| insert the main volume | |||
Shows a number from 0...100 representing the current volume. Parameters Example |
|||
| insert a list of all available skins | |||
Create a list of all available web skins. Parameters Example |
|||
| insert a skinname | |||
Should be used in the template for skinlist. The tag is replaced with a skin name. Parameter Example |
|||
| 2.3 Hyperlink commands |
| QCD BrowseAmp -> creating skins -> Hyperlink commands |
|
The commands are separated from the html document by a question mark "?". Multiple parameters are separated by a "&". Syntax where index.html can be every file you use.
Example 1 Example 2 A list of all available commands follows. |
|||
| start playback | |||
Start playback. Parameters Example |
|||
| stop playback | |||
Stop playback. Parameters Example |
|||
| pause playback | |||
pause playback. Parameters Example |
|||
| move 5 seconds forward | |||
move 5 seconds forward. Parameters Example |
|||
| move 5 seconds reverse | |||
move 5 seconds reverse. Parameters Example |
|||
| skips to next track | |||
skips to next track. Parameters Example |
|||
| skips to previous track | |||
skips to previous track. Parameters Example |
|||
| toggle repeat | |||
toggles repeat state. Can be off, track or all. Parameters Example |
|||
| toggle shuffle | |||
toggles shuffle state. Can be on or off. Parameters Example |
|||
| clear playlist | |||
clear the current playlist. Parameters Example |
|||
| jump to home folder | |||
Resets the current folder to the standard folder. Useful when you're lost... Parameters Example |
|||
| set volume | |||
Set the current volume. Parameters Example |
|||
| increase volume | |||
Increase the current volume. Parameters Example |
|||
| decrease volume | |||
Decrease the current volume. Parameters Example |
|||
| set charset | |||
Set the current charset. A valid charset looks like iso-8859-1 for latin1. You can use a form with a dropdown box to select charset (see base skin, option.html) Parameters Example |
|||
| search playlist | |||
The playlist is filtered with the string given in the parameter. Only track that match the searchstring are displayed in the playlist. Use this with an input field in a form. (see base skin, playlist.html) Parameters Example |
|||
| search files | |||
Search your harddrive. Only files/directories that match the searchstring are displayed in the browser. (see base skin, browser.html) Parameters Example |
|||
| search for directories | |||
This is an option for searching files. If set to true the search includes directories. (see base skin, browser.html) Parameters Example |
|||
| search for files | |||
This is an option for searching files. If set to true the search includes files. (see base skin, browser.html) Parameters Example |
|||
| search in subdirectories | |||
This is an option for searching files. If set to true the search includes all subdirectories of the current folder. (see base skin, browser.html) Parameters Example |
|||
| play a track | |||
Specify a track to play immeadiately. Use this command in a playlist row template. Parameters Example |
|||
| remove a track | |||
Remove a track from the playlist. Use this command in a playlist row template. Parameters Example |
|||
| change the current drive | |||
Change the current drive. Use this command in a browser drive row template. Parameters Example |
|||
| change the current directory | |||
Change the current directory. Use this command in a browser directories row template. Parameters Example |
|||
| add a file or directory to the playlist | |||
Adds a file or a directory to the playlist. Use this command in a browser files/directories row template. Parameters Example |
|||
| add and play file | |||
Adds a file to the playlist and starts playback of that file. Use this command in a browser files row template. Parameters Example |
|||
| use another web skin | |||
Select a web skin. Use this command in skin template. Parameters Example |
|||
| 2.4 Publishing your skins |
| QCD BrowseAmp -> creating skins -> Publishing your skins |
|
|
|||
last change: 2003-03-23 , Henry Thasler