From: Brett G. <br...@ey...> - 2007-01-11 20:56:09
|
Hi list, Victor. I'm wondering if you can help me with a custom bit of PHP we had created for opensourcecinema My developer wrote some PHP that would call up the last several files tagged "remix" and place them on my front page. He made the page like this: http://opensourcecinema.org/bsmtp_cchost.php (only one file is currently tagged remix) The problem is, in order to do this, he felt he needed to complete render CChosts ouput as HTML, ie all the menus and navigator buttons are static html. This doesn't work if I want to change navigator tabs, or if a user is logged in vs a guest for the menu. So my question - is it possible to just include the small bit of php he's written, and put it in my home.xml? It looks something like this: <a href="<?php echo cchost_displaypost (1, 'pageurl_environment') ?>"> <img src="<?php echo cchost_displaypost (1, 'url_thumbnail') ?>"/></a> And has this above the <html> tag, to include another script: <?php ################################################################# # bsmtp_cchost.php # $Date$ - $RCSfile$ - $Revision$ ################################################################# $CCHOST_DISPLAY_ONLY_TAG = 'remix'; include_once ('bsmtp_lib/last_posts_cchost.inc'); ?> Thanks - and if there is a built in way to do this, I'd be grateful. Brett |