PDA

View Full Version : I need help adding custom php code to vb style?


GrowReport
08-28-2010, 11:30 PM
I am trying to a a custom RSS reader that I can place on a page.

This is the code I'm trying to work in a style I made. I already made the vb page and it works, just the custom code does not display the feed.

<fieldset class="rsslib">

require_once("rsslib.php");
$url = "http://www.newsfeed.org/feed/";
echo RSS_Display($url, 15, false, true);
</fieldset>

The other settings are on the lib.php file. I can call everything fine on a blank page inside the forum root directory.

Is there a vb tag to ad custom php code inside vb php code?

Did I ask that right?

Thanks

Lynne
08-29-2010, 01:44 AM
You cannot put php in a template. PHP goes in the the php file, html goes in the templates.

GrowReport
08-29-2010, 02:10 PM
Bummer, I guess I need to use Ajax or Java script then, thanks

Lynne
08-29-2010, 02:27 PM
Or a plugin.

GrowReport
08-29-2010, 06:04 PM
There is not a plugin that I can find to read rss feeds that don't post to the forum. let me correct that, not that I can find right now, I'm still looking, just no joy yet. I have one in c# that does everything, but it's for another site.

I was hoping for the easy way out, but I can use Java :( I guess.

Thanks for the quick reply

metalguy639
09-03-2010, 04:49 AM
try Dynamic Drive website they have some nice java scrip rss stuff you can use and it will work ok.