vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   I need help adding custom php code to vb style? (https://vborg.vbsupport.ru/showthread.php?t=249503)

GrowReport 08-28-2010 11:30 PM

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

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.


All times are GMT. The time now is 01:27 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00977 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete