How to: add Google adsense |
| george | 20/12/08 - 01:39:24 PM | #1 |
|
Webmaster
Joined: 18-Nov 08 From: Australia Posts: 344 | Installing google adsense block on the left or right colums is a simple thing to do. This topic is actually extension on the add new block topic.
Installation instructions 1. To install google ads to your side menus simply download the file bellow and copy the unpacked content of the archive to your blocks content. 2. Then make sure you add your google adsense code to the block.php file. 3. Install your block from Administration » Blocks Management section. 4. Then place it in your layout from Administration » Layout Management section and your done.
Download the block Registration is required to view this content
Rar file: size 5k.
-------------------- New and exciting things will happen. | |
| |
|
| sergio | 07/02/10 - 02:38:43 PM | #2 |
|
Junior User
Joined: 05-Feb 10 From: Portugal Posts: 2 | hi, You make some copy & paste on this one friend... but you copy language from the b_debug block to this one so it is unusefull i think? !

-------------------- Web Warrior | |
| |
|
| Ragamuffin | 20/07/10 - 02:04:21 PM | #3 |
|
Junior User
Joined: 09-Jul 10 From: United Kingdom Posts: 15 | this thing completely crippled my website, i had to transfer everything back over to even view my site again. its amazing that one little thing like this can completely abliterate a website.
i'd appreciate it if someone could actually give out a working version of this. | |
| |
|
| george | 21/07/10 - 01:15:49 AM | #4 |
|
Webmaster
Joined: 18-Nov 08 From: Australia Posts: 344 | Ragamuffin it did cripple your website because you copied the google code with the " instead of '. This is PHP code you have to write not HTML code (google adsense).
Please just replace your " with ' in the google code you have and this should work.
I just said I give you a quick fix.
-------------------- New and exciting things will happen. | |
| |
|
| Ragamuffin | 21/07/10 - 04:38:55 AM | #5 |
|
Junior User
Joined: 09-Jul 10 From: United Kingdom Posts: 15 | thanks george but im a little confused, are you on about change all the " in the Google adsense block.php file with '
Thanks. | |
| |
|
| george | 21/07/10 - 07:38:36 PM | #6 |
|
Webmaster
Joined: 18-Nov 08 From: Australia Posts: 344 | yes, all the " with '
-------------------- New and exciting things will happen. | |
| |
|
| Ragamuffin | 22/07/10 - 03:29:50 PM | #7 |
|
Junior User
Joined: 09-Jul 10 From: United Kingdom Posts: 15 | ruined my site again now im getting this Error: Fatal error: Call to undefined function b_google() in /mnt/w0610/d29/s49/b0324ee4/www/recording-engineers.com/index.php on line 657
after deleteing the google out of my server and remove the block from my sql little help i dont want to lose everything again
Fixed. it still doesnt work though | |
| |
|
| SYPC-Aid | 23/07/10 - 10:46:46 AM | #8 |
|
Administrator
Joined: 04-Feb 09 From: United Kingdom Posts: 161 | Ragamuffin wrote:it still doesnt work though
I had similar issues when I tried to install the google adsense block. I'll have a look around the code a little later and post back with my findings (I never tried to get it working as it wasn't important to me).
-------------------- Please don't PM me for support. Let's keep it on the forums, so we can all learn. ______________________________________ Click for My JCM Dev Install | |
| |
|
| Ragamuffin | 23/07/10 - 01:02:52 PM | #9 |
|
Junior User
Joined: 09-Jul 10 From: United Kingdom Posts: 15 | Thanks SYPC.
i want my jupiter website to be running a long time so its important to me i get everything sorted out asap. and this block would be a great help.
its a shame that jupiter is almost abandoned. its my favourite CMS out there but i have very little experience with php to be able to mod it myself. | |
| |
|
| John K | 23/07/10 - 02:22:58 PM | #10 |
|
Senior User
Joined: 24-Nov 08 From: United Kingdom Posts: 81 | Again I had the Google Ads block running for a long time on my site and never had any problems, strange.... I don't use it any more and got rid of it so I can't even make the code available for you.
-------------------- John K's JCM wishlist: CAPTCHA/Newsletter/Cart/Subscribe & Unsubscribe from threads/Email notification of PM's and replies to threads. Hoping Xmas comes early this year :-D | |
| |
|