Recent Topics how to display on front page of website

Started by Eternity, January 03, 2006, 03:17:41 PM

Previous topic - Next topic

Eternity

Hi Have generated the recent topics list and it all looks fine now I need to include it on the front page of the website.  Thankfully have the site managers have dropped php nuke and am now back to an html template so have created a table for it.  How do insert it though since it is also in a different directory from the forums. 

Thanks for any suggestions.
http://www.tesda.org.uk
http://www.tesda.org.uk/Downloads

Open Source software is an innovative form and opportunity to break through the barriers of poverty and contribute positively to development and free trade.

1MileCrash

The only thing php can't do is tell you how much milk is left in the fridge.



Eternity

Quote from: Tippmaster on January 03, 2006, 03:18:57 PM
http://yoursite.com/ssi_examples.php

Quote from: Tippmaster on Yesterday at 03:18:57 PM
http://yoursite.com/ssi_examples.php

Ok thanks I checked it and I have included the php command before the html tag and I have now included the command in the line where I want it to appear on my index page.  It is still not working though and producing content. Here is what I inserted

<?php require("./forums/SSI.php"); ?>  before html in my index page and

<tr><!-- Row 1 -->
                      <td><?php ssi_recentTopics(); ?> </td><!-- Col 1 --></tr></table>

because it is another directory do I need to specify that in the table command line?  Or should it be specified in the top line command as I have done only?

I am still doing something wrong as it isnt outputting anything at all to do with the forum.
http://www.tesda.org.uk
http://www.tesda.org.uk/Downloads

Open Source software is an innovative form and opportunity to break through the barriers of poverty and contribute positively to development and free trade.

1MileCrash

can i have a link to the page? remember it has to have a .php extension to work.
The only thing php can't do is tell you how much milk is left in the fridge.



Eternity

Quote from: Tippmaster on January 04, 2006, 12:07:01 PM
can i have a link to the page? remember it has to have a .php extension to work.

Tippmaster the index file doesn't have a php extension. So should I use the shtml command instead. 

I also tried to do the php include for recent topics on post nuke as the site we are converting from is post nuke and created a block and everything but it was proving really difficult to get the information I wanted to be presented in the block.  The main site and the forums are in different directories. 

So sorry for my ignorance I am a bit of a newbie to php coding and ssi.
http://www.tesda.org.uk
http://www.tesda.org.uk/Downloads

Open Source software is an innovative form and opportunity to break through the barriers of poverty and contribute positively to development and free trade.

1MileCrash

just put the file's extension as php and it should work.
The only thing php can't do is tell you how much milk is left in the fridge.



Eternity

Quote from: Tippmaster on January 04, 2006, 02:39:58 PM
just put the file's extension as php and it should work.

Thank you very much Tippmaster it is displaying now. That is really great now I can add all kinds of things from the forums to the front pages.  You have been a terrific help.   
http://www.tesda.org.uk
http://www.tesda.org.uk/Downloads

Open Source software is an innovative form and opportunity to break through the barriers of poverty and contribute positively to development and free trade.

Eternity

Now I am just having some fun trying to fit the output of the ssi file into a frame or box of some kind and reducing the size of the output so it fits in with the page layout. 
http://www.tesda.org.uk
http://www.tesda.org.uk/Downloads

Open Source software is an innovative form and opportunity to break through the barriers of poverty and contribute positively to development and free trade.

Advertisement: