Skip to Content Skip to Menu

cb users own adsense ads showin on profile 80%done

  • drijn
  • drijn
  • OFFLINE
  • Posts: 13
  • Thanks: 0
  • Karma: 0
  • Add-ons
16 years 9 months ago #57058 by drijn
I'm almost done with this.
I created an adsence tab in cb with 2 fields (publisher id and channel)
cb_publisherid
cb_channel

I'm new with cb plugins so I'm trying to mod the helloworld2 plugin I know how to call the datas of these fields using:

$user->cb_publisherid
$user->channel

so the biggest part is done and ok
but I'm having hard time to get the adsence javascript

[code:1]<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxx";
/* 234x60, date de création 19/02/08 */
google_ad_slot = "3664742903";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src=" pagead2.googlesyndication.com/pagead/show_ads.js ">
</script>[/code:1]

code integrated in the front end html of the plugin... in helloworld.php
in this part between the 2 <p>

[code:1] $return .= "\t\t<div>\n"

. "<p>"

. htmlspecialchars($helloworld_tab_message) // make all other output html-safe

. "Profile Owner's Publisher ID <strong>" . $user->cb_publisherid . "</strong>"

. "</p>"

. "</div>\n";[/code:1]

Please help me... this is easy! and helpfull for many ones!

Thanks

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum