Centova Technologies Forum

Centova Cast v3 => General discussion => Topic started by: djstream on January 13, 2017, 04:30:14 pm

Title: Current song in link - Can anybody help me?
Post by: djstream on January 13, 2017, 04:30:14 pm
Hello everyone!

I want to get the current song in a link.

This is what I want:

Htttp://www.mywebsite.com/song=Artist - Name of song

I've been trying to get this for several days. But I'm not good with the code.  :)
Title: Re: Current song in link - Can anybody help me?
Post by: djstream on January 15, 2017, 09:06:32 pm
nobody?
Title: Re: Current song in link - Can anybody help me?
Post by: Mr_NightRyder on January 23, 2017, 10:37:02 am
Why not use the widgets built into centova?

Try the "Stream Status Summary" widget.. pretty sure that will do exactly what you're looking to do.
Title: Re: Current song in link - Can anybody help me?
Post by: djstream on January 23, 2017, 04:59:49 pm
Hi @Mr_NightRyder,

Thanks for your answer.

That's right, I know this widget. But I need to get this information in a link, such as;

http://www.mywebsite.com/song=here-the-song-artist-and-title

I want to get this link in the index.tpl (main page of the Centovacast panel).

Problem?
The template is a tpl file, which does not support php.

I can do this, for example;

Assuming (for example) that the artist and the title of the song are contained in a variable:

$song

In php it is possible to do this;

http://www.mywebsite.com/<?php echo $song; ?>

How to get the same result on Centovacast?  :)