Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 29 Aug 2010, 01:30
GrowReport's Avatar
GrowReport GrowReport is offline
 
Join Date: Jan 2007
I need help adding custom php code to vb style?

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
Reply With Quote
  #2  
Old 29 Aug 2010, 03:44
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You cannot put php in a template. PHP goes in the the php file, html goes in the templates.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 29 Aug 2010, 16:10
GrowReport's Avatar
GrowReport GrowReport is offline
 
Join Date: Jan 2007
Bummer, I guess I need to use Ajax or Java script then, thanks
Reply With Quote
  #4  
Old 29 Aug 2010, 16:27
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Or a plugin.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #5  
Old 29 Aug 2010, 20:04
GrowReport's Avatar
GrowReport GrowReport is offline
 
Join Date: Jan 2007
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
Reply With Quote
  #6  
Old 03 Sep 2010, 06:49
metalguy639 metalguy639 is offline
 
Join Date: Jan 2009
try Dynamic Drive website they have some nice java scrip rss stuff you can use and it will work ok.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 12:02.

Layout Options | Width: Wide Color: