MyBB Community Forums

Full Version: What the....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So i'm trying to install my MP3 player page and I set the page as
http://www.sherimoon.co.uk/forum/mp3player.php

When I go there though, it says this...
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/sherim00/public_html/forum/mp3player.php(9) : eval()'d code on line 1

What the crap did I do wrong? Thanks
I made a folder in my root directory called mp3player so I don't know why it won't work.
kyla°firefly Wrote:I made a folder in my root directory called mp3player so I don't know why it won't work.

According to your previous post, the error is in the mp3player.php file.

It is running the eval function on line 9 and ecountering an error. can you post the mp3player.php file?
Ok sure can. Thanks

<?php
define("IN_MYBB", 1);

require "./global.php";
require "./inc/functions_post.php";

add_breadcrumb("Mp3Player");

eval("\$Mp3Player.= \"".$templates->get("Mp3Player")."\";");
output_page($Mp3Player);
?>
kyla°firefly Wrote:Ok sure can. Thanks

<?php
define("IN_MYBB", 1);

require "./global.php";
require "./inc/functions_post.php";

add_breadcrumb("Mp3Player");

eval("\$Mp3Player.= \"".$templates->get("Mp3Player")."\";");
output_page($Mp3Player);
?>

Try changing

eval("\$Mp3Player.= \"".$templates->get("Mp3Player")."\";");

into

eval("\$Mp3Player = \"".$templates->get("Mp3Player")."\";");

Or its a error in the template, can you post that too if possible?
Here's the global mp3 template

<html>
<head>
<title>$settings[Sheri Moon Forums]-Mp3 Player</title>
$headerinclude
</head>
<body>
$header
<center><embed src="public_html/mp3player/list.wpl" autostart="true" loop="true" width=50 height=45 align="center"></embed></center>
<br>
br>
$footer
</body>
</html>

the codes you wanted me to change look identical..?
<html>
<head>
<title>{$mybb->settings['bbname']} - Mp3 Player</title>
{$headerinclude}
</head>
<body>
{$header}
<center><embed src="{$mybb->settings['bburl']}/mp3player/list.wpl" autostart="true" loop="true" width="50" height="45" align="center"></embed></center>
<br />
<br />
{$footer}
</body>
</html>

And the template's name is global_mp3 ? And where did you get that plugin ? =P

eval("\$Mp3Player = \"".$templates->get("Mp3Player")."\";");
No, the template is called MP3player and it's in the global templates and also I put it in the template for the theme. I got it off the bb mods and plugins page.
Works overhere with the changes, the only thing you don't see is what song there's playing =P ::

http://thingiej.be/forum/mp3player.php
I guess i'm a moron. It still says that first error message when I click on the mp3 player page