BrowseAmp manual
version

 

back
2.2.5 BrowseAmp
BrowseAmp -> creating skins -> HTML tags -> BrowseAmp

insert an image reference with album art

<#albumart>

Inserts a reference on an image with the album art taken from the ID3-Tag of the currently playing track.

You can use an advanced MP3-Tag editor (like MP3 Tag Tools) to include album art in you MP3 files. Winamp does not offer such a feature.

Parameters
default: if the file does not contain album art.

Example
<img src="<#albumart default=gfx/clearpixel.gif>" width="400" height="400" id="coverart" border="0">

is replaced by

<img src="mysong.mp3.png?cache" width="400" height="400" id="coverart" border="0">

 

Show BrowseAmp errormessages

<#errormessage>

Inserts any errormessage collected during command processing. For example you get "Operation not allowed" message when you don't have the rights to remove tracks.

Parameters
none.

Example
<p class="errormsg"><#ErrorMessage></p>

 

Read ID3-Tag informations

<#ID3Info>

Inserts the content of a ID3-Tag text frame (starting with a 'T'). See www.id3.org/id3v2.4.0-frames for details.

Parameters
frame: Text-Frame to read.

Example
<#id3info frame=TCON>

 

show the current time

<#time>

Shows the time. The format depends on your local settings. You can specify a format string to create your own time strings. Please have a look at this website for detailed information.

Parameter
format=xxx

Example
server time: <#date format="dddd, dd. mmmm yyyy"> - <#time format="hh:nn:ss">


show the current date

<#date>

Shows the date. The format depends on your local settings. You can specify a format string to create your own time strings. Please have a look at this thread in the BrowseAmp forums for detailled information.

Parameter
format=xxx

Example
server time: <#date format="dddd, dd. mmmm yyyy"> - <#time format="hh:nn:ss">


show the server uptime

<#server_uptime>

Shows how long the server is running by now.

Parameter
none

Example
Server Uptime: <#server_uptime>

 

show an ini-file entry from skin.ini

<#inifile>

Reads a value from skin.ini in your skin-directory. BrowseAmp can parse the values like with the <#include> tag. This is a very powerful command as you can insert complete html files with that.

ATTENTION: Watch out for endless recursions. You can crash Winamp with that.

Parameter
section: ini-file section to read from
key: key to read
default: if the entry cannot be found
parse: parse the value read from the ini-file

Example
<img src="<#inifile section=layout key=coverfilename parse=1 default=gfx/clearpixel.gif>" width="<#inifile section=layout key=showwidth default=400>" height="<#inifile section=layout key=showheight default=400>" id="coverart" border="0">

Where skin.ini looks like:
[layout]
coverwidth=200
coverheight=200
coverfilename=cover.jpg?usefile=<#CurrentTrackFilename urlencoded=1>&albumart

 

show the 'remove-played-songs' state

<#RemovePlayedStatus>

Shows the state of the state of the 'remove-played-songs' options. Says 'on' or 'off' by default.

Parameter
on: String to insert if option is on.

off
: String to insert if option is off.

Example
<a href="options.html?removeplayed">toggle remove-after-played</a> (now: <#RemovePlayedStatus>)

 

show the 'keep-playlist-alive' state

<#KeepPlaylistAliveStatus>

Shows the state of the state of the 'keep-playlist-alive' options. Says 'on' or 'off' by default.

Parameter
on: String to insert if option is on.

off
: String to insert if option is off.

Example
<a href="?keepplaylistalive"><#KeepPlaylistAliveStatus></a>

 

show the BrowseAmp version number

<#BrowseAmpVersion>

show the BrowseAmp version. Like "3.0".

Parameter
none.

Example
BrowseAmp version: <#BrowseAmpVersion>

 

show the root directory of the current user

<#RootDirectory>

show the root directory of the current user.

Parameter
maxlength: How many chars to display

Example
MP3 Root Directory: <#RootDirectory>


insert the charset of the current user

<#Charset>

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
none.

Example
<meta http-equiv="Content-Type" content="text/html; charset=<#Charset>">

 

insert a list of all available skins

<#skinlist template=filename>

Create a list of all available web skins.

Parameters
template: required, Specifies a path/filename to use as template for a skin. The template is inserted for EVERY skin. You can use table rows <tr>...</tr> for example.

Example
<#SkinList template=templates/skin_template.html>


insert a skinname

<#skin_name>

Should be used in the template for skinlist. The tag is replaced with a skin name.

Parameter
maxlength: How many chars to display

Example
<a href="index.html?skin=<#skin_enc_name>"><#skin_name></a>


insert an url encoded skinname

<#skin_enc_name>

Should be used in the template for skinlist. The tag is replaced with an url encoded skin name. That is needed for links.

Parameter
none.

Example
<a href="index.html?skin=<#skin_enc_name>"><#skin_name></a>

 

generate a random number

<#random>

This tag generates a 16bit Hexadecimal random number like 1AF7. Use this to cheat proxy servers.

Parameter
none.

Example
<#random>

 

 

last change: 2008-03-01 , Henry Thasler
www.browseamp.com