SSI welcome not working?

Started by iExotic, August 30, 2011, 05:01:22 PM

Previous topic - Next topic

iExotic

Okay guys, so i've tried many times and can't seem to get this down. Ik you can use the ssi_welcome to check if a user is logged in, butt hat does not seem to work. I tried it on a complete new forums, and it was glitchy still. So is there anyway to fix/or other ways to do this.

Thanks for reading.

ziycon

What are you doing? Are you getting an error? What is the error your getting?

You need to make sure that the below line is added to the page you want to use the ssi_welcome() function on.
include_once("forum/SSI.php");

iExotic

I'm not getting any errors. The ssi_welcome(); just does not work.. other functions work such as the recent post, boardnews ect..
Heres what i have for the welcome
<?php
require("/home/rune/public_html/smf/SSI.php");
ssi_welcome();
?>

ziycon

Try:
<?php
require("/home/rune/public_html/smf/SSI.php");
echo
ssi_welcome();
?>

iExotic

Nope, just still echos out
QuoteWelcome, Guest. Please login or register.

ziycon

Thats all the function does, you need to look at the $context variable to check if the user is logged in.

Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: