I am new to php and kinda stuck

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
jagdish22
Forum Newbie
Posts: 2
Joined: Thu Mar 26, 2009 11:02 pm

I am new to php and kinda stuck

Post by jagdish22 »

Hello All, I am new to php and have no idea how to write the php code in tpl file. :banghead:

I am trying to customize my website - Basically, I am trying to display the News using RSS -

I am trying to use rssreader.php from http://apptools.com/phptools/xml/rss.php

and I have right.tpl file .. where i am trying to display the RSS news in 2nd box.


here is my right.tpl file --->
---------------------------------------------------------------------------------
<h2 class="boxcaption">Our Friends</h2>
<div class="box">
<ul>
<li><a href="http://www.smartxel.com" target="_blank">SmartXel</a></li>
</ul>
</div>
<p class="boxbottom"></p>



<h2 class="boxcaption">Relevant News</h2>
<div class="box">
<?php
require_once("rssreader.php");
$url="http://blogs.smartxel.com/feed/";
$rss=new rssFeed($url);
?>
</div>
<p class="boxbottom"></p>


<h2 class="boxcaption">Relevant sites</h2>
<div class="box">
{include file="google.tpl"}
</div>
<p class="boxbottom"></p>

---------------------------------------------------------------------------------
Can someone help to write the php code in tpl file - so that it can display the RSS news from given URL.

Thank you so much in advance - Jagdish
sujithtomy
Forum Commoner
Posts: 46
Joined: Tue Mar 24, 2009 4:43 am

Re: I am new to php and kinda stuck

Post by sujithtomy »

Hello,

Are you using Smarty Template Engine ?
jagdish22
Forum Newbie
Posts: 2
Joined: Thu Mar 26, 2009 11:02 pm

Re: I am new to php and kinda stuck

Post by jagdish22 »

yes, it is a Smarty Template Engine
Post Reply