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?

Inserting adsense between threads in forum

Asked Modified Viewed 5,016 times
R
reggaebkk
R
http://www.khmer-dev.com Website Designer in Phnom Penh http://www.rootshosting.net Website Designer in Bangkok
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Newbie

Hi,

I'm using PHPFusion V 7.01.06.
I'm wondering if there's an addon that would allow us to insert an Adsense advert line every 5 or 10 threads in the forum.

I can't see any addon for that and I was wondering what would be the modification to make in the script in order to achieve this.

Kind Regards,
Mat
Edited by reggaebkk on 09-08-2011 11:11,
0 replies

13 posts

H
HaYaLeT
H
  • Senior Member, joined since
  • Contributed 262 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Hi,reggaebkk
What is your php fusion site adress? Add your profile please..
I think should be this mod : Click Here!
0 replies
R
reggaebkk
R
http://www.khmer-dev.com Website Designer in Phnom Penh http://www.rootshosting.net Website Designer in Bangkok
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Hi,
Thanks for your reply.
I will look into that one. It seems to be for v7.00 but maybe it also works for 7.01.
The website is http://www.anoeglen.net/forum/
Mat

Merged on Aug 13 2011 at 10:15:46:
Hi,

I've tried this bot, that was a good tip, it does insert something within the threads, but strangely it's not allowing adsense ads.

I'm not sure if it's a problem with PHP-fusion disallowing ads in threads or if it's the module itself.
Can anybody help and tell me why adsense can't be used in this adsense bot, or maybe how to modify PHP-fusion to allow posting of Adsense in threads please?

That'd be great!!
Edited by reggaebkk on 13-08-2011 11:15,
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

Hi,

Yeah it wont work because your probably using " in the code change all " in your adsense code to ' then it works fine. ;)
0 replies
R
reggaebkk
R
http://www.khmer-dev.com Website Designer in Phnom Penh http://www.rootshosting.net Website Designer in Bangkok
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Yes, that solved it, thanks a lot!!
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

Your welcome. ;)
0 replies
— 7 months later —
B
BombJe
B
BombJe 10
  • Member, joined since
  • Contributed 119 posts on the community forums.
  • Started 27 threads in the forums
answered
Member

<script type='text/javascript'><!--
google_ad_client = 'ca-pub-4843253461978237';
/* CodSpelen.nl Hoofdadvertentie */
google_ad_slot = '8858910864';
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>


still not work, what's wrong with my code?
0 replies
M
MM
M
MM 10
  • Junior Member, joined since
  • Contributed 21 posts on the community forums.
answered
Junior Member

Quote

BombJe wrote:

still not work, what's wrong with my code?

Quotes have to be escaped?

<script type=\'text/javascript\'><!--
google_ad_client = \'ca-pub-4843253461978237\';
/* CodSpelen.nl Hoofdadvertentie */
google_ad_slot = \'8858910864\';
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type=\'text/javascript\'
src=\'http://pagead2.googlesyndication.com/pagead/show_ads.js\'>
</script>
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

it does not show up... in the infusion panel it says: Code
Due to some circumstances you can't use " sign in your javascript code. Use \' sign instead
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

Use
?>
HTML/javascript code as is
<?php
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

Look I copied this code & added the php open / close but after I saved it removes the \'s and does not show as first post on the forums guys. Help me please with this!

<script type=\'text/javascript\'><!--
 google_ad_client = \'ca-pub-4843253461978237\';
 /* CodSpelen.nl Hoofdadvertentie */
 google_ad_slot = \'8858910864\';
 google_ad_width = 468;
 google_ad_height = 60;
 //-->
 </script>
 <script type=\'text/javascript\'
 src=\'http://pagead2.googlesyndication.com/pagead/show_ads.js\'>
 </script>



i39.tinypic.com/3585f2u.png


Merged on Mar 25 2012 at 14:40:57:
bump
Edited by BombJe on 25-03-2012 15:40,
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

Don't escape the ' like \' leave them as they are.

?>
<script type='text/javascript'><!--
...
</script>
<?php
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

Quote

JoiNNN wrote:

Don't escape the ' like \' leave them as they are.

?>
<script type='text/javascript'><!--
...
</script>
<?php


Look at my screenshot I did this?
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

Gimme your page with this ads please.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 13 posts
  • Votes 0 votes
  • Topic users 7 members

7 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
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
H
H
  • Senior Member, joined since
  • Contributed 262 posts on the community forums.
  • Started 28 threads in the forums
M
M
MM 10
  • Junior Member, joined since
  • Contributed 21 posts on the community forums.
J
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
R
R
http://www.khmer-dev.com Website Designer in Phnom Penh http://www.rootshosting.net Website Designer in Bangkok
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet