Page 1 of 1

Moderator text on website

Posted: 16 Apr 2013 22:29
by friso
Now playing with album art on my website is working now, but i would like to have also the text wich i put into the moderator text box displayed with the current playing song and album art.
i used ${moderatortext}, but nothing i put in the moderator text box is dispalyed.

How can i make this work?

Friso

Re: Moderator text on website

Posted: 17 Apr 2013 11:11
by friso
Bernd

This is the code i use. the command in proppfrexx is use is EXEC_WRITE_PLAYLISTFILE, and the code is working up to the moderatortext.

<table border=0>
<tr style="font-size: 7.5pt; font-family: 'calibri';color:#CCC">
<td><?php echo "<img src=data:image/jpg;base64,${currentalbumart} width='100' height='100' border='0' title='${currenttrackname}' >"; ?></td>
<td><p>Nu: ${01trackname}</p></td>
</tr>
<tr>
<td>${moderatortext}
</td>
</tr>
</table>

Re: Moderator text on website

Posted: 17 Apr 2013 12:53
by radio42
That explains it...
The EXEC_WRITE_PLAYLISTFILE will replace any macro starting with either "${current...", "${next..." or "${00..."-"${99..."

As such simply try the "${currentmoderatortext}" resp. "${nextmoderatortext}"...

Re: Moderator text on website

Posted: 17 Apr 2013 13:58
by friso
Thanx Bernd, i will try it out tonight.
P.S.
Is there a overview of all macro's? I have searched in de manual, but didn't find it.

Thanx Friso

Re: Moderator text on website

Posted: 17 Apr 2013 19:45
by radio42
That all depends which event and which control-commands you are using to update your web-site.
Can you please show me some of these details...

Re: Moderator text on website

Posted: 17 Apr 2013 20:43
by radio42
Yes, the Appendix of the User Manual (see chapter "Control Command Macros") lists all available macros - strange, that you didn't find it!

As stated above the macros which are available for the "EXEC_WRITE_PLAYLISTFILE" event are the "Track Macros" - but need to be prefixed with "current", "next" or "01"-"99" as explained in the section "Playlist File Macros".

Re: Moderator text on website

Posted: 19 Apr 2013 09:19
by friso
Bernd. it worked. Thanx for that.

But is there a way to get blanc line breaks in the moderator text? Now all the text is one big block without line breaks.
Another question is this:

Is it possible to get albumart in a Embedded container?
When creating this container and describe it as Artist - Trackname, there is still before that something like 5 items in front of it.

Is there a way to add this functionality to the embedded container?

Thanx
Friso

Re: Moderator text on website

Posted: 19 Apr 2013 20:55
by radio42
The formatting of the moderator text is basically an HTML presentation issue, as you are inserting the moderator text directly into an .html file content!
As such, this is not related to ProppFrexx!
ProppFrexx 'simply' replaces the macro content at the given location.
You might use an appropriate CSS to preserve any white-spaces and line-breaks for a given html element...
Please take a look to the following property values of the white-space attribute in CSS:
•nowrap - Sequences of whitespace will collapse into a single whitespace. Text will never wrap to the next line. The text continues on the same line until a br tag is encountered.
•pre - Whitespace is preserved by the browser. Text will only wrap on line breaks Acts like the pre tag in HTML.
•pre-line - Sequences of whitespace will collapse into a single whitespace. Text will wrap when necessary, and on line breaks.
•pre-wrap - Whitespace is preserved by the browser. Text will wrap when necessary, and on line breaks.


AlbumArt of EmbeddedContainers:
No, an embedded container can not have any album art assigned.
Only regular audio tracks can have an picture assigned - as only these elements do have an effective TAG assigned.

Naming of EmbeddedContainers:
Any embedded container can have its Title, Artist and Album value set individually via the TAG Editor (ALT+3).
As such, once you created an embedded container, you might change the Title, Artist and Album manually as needed...

So I guess there is effectively no functionality to add for the embedded container...