Recent Topics

1 Apr 20, 2009 14:10    

My b2evolution Version: Not Entered

What is the 'right' method to add my own little javascript code within Blog 1 for all posts and pages?

2 Apr 20, 2009 17:41

Copy the file skins/_html_header.inc.php into your skin folder like skins/evopress/_html_header.inc.php then add your javascript for blog 1

<?php
	$Blog->disp( 'blog_css', 'raw');
	$Blog->disp( 'user_css', 'raw');
	
	if( $Blog->ID == 1 )
	{ ?>
		<script type="text/javascript">
		//<![CDATA[
		
		SCRIPT GOES HERE
		
		//]]>
		</script>
	<?php	
	}
?>
</head>

3 Apr 22, 2009 22:06

Guess what? It works! Thanks :-)

But thee hell if I understand the reason why you added the "CDATA" statement: Cd you explain please?

//<![CDATA[

SCRIPT GOES HERE

//]]>

4 Apr 22, 2009 23:22

data was a pretty good idea but they tried to improve it and released adata. That sucked but they didn't give up and released bdata. That was better but had some bugs so they cleaned out the bugs and got cdata, which is pretty much like data only it has a c in front of it. The forward-looking plan for ddata involves dancing girls, with edata containing exceptions for dancing boys.

Note: this might be totally wrong but it sounds better than [url=http://www.w3schools.com/XML/xml_cdata.asp]what these guys think it means[/url] ;)


Form is loading...