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?

Adding Image in Panel

Asked Modified Viewed 2,160 times
V
Vyper69
V
Unprecedented Times call for Unprecedented Measures
  • Senior Member, joined since
  • Contributed 551 posts on the community forums.
  • Started 146 threads in the forums
  • Started this discussions
asked
Senior Member

Ok I am trying to add a image into a panel, that has a link to it. Can someone help me with this. I keep getting this error.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/content/05/9473305/html/vypercomnet/administration/panel_editor.php(153) : eval()'d code on line 2
0 replies

8 posts

V
Vyper69
V
Unprecedented Times call for Unprecedented Measures
  • Senior Member, joined since
  • Contributed 551 posts on the community forums.
  • Started 146 threads in the forums
  • Started this discussions
answered
Senior Member

Got it I see now. Thanks
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

vyper69,

Here look...

openside("Security Essentials");
echo "<a href='http://windows.microsoft.com/en-US/windows/products/security-essentials/download'><img src='http://vypercomnet.com/images/MSE_FreeDownload1.png' width='69' height='73' border='0' /></a>";
closeside();


I have explained what to do in post #3. You forgot to change the " to '
0 replies
H
HaYaLeT
H
  • Senior Member, joined since
  • Contributed 262 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

if (iMEMBER) {
openside("FIFA 12 Actie");
echo "<center><a href='http://codspelen.nl/forum/viewthread.php?thread_id=12&pid=25#post_25'><img src='http://codspelen.nl/images/FIFA12-Tournooi-Ultimate-Team.gif' alt='' border='0' /></a></center>\n";
closeside();
}
0 replies
V
Vyper69
V
Unprecedented Times call for Unprecedented Measures
  • Senior Member, joined since
  • Contributed 551 posts on the community forums.
  • Started 146 threads in the forums
  • Started this discussions
answered
Senior Member

still doesnt work. Ok so i took your code. Removed the if member. then I changed the image source, and changed the name. Selected preview. I could see the name. So then i added in the link, and got the error again. tried several different links and same thing.

Everything works until I add a link then it screws up.
0 replies
B
BombJe
B
BombJe 10
  • Member, joined since
  • Contributed 119 posts on the community forums.
  • Started 27 threads in the forums
answered
Member

if (iMEMBER) {
openside("FIFA 12 Actie");
 echo "<center>\n";
 echo "<a href='http://codspelen.nl/forum/viewthread.php?thread_id=12&pid=25#post_25><img src='http://codspelen.nl/images/FIFA12-Tournooi-Ultimate-Team.gif'></a>\n";
 echo "</center>\n";
 closeside(); }


If you want to create a clickable image use a code looking like this. (Remove the if (MEMBER) command
0 replies
V
Vyper69
V
Unprecedented Times call for Unprecedented Measures
  • Senior Member, joined since
  • Contributed 551 posts on the community forums.
  • Started 146 threads in the forums
  • Started this discussions
answered
Senior Member

Here is what it looks like, but still no luck.

openside("Security Essentials");
echo "<a href="http://windows.microsoft.com/en-US/windows/products/security-essentials/download"><img src="http://vypercomnet.com/images/MSE_FreeDownload1.png" width="69" height="73" border="0" /></a>";
closeside();
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

echo"";

" and " at begining and at end.

Inbetween this "" either escape it like \" or use '

Always at the end is ; make sure always there.
0 replies
K
KasteR
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums
answered
Senior Member

Consider providing the syntax which you're receiving the error.

You can try something like this:

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo "<a href='http://link'><img src='http://link' /><br>TEXT IF ANY</a>";[/syntaxhighlighter]
Based on the error, it appears you're just simply missing the ';' required at the end of your line of code.
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

B
B
BombJe 10
  • Member, joined since
  • Contributed 119 posts on the community forums.
  • Started 27 threads in the forums
C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
H
H
  • Senior Member, joined since
  • Contributed 262 posts on the community forums.
  • Started 28 threads in the forums
V
V
Unprecedented Times call for Unprecedented Measures
  • Senior Member, joined since
  • Contributed 551 posts on the community forums.
  • Started 146 threads in the forums
  • Started this discussions
K
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 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