Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help with style for infobox/rss


Guest

Recommended Posts

Posted

Good Evening, I need a quick hand with something, been at it for a while now...

I've created an infobox with an rss feed in it. Works fine, I got the feed and the box heading, but I can't figure out the proper syntax to get the infobox style (class='infoboxcontents' i believe) in there...I currently have no borderlines or gray background. Everything I try either nulls out the php for the blog or simply puts it in as text.

The rss code is under gnu, so I'd be happy to contribute it if I can get this last part right...

 

<!-- BOF Blog -->
         <tr>
           <td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_BLOG );
new infoBoxHeading($info_box_contents, false, false); 

$XMLFILE = "http://www.myblog.blogspot.com/feeds/posts/default?alt=rss";
$TEMPLATE = "http://www.mysite.com/includes/boxes/rsstemplate.html";
$MAXITEMS = "5";
include("rss2html.php");

   ?>
           </td>
         </tr>
<!-- EOF Blog -->


 

Thanks for any help..

Posted

Ok, I realise it's not a style now but an actual second box underneath...I think I'm close, but if I do the following (below), I get (in the following order):

the box heading correctly

the blog

the border box with the blog php codes in it

 

so I need to get the blog inside the border box...

 

<!-- BOF blog -->
         <tr>
           <td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_BLOG );
new infoBoxHeading($info_box_contents, false, false); 

$XMLFILE = "http://www.myblog.blogspot.com/feeds/posts/default?alt=rss"; 
$TEMPLATE = "http://www.mysite.com/includes/boxes/rsstemplate.html"; 
$MAXITEMS = "5";  
$info_box_contents = array();
$info_box_contents[] = array  ("$XMLFILE" . "$TEMPLATE" . "$MAXITEMS" . include("rss2html.php"));
//new infoBox($info_box_contents);



?>
           </td>
         </tr>
<!-- EOF Blog //-->

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...