| Author |
Message |
Foggy Client

Joined: Jan 07, 2006 Posts: 52
|
Posted:
Mon Jul 23, 2007 2:38 pm |
|
I just upgraded to version 2.10.01 and this is the first time I've used the FCKeditor. I'm trying to make a block using script from Google AdSense. I use to be able to just paste the code in a block and it would appear as the button, link, etc. Now when I paste the code into a block it appears as written code in the block. What am I doing wrong? Thanks |
|
|
|
 |
floppydrivez Worker


Joined: Feb 26, 2006 Posts: 210 Location: Jackson, Mississippi
|
Posted:
Mon Jul 23, 2007 3:19 pm |
|
In the top left hand corner hit the "Source" button. This allows for pasting or coding of actual html code. It also will let you view the source of your block/article/content.
Not sure adsense is gonna play in there, but it might.
I personally would recommend the following tutorial if that doesn't work out for you.
|
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Mon Jul 23, 2007 3:19 pm |
|
Try clicking on the "Source" button in the editor. That will allow you to paste raw HTML into the editor without it mucking it up. |
|
|
|
 |
kguske Site Admin

Joined: Jun 04, 2004 Posts: 4873
|
Posted:
Mon Jul 23, 2007 8:00 pm |
|
Ah, but JS isn't allowed by default, and you probably don't want to make that available... |
|
|
|
 |
Foggy Client

Joined: Jan 07, 2006 Posts: 52
|
Posted:
Tue Jul 24, 2007 11:44 am |
|
I've tried making the Google block using both the source button and following the directions on the above link. When I made the block and refreshed the page the blocks were empty. When I changed my theme to see if that was the problem, both blocks appeared and displayed properly but then were empty again when the page was refeshed.  |
|
|
|
 |
floppydrivez Worker


Joined: Feb 26, 2006 Posts: 210 Location: Jackson, Mississippi
|
Posted:
Tue Jul 24, 2007 11:46 am |
|
| Code: | <?php
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
$content = 'Put your adsense code here make sure you stay inside the apostrophe';
?> |
|
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Tue Jul 24, 2007 1:19 pm |
|
I like to do it this way if my content has lots of quotation marks of both single and double variety. When you use the here-doc notation you don't have to escape quotes:
| Code: |
<?php
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
$content = <<<END_CONTENT
insert your adsense code here
END_CONTENT;
?> |
|
|
|
|
 |
|
|
|
|