PDA

View Full Version : how do I view a test template I made?


nezzzo
07-18-2006, 07:19 AM
Hi Ryan,

I created a new template but not sure how to view the page? Basically I am trying to make a page that contains JUST the videos and no menu/logo/header/footer and when the user clicks on the videos it should open in a new window. How can I go about doing this? I also need to be able to show random video links/thumbs. Let me know.

thanks!

Ryan
07-18-2006, 08:08 AM
To create a page without header links do this:
<?php
require_once ('./global.php');

echo $tpl->pull_template('TEMPLATE_NAME');
?>
To create a page with header links do this:
<?php
require_once ('./global.php');

$tpl->output_page('TEMPLATE_NAME');
?>

nezzzo
07-18-2006, 08:14 AM
thanks!

what about viewing my new template? how do I figure out what the URL to it is?

Ryan
07-18-2006, 06:09 PM
Just create a new php file with the code I posted above.