Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Gary - lokakuu 06, 2005, 05:01:59 IP

Otsikko: SSI Thing
Kirjoitti: Gary - lokakuu 06, 2005, 05:01:59 IP
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.
Otsikko: Re: SSI Thing
Kirjoitti: Oldiesmann - lokakuu 06, 2005, 05:08:36 IP
<?php

include_once('/path/to/SSI.php');
ssi_welcome();
?>
Otsikko: Re: SSI Thing
Kirjoitti: JayBachatero - lokakuu 06, 2005, 05:12:53 IP
Doesn't he need to include the SSI.php file in the first line before the headers are sent?
Otsikko: Re: SSI Thing
Kirjoitti: Thunderace - lokakuu 06, 2005, 05:13:53 IP
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');
Otsikko: Re: SSI Thing
Kirjoitti: Gary - lokakuu 06, 2005, 05:14:07 IP
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
Otsikko: Re: SSI Thing
Kirjoitti: Oldiesmann - lokakuu 06, 2005, 05:36:58 IP
You're welcome :)

PS - I'm also a fan of Futurama ;)
Otsikko: Re: SSI Thing
Kirjoitti: JayBachatero - lokakuu 06, 2005, 05:42:51 IP
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.
Otsikko: Re: SSI Thing
Kirjoitti: Gary - lokakuu 06, 2005, 06:34:27 IP
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]
Otsikko: Re: SSI Thing
Kirjoitti: Gary - marraskuu 11, 2005, 11:04:45 AP
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.
Otsikko: Re: SSI Thing
Kirjoitti: Trekkie101 - marraskuu 11, 2005, 04:59:56 IP
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 :)
Otsikko: Re: SSI Thing
Kirjoitti: Gary - 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.  :-[
Otsikko: Re: SSI Thing
Kirjoitti: Trekkie101 - marraskuu 11, 2005, 08:09:00 IP
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
Otsikko: Re: SSI Thing
Kirjoitti: Gary - helmikuu 21, 2006, 08:24:08 IP
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)