Author Topic: Installing Ads on Popup template  (Read 966 times)

0 Members and 1 Guest are viewing this topic.

Offline xsnoboard

  • phpd Basic Member
  • **
  • Posts: 39
  • Karma: 0
    • View Profile
    • My Vid Space
Installing Ads on Popup template
« on: January 19, 2010, 02:15:07 PM »
I am having trouble with putting ads on the popup template. I haven't tried Adsense but if I recall it didn't work in the last version either. I am trying to use adengage ads on my Popup and after I make an attempt, the Popup page doesn't load.


Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: Installing Ads on Popup template
« Reply #1 on: January 20, 2010, 01:47:29 PM »
I am having trouble with putting ads on the popup template. I haven't tried Adsense but if I recall it didn't work in the last version either. I am trying to use adengage ads on my Popup and after I make an attempt, the Popup page doesn't load.




you could tell what file you are changing and place you code here.

I have google Adsense working at

http://www.myfunnypets.com/30/
« Last Edit: January 20, 2010, 01:58:07 PM by winracer »
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline xsnoboard

  • phpd Basic Member
  • **
  • Posts: 39
  • Karma: 0
    • View Profile
    • My Vid Space
Re: Installing Ads on Popup template
« Reply #2 on: January 24, 2010, 04:09:28 PM »
Yeah, but they don't work when you click PopUp which is the viewvidpop.tpl

Not sure about IE, but the popup section doesn't work on Firefox.

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: Installing Ads on Popup template
« Reply #3 on: January 24, 2010, 09:30:16 PM »
Yeah, but they don't work when you click PopUp which is the viewvidpop.tpl

Not sure about IE, but the popup section doesn't work on Firefox.

yes, it works with IE thanks for the information. I see it does not work with firefox

something to do with firefox and this code

<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxx";
/* 728x90, created 8/29/09 */
google_ad_slot = "xxxxxxxxxx";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
maybe this will work

http://php.devquickref.com/php-smarty-check-useragent-firefox.html
« Last Edit: January 24, 2010, 10:19:43 PM by winracer »
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 406
  • Karma: 4
    • View Profile
    • FireDart
Re: Installing Ads on Popup template
« Reply #4 on: January 24, 2010, 10:34:48 PM »
Can your provide a link the the problem xsnoboard, I would like to see first hand the issue.

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: Installing Ads on Popup template
« Reply #5 on: January 25, 2010, 09:27:58 PM »
work around

create file

google.php and the google adsence code example below add your code...

Code: [Select]

<html>
<head>
</head>
<body>


<script type="text/javascript">
<!--
google_ad_client = "pub-xxxxx";
/* 728x15, created 1/16/10 */
google_ad_slot = "xxxx";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>

<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


</body></html>




goto the viewvidpop.tpl and add this under the {section name=video loop=$video}


Code: [Select]

<!--[if !IE]> -->
<!-- Google FireFox -->


<iframe align=top valign=center width=600 height=50 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src="google.php" width=600 height=50>

</iframe>


     

     <!-- /Google FireFox -->
<![endif]-->

<!--[if IE]>
<script type="text/javascript">
<!--
google_ad_client = "pub-xxxxxx";
/* 728x15, created 1/16/10 */
google_ad_slot = "xxxxxxx";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>

<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<![endif]-->

<br />



change to your adsence code view working at http://www.myfunnypets.com/30/
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com