News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Calling things to the front page

Started by Miles Marshall, November 01, 2008, 11:46:46 PM

Previous topic - Next topic

Miles Marshall

So i created a HTML page and designed it the way I wanted it i would like to know were in the html file I would call things that are taken place in the forum for example...

Whos online?

Latest posts

Forum statistics?

And latest news to the front

Also intigrating the username and password box to the home page so they don't have to sign in twice. I Imagine I have to use SSI some how but not tottally sure how to do it
Need Computer Help? Just want to chat? Come on over! http://www.geekinc.org
"I tried to fix the world but they wouldn't give me the source code"

-Miles

cme1st2302

SMF Version: 1.1.11
SimplePortal Version: 2.3.2

Admin

He who waits for perfect conditions sees nothing!!
If you need help adding a button or tab PM me!!

Miles Marshall

For example : I would just insert this line of code in my html file were I want it to show up and it will pull it automattically?
<!--#include virtual="./SSI.php?ssi_function=boardStats" -->
Need Computer Help? Just want to chat? Come on over! http://www.geekinc.org
"I tried to fix the world but they wouldn't give me the source code"

-Miles

Miles Marshall

hmm i got it to work once but I cant get it to work anymore whats the exact code I need?
Need Computer Help? Just want to chat? Come on over! http://www.geekinc.org
"I tried to fix the world but they wouldn't give me the source code"

-Miles

[SiNaN]

That's what you should use. But make sure the extension of your file is .shtml.
Former SMF Core Developer | My Mods | SimplePortal

cme1st2302

Also make sure you have the code below before the <html>

<?php require("/path/to/forum/SSI.php"); ?>

Just make sure the path is right.

Chris
SMF Version: 1.1.11
SimplePortal Version: 2.3.2

Admin

He who waits for perfect conditions sees nothing!!
If you need help adding a button or tab PM me!!

[SiNaN]

That is only needed for *.php files cme1st2302.
Former SMF Core Developer | My Mods | SimplePortal

cme1st2302

SMF Version: 1.1.11
SimplePortal Version: 2.3.2

Admin

He who waits for perfect conditions sees nothing!!
If you need help adding a button or tab PM me!!

Advertisement: