Adding html to a php block

Feeling retarded today Embarassed . I am adding a php block to a custom page to ad mp3 player. i add to ad code (see below) and the player appears. I basically want to add some html so some text appears above the player.

 

What do i need here so i dont get unexpected <  error ???

<my code>

return BxDolService::call('aqb_site_mp3_player', 'get_player', array($this->aFileInfo['medID']));

Quote · 8 Feb 2014
 echo "HTML here";

With echos, if you wish to use double quotes in your HTML you must use single quote echos like so:

echo '<input type="text">';
Quote · 8 Feb 2014

If you have a large chunk of HTML you can use heredoc.

An example is:

echo <<<EOT
My name is "$name". I am printing some $foo->foo.
Now, I am printing some 
{$foo->bar[1]}.
This should print a capital 'A': \x41
EOT;

Note that you can use variables inside of the heredoc.

Geeks, making the world a better place
Quote · 8 Feb 2014

 

 echo "HTML here";

With echos, if you wish to use double quotes in your HTML you must use single quote echos like so:

echo '<input type="text">';

Tryed this too but then the music player covers up the html

Quote · 8 Feb 2014

I have that module you are using.  When I get some time I will play with it.  Until then maybe someone else will answer.

Geeks, making the world a better place
Quote · 8 Feb 2014

ok gg i will check back later . someone showed up with a dead laptop so i busy for a bit too

Quote · 8 Feb 2014

anyone ?

Quote · 9 Feb 2014

Try something like this to separate the two separate items.

$sHtml = 'The html to be displayed';
$sPlayer = BxDolService::call('aqb_site_mp3_player', 'get_player', array($this->aFileInfo['medID']));

$sOutput = '<div>' . $sHtml . '</div>' . '<div>' . $sPlayer . '</div>';

echo $sOutput;


You might have to wait for GG tho. If the player continues to cover the HTML then its the returned code of the player that causing the problem. And without actually being able to see exactly what and why it is happening, the rest of us are not going to be able to provide a solution. Only those that have the same module would be able to figure it out.

Unfortunately coding is not as simple as just telling someone to do this and it will work. It's rarely that easy. Coders usually need to see whats going on. Working blind is not easy.

https://www.deanbassett.com
Quote · 9 Feb 2014

How important is this?  I am busy working on some code so if it is important decide if you want to request it as a job.

Geeks, making the world a better place
Quote · 9 Feb 2014

 

Try something like this to separate the two separate items.

$sHtml = 'The html to be displayed';
$sPlayer = BxDolService::call('aqb_site_mp3_player', 'get_player', array($this->aFileInfo['medID']));

$sOutput = '<div>' . $sHtml . '</div>' . '<div>' . $sPlayer . '</div>';

echo $sOutput;


You might have to wait for GG tho. If the player continues to cover the HTML then its the returned code of the player that causing the problem. And without actually being able to see exactly what and why it is happening, the rest of us are not going to be able to provide a solution. Only those that have the same module would be able to figure it out.

Unfortunately coding is not as simple as just telling someone to do this and it will work. It's rarely that easy. Coders usually need to see whats going on. Working blind is not easy.

 That works deano. you rock!

Quote · 9 Feb 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.