I'm new to SSI and I've started to implent as much as possible of my SMF forum into my main site without putting the whole thing into it. (The redesign is too thin) But I want it so that it can say
Hey, user you have 2,000 Messages and 1999 are new.
when logged in. But Welcome Guest... when not logged in. Like on the SMF main page.
<?php
include_once('/path/to/SSI.php');
ssi_welcome();
?>
Doesn't he need to include the SSI.php file in the first line before the headers are sent?
May be worth mentioning that ..
require_once('/path/to/SSI.php');
Ought to be the first line of your .php page e.g.
<?php
require_once('/path/to/SSI.php');
Yeah. I know all that. I have other SSI things running already. Thanks Oldiemann!
It works, Thanks again Oldiesmann :) You can see it in action at http://babysimpson.co.uk
You're welcome :)
PS - I'm also a fan of Futurama ;)
Lainaus käyttäjältä: Oldiesmann - lokakuu 06, 2005, 05:36:58 IP
You're welcome :)
PS - I'm also a fan of Futurama ;)
I love Futurama too and Family Guy.
lol. Thats why my forum is called Multi Talk 2, talk about whatever the hell you want. I love Futurama myself. I've always said, come one, come all.
[/plug]
heh. Rather than create a new topic. Wouldnt it be easier if I used this one again. ;)
I plan on using the SSI thing to update my website to make my life easier. (I'm using Cutenews at the momnet) but every time I post a url, it appears in a new window, is there any way I can stop that. Coz I dont want them to.
And can I set the board that it reads from, coz I have 2 sites I want to update this way.
ssi_boardNews($board = 1,$limit = null,$start = null,$length = null,$output_method = 'echo')
Change 1 to anything
and [iurl]www.example.com[/iurl]
www.test.com (http://www.test.com)
That should be it :)
Wow. Thanks Trekkie. I posted the first one using plain HTML. But not anymore!
I figured the first one out looking at one of Tomer's FAQs. Its a habit of not looking. :-[
Lainaus käyttäjältä: AwwLilMaggie - marraskuu 11, 2005, 07:51:47 IP
Wow. Thanks Trekkie. I posted the first one using plain HTML. But not anymore!
I figured the first one out looking at one of Tomer's FAQs. Its a habit of not looking. :-[
No problem, SSI's a beautiful toy :D
Once again its best to bump my old thread.
Okay, its about the log in thing again. Basically, what I want is for it to work accross subdomains.
I want it to work from forum.babysimpson.co.uk (the forum) to babysimpson.co.uk and lisa.babsyimpson.co.uk (my sites). But it doesnt work because of the subdomain.
If I used /forum as the URL it works. (Tried it out :P)