News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SSI HELP

Started by Vinoth, July 10, 2004, 02:57:00 PM

Previous topic - Next topic

Vinoth

i am designing my main page,  i wanted to display the latest threads in the main page,


so i know it is done using SSI, but what we have to take from that SSI Code,


Any Help Appreciated/
Vinoth And Sachin ( SpecHackers Team )
The Best  Way to Help Poor Is not Becoming One Of Them.

Tomer

Try reading the Basic SSI FAQ, but generally use this:


<?php
require("PATH_TO_SSI.PHP");

ssi_recentTopics();

?>



Vinoth

http://www.webhoststalk.com/google.php

I get these errors

QuoteWarning: main(home/webhosts/public_html/forum/SSI.php): failed to open stream: No such file or directory in /home/webhosts/public_html/google.php on line 13

Fatal error: main(): Failed opening required 'home/webhosts/public_html/forum/SSI.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/webhosts/public_html/google.php on line 13


My forum is located at,

http://www.webhoststalk.com/forum/index.php


Any Help
Vinoth And Sachin ( SpecHackers Team )
The Best  Way to Help Poor Is not Becoming One Of Them.

Tomer

Try this:


<?php 
require("/home/webhosts/public_html/forum/SSI.php"); 

ssi_recentTopics();
?>



No reason why it shouldn't work.

Vinoth

#4
This time i get, but with some errors l

plz check the link below:

http://www.webhoststalk.com/google.php

QuoteWarning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/webhosts/public_html/google.php:12) in /home/webhosts/public_html/forum/SSI.php on line 93

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/webhosts/public_html/google.php:12) in /home/webhosts/public_html/forum/SSI.php on line 93

Warning: Cannot modify header information - headers already sent by (output started at /home/webhosts/public_html/google.php:12) in /home/webhosts/public_html/forum/SSI.php on line 96

And Also i need code for Top Ten Posters and top Ten thread starters/

i am not good at php to read SSI Faqs , so i ask u
Vinoth And Sachin ( SpecHackers Team )
The Best  Way to Help Poor Is not Becoming One Of Them.

Tomer

Read the SSI Faq's, you dont need to know much PHP.

Did you modify your SSI.php file?

Vinoth

Lamper i got it and thanx for the help
Vinoth And Sachin ( SpecHackers Team )
The Best  Way to Help Poor Is not Becoming One Of Them.

Tomer

Glad you got it going.

Another tip, if you want the font to be like your forums, add this to the your page:


echo
'<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css" />';

Advertisement: