TinyPortal

Development => Support => Topic started by: gfxindia on July 01, 2006, 06:48:56 AM

Title: How to DO this ?
Post by: gfxindia on July 01, 2006, 06:48:56 AM
I am going to rename my index.php to forum.php
And i'll be adding a custom index.php
I want the blocks and articles to be shown on that page.
I know the code for displaying blocks.
Some thing like left_bar()
But i know that.
What code should i add to display articles there.
Title: Re: How to DO this ?
Post by: G6Cad on July 01, 2006, 09:00:39 AM
I'm not sure thats even possible Darkman, As the index.php is a part of SMF forums, and TP is wrapped around that i don't think you can go around that and call articles outside SMF and TP.
If it is possible, i think you have to alter a lot of code ???
Title: Re: How to DO this ?
Post by: gfxindia on July 01, 2006, 09:03:37 AM
Doesn't that work like SSI
require("home/gfxindia/public_html/ssi.php");
We may include/require a file at the top and the call the Left block or right Block and it'll be there.
Title: Re: How to DO this ?
Post by: bloc on July 01, 2006, 08:53:13 PM
No, it doesn't quite work like that. TPortal.php assume SMF is running on full speed and also includes SSI.php for itself.