Aziz
01-31-2007, 02:13 PM
Hello,
I need to add a two new blocks, One with regular html code to display logo with link and the other one to display the quote of the day which to pick a text line from a text file pleaced on the vivvo root folder.
Regard the regular html code box what I need to add a box tag that can be used in the .tpl files without adding a function to do some php coding, Simply how to make a new box tag ?
Regard the second one to display the quote of the day I think this code will do the php portion of the daily quote box:
echo "<font face=Tahoma size=3>";
$quotes = file("quotes.txt");
$quote = rand(0, sizeof($quotes)-1);
echo $quotes[$quote];
echo "</font>";
I followed all the steps on the thread that disscribe the new hello world box but it doesn't works for me because I don't understand every aspect of the code as I'm not a php programmer.
Would you please help me with that and more, How to hide the right side boxes from all the pages that are not using index.tpl, article_Full.tpl and category_Main.tpl ?
Thanks and Regards,
Aziz
I need to add a two new blocks, One with regular html code to display logo with link and the other one to display the quote of the day which to pick a text line from a text file pleaced on the vivvo root folder.
Regard the regular html code box what I need to add a box tag that can be used in the .tpl files without adding a function to do some php coding, Simply how to make a new box tag ?
Regard the second one to display the quote of the day I think this code will do the php portion of the daily quote box:
echo "<font face=Tahoma size=3>";
$quotes = file("quotes.txt");
$quote = rand(0, sizeof($quotes)-1);
echo $quotes[$quote];
echo "</font>";
I followed all the steps on the thread that disscribe the new hello world box but it doesn't works for me because I don't understand every aspect of the code as I'm not a php programmer.
Would you please help me with that and more, How to hide the right side boxes from all the pages that are not using index.tpl, article_Full.tpl and category_Main.tpl ?
Thanks and Regards,
Aziz