Recent Topics

1 Nov 21, 2007 01:45    

My b2evolution Version: Not Entered

I understand that PHP tags may not work in a comment page, but I also have an opportunity to place JAVASCRIPT tags on a page too. These do not work either. Any one with JAVASCRIPT experience?

<script language=javascript src="http://www.rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Frss.cnn.com%2Frss%2Fcnn_allpolitics.rss&newpage=1&chead=1&atl=1&desc=1&owncss=&eleminate=&auth=1&dts=1&width=300&max=1&tlen=0&rnd=1&bt=1&bs=Solid&nmb=&ntb=&naf=&nst=&nwd=300&nht=500&dlen=0&lstyle=-1&lc=Blue&bg=White&bc=Gray&spc=1&ims=1&tc=&ts=10&tfont=Verdana,+Arial,+Sans-serif"></script>

Thanks,

Dave

2 Nov 21, 2007 02:48

First....
what version of b2 are you using?
Not much can be done until we know that.
Second...
the code works when it's placed in a div in the html of the page

It's not much good saying that though until we know your verion.
Also, double posting this issue wont help much, your b2 version would help a lot more.

3 Nov 21, 2007 03:09

My apologies:

2.0.2-alpha released on 10/11/07

Dave

5 Nov 21, 2007 03:37

This is the erro. The page won't display.

Error:

<snip>
Parser error: Space required near <!-- euro sign, U+20AC NEW -->
]><body><script language=javascript ......
<snip>

Dave

6 Nov 21, 2007 03:59

Well, I posted the code on my site and it works.
It's too big for your side bar, it won't work within a post but you can display it in the index.main.php.

I had it displayed at the bottom of the posts but it's a shocking thing that just keeps loading all the timre.
You can style the div etc etc. I can't think of an easy way for it to go into a post. It just kept rejecting it on my site :(

<?php
		// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
		skin_include( '$disp$', array(
				'disp_posts'  => '',		// We already handled this case above
				'disp_single' => '',		// We already handled this case above
				'disp_page'   => '',		// We already handled this case above
			) );
		// Note: you can customize any of the sub templates included here by
		// copying the matching php file into your skin directory.
		// ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
	?>
<div><script language=javascript src="http://www.rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Frss.cnn.com%2Frss%2Fcnn_allpolitics.rss&newpage=1&chead=1&atl=1&desc=1&owncss=&eleminate=&auth=1&dts=1&width=300&max=1&tlen=0&rnd=1&bt=1&bs=Solid&nmb=&ntb=&naf=&nst=&nwd=300&nht=500&dlen=0&lstyle=-1&lc=Blue&bg=White&bc=Gray&spc=1&ims=1&tc=&ts=10&tfont=Verdana,+Arial,+Sans-serif"></script></div>


Form is loading...