Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Errors when making custom Panels

Asked Modified Viewed 1,612 times
S
SiGgY0106
S
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
asked
Junior Member

when i right the code into my custom panel which is

openside("name");
echo "<a href="http://www.uvgaming.co.uk/customer_center/aff.php?aff=001/" target="_blank"><img src="http://www.neswgaming.com/images/Spring-160x500.jpg" border="0" width="160" height="500" /><a></a>";
closeside();


i click the preview button and i get this....

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/sites/neswgaming.com/public_html/administration/panel_editor.php(128) : eval()'d code on line 2


so i thought i would just stick my code in and click Save instead of previewing it and then on the page its surpose to display i get this.........

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/sites/neswgaming.com/public_html/themes/templates/panels.php(75) : eval()'d code on line 2

anyone know why?

the page in question is www.neswgaming.com/index.php
0 replies

2 posts

Y
ytterx
Y
ytterx 10
YtterX
  • Member, joined since
  • Contributed 163 posts on the community forums.
  • Started 1 thread in the forums
answered
Member

reqoute it .. http://annevankesteren.nl/2005/04/quo...tes-in-php I'm not going to explane.. you'll need to learn to read and program
0 replies
Y
Yxos
Y
Yxos 10
Yxos

The best solution is not necessarily a technical solution !
  • Senior Member, joined since
  • Contributed 277 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Yes, please put an effort in learning the basics...
[ulist=disc]I moved your thread from "Bugs and errors..." to "Custom panels"
Do put code-tags around your code. In this case; your "openside/closeside code.
Check "Disable smileys..." when writing code in your posts[/ulist]

Your problem is that you use " where you should have used '
openside("name");
echo "<a href=[color=#ff0000][b]'[/b][/color]http://www.uvgaming.co.uk/customer_center/aff.php?aff=001/[color=#ff0000][b]'[/b][/color]
 target=[color=#ff0000][b]'[/b][/color]_blank[color=#ff0000][b]'[/b][/color]>
<img src=[color=#ff0000][b]'[/b][/color]http://www.neswgaming.com/images/Spring-160x500.jpg[color=#ff0000][b]'[/b][/color]
 border=[color=#ff0000][b]'[/b][/color]0[color=#ff0000][b]'[/b][/color] width=[color=#ff0000][b]'[/b][/color]160[color=#ff0000][b]'[/b][/color] height=[color=#ff0000][b]'[/b][/color]500[color=#ff0000][b]'[/b][/color] /><a></a>";
closeside();
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

Y
Y
Yxos 10
Yxos

The best solution is not necessarily a technical solution !
  • Senior Member, joined since
  • Contributed 277 posts on the community forums.
  • Started 28 threads in the forums
S
S
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
Y
Y
ytterx 10
YtterX
  • Member, joined since
  • Contributed 163 posts on the community forums.
  • Started 1 thread in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet