bitweaver
Wiki
wiki Home
List Pages
wiki Books
Orphan Pages
wiki Rankings
Photos
List Galleries
Forums
Browse forums
Files
List Galleries
Categories
List Categories
Sign In
Message Boards
»
08. Support - General talk
Newest
Oldest
Threaded
5
10
20
50
100
All
Messages
Adsense Google in Bitweaver HELP!!
Post Reply
marycell
Joined: 04 Feb 2006
Adsense Google in Bitweaver HELP!!
Posted:04 Feb 2006 (23:14 UTC)
xing
Joined: 07 Mar 2004
Posted:05 Feb 2006 (10:10 UTC)
marycell
Joined: 04 Feb 2006
Posted:05 Feb 2006 (16:36 UTC)
xing
Joined: 07 Mar 2004
Posted:06 Feb 2006 (10:47 UTC)
marycell
Joined: 04 Feb 2006
Posted:07 Feb 2006 (02:29 UTC)
Post Reply
Page 1 of 1
1
Post
Title
Login
If you are already registered, please enter your login credentials.
Your Name
Anonymous Post
Content Format
Tiki Wiki Syntax
Allow HTML
{quote format_guid="bbcode" comment_id="6064" user="marycell"}Xing, thank you very much for your help. unfortunately the Tutorial - Liberty Plugins II page is NOT working. but i managed to write the following code: <?php /****************** * Initialization * ******************/ global $gLibertySystem; define( 'PLUGIN_GUID_ADSENSE', 'adsense' ); global $gLibertySystem; $pluginParams = array ( 'tag' => 'ADSENSE', 'auto_activate' => TRUE, 'requires_pair' => TRUE, 'load_function' => 'data_adsense', 'title' => 'Adsense', 'help_page' => 'DataPluginAdsense', 'description' => tra("This plugin adds Adsense Code to page."), 'help_function' => 'data_adsense_help', 'syntax' => "{ADSENSE}", 'plugin_type' => DATA_PLUGIN ); $gLibertySystem->registerPlugin( PLUGIN_GUID_ADSENSE, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_ADSENSE ); /***************** * Help Function * *****************/ function data_adsense_help() { return 'NO HELP WRITTEN FOR {ADSENSE} YET'; } /**************** * Load Function * ****************/ function data_adsense($data, $params) { $ret = '<script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxxxxxx"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; google_ad_channel =""; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> '; $ret2 = '<b>This simple Html works Ok, <font color=red>but Not the javascript</font> :(</b>'; return $ret2; } ?> If i return $ret NOTHING is showed in the wiki page, but if i return $ret2 it works perfectly. Can you help me with this code? maybe there is a little detail i am missing. Thanx again. Marycell.{/quote}
Recent Page Changes
welcome to bitweaver.org
Bitweaver Overview
ReleaseTwo Schema Changelog 2006
PressReleaseOne
Spider's Web
Press Release Two
BitcommercePackage
InfiniBand vs Ethernet Performance
InfiniBand for Dummies
Show More…