Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Google Ad's not showing

10 years 9 months ago
  • Paul's Avatar
  • Paul
  • Visitor
  • Thank you received: 0
Licenses:

Hi Mark,

Dimas is away today so i will put this back into his support que and wen he starts his new shift he will let you know what he fixed.

Please leave the status of this post "pending support" or he will not see it in his que

10 years 9 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Mark,

I changed some code inside this file plugins/community/mygoogleads/mygoogleads.php

Actually this issue will be totally fixed in next package.

thank you

10 years 9 months ago
  • Mark's Avatar
    Topic Author
  • Mark
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Licenses:
JomSocial Expired Socialize Expired

OK sounds good was just wondering the code differences, if you could show me the before and after, I like to learn

10 years 9 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

the code was like this :

<script type="text/javascript"><!--
 				<?php echo "$gCode\n"; ?>
				//--></script>
				<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>

and I removed the script code, so right now like this :
<?php echo "$gCode\n"; ?>

9 years 3 months ago
  • Mark's Avatar
    Topic Author
  • Mark
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Licenses:
JomSocial Expired Socialize Expired

Still did not see how the fix was applied, I will be taking the site down and doing a different one and would like to learn the fix, I have new site in works and the new version of JS and it still has that bug?

9 years 3 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Mark,

Are you using the latest version? can you provide me the backend URL and backend access, please? can you also provide me the sample of google ads code?

thank you

9 years 3 months ago
  • Mark's Avatar
    Topic Author
  • Mark
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Licenses:
JomSocial Expired Socialize Expired

I am using the newest ver. and code was used same as other site so should have worked.

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <br /><!-- WhySoGrim --> <br /><ins class="adsbygoogle" <br ></ins> style="display:inline-block;width:300px;height:250px" <br /> data-ad-client="ca-pub-7247941444925041" <br /> data-ad-slot="3255552777"></ins> <br /><script> <br />(adsbygoogle = window.adsbygoogle || []).push({}); <br /></script>

9 years 3 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Mark,

this is weird, I will report this issue to the developer (again) to re-check this feature.

thank you!

9 years 3 months ago
  • Mark's Avatar
    Topic Author
  • Mark
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Licenses:
JomSocial Expired Socialize Expired

I moved the whole file folder over from old site into the new one and now it works, so with your fix you did a while ago on old site is working, for some reason the new version of JS still has broken code

9 years 2 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Mark,

for fixing this open this file components/com_community/controllers/apps.php, add this code :

try {
                 $paramStr = html_entity_decode($paramStr);
                 $paramStr = preg_replace('/<br\s*(\\\\\/)?>/i', '\n', $paramStr);
             } catch(Exception $e) {}

after line 180

and please use this correct ads code
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- WhySoGrim -->
<ins class="adsbygoogle"
style="display:inline-block;width:300px;height:250px"
data-ad-client="ca-pub-7247941444925041"
data-ad-slot="3255552777"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

cheers!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW