Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> FCKeditor/WYSIWYG Issues
Author Message
Foggy
Client



Joined: Jan 07, 2006
Posts: 52

PostPosted: Mon Jul 23, 2007 2:38 pm Reply with quote

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
 
View user's profile Send private message
floppydrivez
Involved
Involved



Joined: Feb 26, 2006
Posts: 340
Location: Jackson, Mississippi

PostPosted: Mon Jul 23, 2007 3:19 pm Reply with quote

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.

http://www.clan-themes.co.uk/tutorials-view-17-how-to-add-a-google-adsense-block.html

_________________
Only registered users can see links on this board! Get registered or login!, Only registered users can see links on this board! Get registered or login!, Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Mon Jul 23, 2007 3:19 pm Reply with quote

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.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Mon Jul 23, 2007 8:00 pm Reply with quote

Ah, but JS isn't allowed by default, and you probably don't want to make that available...

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
Foggy







PostPosted: Tue Jul 24, 2007 11:44 am Reply with quote

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. Confused
 
floppydrivez







PostPosted: Tue Jul 24, 2007 11:46 am Reply with quote

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







PostPosted: Tue Jul 24, 2007 1:19 pm Reply with quote

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;

?>
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> FCKeditor/WYSIWYG Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©