News:

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

Main Menu

SSI Thing

Started by Gary, October 06, 2005, 05:01:59 PM

Previous topic - Next topic

Gary

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.
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Oldiesmann

<?php

include_once('/path/to/SSI.php');
ssi_welcome();
?>
Michael Eshom
Christian Metal Fans

JayBachatero

Doesn't he need to include the SSI.php file in the first line before the headers are sent?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Thunderace

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');

Gary

#4
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
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Oldiesmann

You're welcome :)

PS - I'm also a fan of Futurama ;)
Michael Eshom
Christian Metal Fans

JayBachatero

Quote from: Oldiesmann on October 06, 2005, 05:36:58 PM
You're welcome :)

PS - I'm also a fan of Futurama ;)

I love Futurama too and Family Guy.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Gary

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]
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Gary

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.
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Trekkie101

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

That should be it :)

Gary

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.  :-[
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Trekkie101

Quote from: AwwLilMaggie on November 11, 2005, 07:51:47 PM
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

Gary

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)
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Advertisement: