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?

Adverts in a panel

Asked Modified Viewed 2,464 times
N
noahjazz
N
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Newbie

Hi there,
I'm becomming more and more desparate; I'm trying to put a advert to my site and therefor I have to use a new panel (okay so far?). But when I copy/paste the code into the panel, an error message is the only thing I get. Can you please help me?
Here is the code I use in the panel:

<script language='javascript'>
var uri = 'http://impnl.tradedoubler.com/imp?type(img)g(993889)a(1311418)' + new String (Math.random()).substring (2, 11);
document.write('<a href='http://clk.tradedoubler.com/click?p(22302)a(1311418)g(993889)' target='_blank'><img src=''+uri+'' border=0></a>');
</script>


And this is the error I get:

Parse error: parse error, unexpected '<' in C:\wamp\www\name of my site(website)\side_right.php(24) : eval()'d code on line 1

Thanks in advance!
Edited by Sveinungs on 23-11-2006 22:01,
0 replies

8 posts

K
kiksthekillar
K
  • Member, joined since
  • Contributed 61 posts on the community forums.
  • Started 10 threads in the forums
answered
Member

uri ?
mayby you should change uri to url.
0 replies
N
noahjazz
N
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

hi,

Sounds strange but that doesn't work either.Strange isn't it? Do you have an other sugestion? Do you think the code is okay?

robin
0 replies
R
Reflectoman
R
------------------------------------------------
Adnan Ahmed Online
File Hosting | Image Hosting | Free SMS
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 9 threads in the forums
answered
Member

panels use php by default so try putting this before your code

?>

and this after your code

<?php

Adnan.
0 replies
N
noahjazz
N
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

I've tried that but without any result, i still keep getting:

Parse error: parse error, unexpected $ in /home/logistiek/www/logistiekinfo/administration/panel_editor.php(110) : eval()'d code on line 8


please.... anyone?
0 replies
N
noahjazz
N
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

ohh....I discovered that the code is working in the welcome-panel. But not in a "selfmade" panel.....
0 replies
I
icarus1337
I
  • Junior Member, joined since
  • Contributed 45 posts on the community forums.
  • Started 18 threads in the forums
answered
Junior Member

I know exactly the problem, just make a new panel and put this code into it:

openside("Advertisements"wink;
?>

PUT THE ADD CODE HERE

<?php
closeside();
Edited by icarus1337 on 24-11-2006 07:19,
0 replies
N
noahjazz
N
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Yeah! It works! Great! Thanks very very much! Hereby I can close my threads on various site (also my "own" phpfusion site in the Netherlands).
Now I've to find out how to center the advert in the panel but that should not be a problem.

Thanks :)

Robin
0 replies
I
icarus1337
I
  • Junior Member, joined since
  • Contributed 45 posts on the community forums.
  • Started 18 threads in the forums
answered
Junior Member

openside("Advertisements"wink;
?>

<center>
PUT THE ADD CODE HERE
</center>

<?php
closeside();
Edited by icarus1337 on 24-11-2006 12:22,
0 replies

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

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

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet