PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Foggy
Client


Joined: Jan 07, 2006
Posts: 52

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

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
Worker
Worker


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

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

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.
Only registered users can see links on this board!
Get registered or login to the forums!
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: 2401
Location: Iowa, USA

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

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.
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4873

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

Ah, but JS isn't allowed by default, and you probably don't want to make that available...
View user's profile Send private message
Foggy
Client


Joined: Jan 07, 2006
Posts: 52

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

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


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

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

Code:
<?php
if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
}
$content  =  'Put your adsense code here make sure you stay inside the apostrophe';
?>
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: 2401
Location: Iowa, USA

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

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;

?>
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum