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?

Panel Script/google ads

Asked Modified Viewed 5,957 times
P
pLEDGE
P
pLEDGE 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Newbie

Hey!

When i try to put this script into a panel, it wont show up. I dont know why. Anyone help me?

<script type="text/javascript"><!--
google_ad_client = "pub-6573453452007197";
/* 120x90, opprettet 29.11.10 */
google_ad_slot = "1984580025";
google_ad_width = 120;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

openside("name");
  echo "content";
closeside();
0 replies

11 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]openside("name"wink;
echo "<script type='text/javascript'><!--
google_ad_client = 'pub-6573453452007197';
/* 120x90, opprettet 29.11.10 */
google_ad_slot = '1984580025';
google_ad_width = 120;
google_ad_height = 90;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>";
closeside();[/syntaxhighlighter]
0 replies
P
pLEDGE
P
pLEDGE 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Newbie

thx for the help! now i will add googleads on the bottom on every newsarticle, but i want it to be there permantly, so i dont have to add the ads everytime i want to make news. Which file should i use?
0 replies
P
pLEDGE
P
pLEDGE 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Newbie

im trying to add the ads manually now via news(bottom). but it wont show up :P its just blank. kinda wierd.

www.anotherdj.net/images/script1.jpg

www.anotherdj.net/images/script2.jpg
Edited by pLEDGE on 30-11-2010 00:52,
0 replies
S
Structor
S
  • Member, joined since
  • Contributed 116 posts on the community forums.
  • Started 11 threads in the forums
answered
Member

0 replies
G
GMUDuckman
G
  • Senior Member, joined since
  • Contributed 266 posts on the community forums.
  • Started 6 threads in the forums
answered
Senior Member

pledge you dont need an infusion... you have to write it in php. do

echo "html code in here with apostrophes instead of quotes inside the quotes";

example
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]
echo "<script type='text/javascript'><!--
google_ad_client= 'pub-6573453452007197';
google_ad_slot = '6522814408';
google_ad_width = 468;
google_ad_height = 60;
";
[/syntaxhighlighter]
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

Quote

structor wrote:
You can try this infusion:
http://www.fangree.co.uk/forum/viewth...ad_id=1037


Yep that infusion is the way to go. Give it a shot and if it's not what you need let me know and I will be happy to help.
0 replies
— 1 year later —
X
XDyNaZTy
X
  • Junior Member, joined since
  • Contributed 35 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

Quote

GMUDuckman wrote:

pledge you dont need an infusion... you have to write it in php. do

echo "html code in here with apostrophes instead of quotes inside the quotes";

example
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]
echo "<script type='text/javascript'><!--
google_ad_client= 'pub-6573453452007197';
google_ad_slot = '6522814408';
google_ad_width = 468;
google_ad_height = 60;
";
[/syntaxhighlighter]


I tried this to add it on my footer but nothing will show up? This is my current code.

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo "<table cellpadding='0' cellspacing='0' width='1000' align='center' class='bottom-footer'>\n";
echo "<script type='text/javascript'><!--
google_ad_client = 'ca-pub-3031447223319716';
google_ad_slot = '1755988759';
google_ad_width = 234;
google_ad_height = 60;
";
echo "</table>";[/syntaxhighlighter]
0 replies
D
DawciuPotter
D
Do you have a problem?
Solve it on my site! °° English-speaking forum
DawciuPotter.pl - the whole world in one place
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

Inside javascript you can`t use '. Put \" instead of ' or start echo with ' and every ' inside the code change to " (second echo)

it will be:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo '<script type="text/javascript"><!--
google_ad_client = "ca-pub-3031447223319716";
google_ad_slot = "1755988759";
google_ad_width = 234;
google_ad_height = 60;
';[/syntaxhighlighter]
0 replies
X
XDyNaZTy
X
  • Junior Member, joined since
  • Contributed 35 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

Still nothing =( even with your code.
0 replies
S
smokeman
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
answered
Veteran Member

That code ain't complete - it's missing the close-tag for script = </script> - and it missing the <script src='' too. It should look like this (this is just my own Google adsense code):
echo "<table cellpadding='0' cellspacing='0' width='1000' align='center' class='bottom-footer'>\n<tr>\n
<td>
<script type='text/javascript'><!--
google_ad_client = 'pub-1543438546214449';
google_ad_slot = '3427517875';
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
</td>
</tr>\n</table>\n";

- besides that your <table> was missing both <tr></tr> and <td></td>.
0 replies
— 7 months later —
S
Skeeve
S
Skeeve 10
"The world is my country, and do good is my religion." - Thomas Paine
  • Member, joined since
  • Contributed 81 posts on the community forums.
  • Started 19 threads in the forums
answered
Member

Thanks, smokeman!

I used the Google AdSense code as it was given, but I stripped the quotes out completely instead of replacing them with apostrophes. Now I've gone about a week waiting for Google to see them. :o

My invisible ads are now active, waiting for approval.
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

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

8 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
S
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
S
S
  • Member, joined since
  • Contributed 116 posts on the community forums.
  • Started 11 threads in the forums
S
S
Skeeve 10
"The world is my country, and do good is my religion." - Thomas Paine
  • Member, joined since
  • Contributed 81 posts on the community forums.
  • Started 19 threads in the forums
X
X
  • Junior Member, joined since
  • Contributed 35 posts on the community forums.
  • Started 6 threads in the forums
G
G
  • Senior Member, joined since
  • Contributed 266 posts on the community forums.
  • Started 6 threads in the forums
P
P
pLEDGE 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
D
D
Do you have a problem?
Solve it on my site! °° English-speaking forum
DawciuPotter.pl - the whole world in one place
  • Junior Member, joined since
  • Contributed 23 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