Expert SSI FAQ

Started by Tomer, June 28, 2004, 07:31:34 PM

Previous topic - Next topic

[Unknown]

I'm not sure what to tell you.  Looks like somethings wrong with the inclusion of SSI.php, and you're using frames (redirection) too...

-[Unknown]

Superboy

That redirection thing doesn't use frames, it just redirects. Do you have to put the php file with the SSI include in it in any specific place, or can it be anywhere in the webserver directory?

Thanks for your help :)
Windows (n): 32 bit extension and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company that can't stand 1 bit of competition.

[Unknown]

It should be inside the same directory as SMF.

It does indeed use frames; I found myself in a frameset (with just one frame) when I went to the link you provided.

-[Unknown]

Superboy

Ok, I believe that it uses frames :) You are an expert programmer after all :)
I still can't get it to work, but thanks for the help anyway [Unknown]  :) I expect that I will get it going... What I find weird is that some PHP tags like the login and logout ones work fine... :-\
Oh well
Thanks again everyone!
Windows (n): 32 bit extension and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company that can't stand 1 bit of competition.

aaronsnet

I am wanting to make a page where more then one user group will be able to access a page, and if they are not authorized, they would get an error msg. I am sure that this isn't right, would it be something like the code below?

<?php

if (in_array(9,12 $user_info['groups']))
   {
       echo 
'Yay! Im in group 9 and 12!';
   }
else
   {
       echo 
'We are sorry, it seems you dont have access to this page.';
   }

?>


thanks!

[Unknown]

<?php

if (in_array(9$user_info['groups']) || in_array(12$user_info['groups']))
{
    echo 
'Yay! Im in group 9 ';

    if (
in_array(9$user_info['groups']) && in_array(12$user_info['groups']))
        echo 
'and';
    else
        echo 
'or';

    echo 
' 12!';
}
else
{
    echo 
'We are sorry, it seems you dont have access to this page.';
}

?>


-[Unknown]

Kender

ok, in the same file that i have ssi_welcome() in, directly under that.. i want to place a menu that only the members of group 1 and 2 can see.....

i tried

if (in_array(1, $user_info['groups']) || in_array(2, $user_info['groups']))
{
   echo ' menu items ';
}

but doest work....
http://chucknorris2012.com  Avoid a roundhouse kick to the head!  Sign the petition

[Unknown]

Did you global $user_info?

-[Unknown]

Kender

#28
probably not
*sheepish*

little things that arent in the SSI_examples.. that should be  ;)
thanks [unknown]
http://chucknorris2012.com  Avoid a roundhouse kick to the head!  Sign the petition

Kender

ok, have a new problem

i have login - on main page  http://domain.com
i have forum - http://forum.domain.com

when i log in today, then come back tomorrow, i cannot log out from main page..  (session verification error) but can log out from forum
http://chucknorris2012.com  Avoid a roundhouse kick to the head!  Sign the petition

[Unknown]

Change the cookie name for one of them.

-[Unknown]

Kender

i am using the SMF login, so wouldnt it be the same cookie?

i am not setting a different cookie..  i can log in and out fine on same day, but have problems when it spans days..

exact error is (Session verification failed. Please try logging out and back in again, and then try again.)
http://chucknorris2012.com  Avoid a roundhouse kick to the head!  Sign the petition

[Unknown]

Yes, it will cause problems over multiple days if both forums are using the same cookie name and either of them is using global (sub domain independent) cookies.

-[Unknown]

Kender

thanks for the info

is there a fix, is a fix possible, or is it not a workable problem
http://chucknorris2012.com  Avoid a roundhouse kick to the head!  Sign the petition

[Unknown]

Quote from: Kender on November 13, 2004, 09:04:43 PM
thanks for the info

is there a fix, is a fix possible, or is it not a workable problem

You just asked me:

Okay, so I understand that I cannot give two files the same filename and extension, and that it is quite a perfect solution to add to the name of the other (for example, adding " (2)") - now, is a fix possible?

I just said there was a freaking fix.  What is it that is being miscommunicated?!

Forum #1 -> cookie named "Hello"
Forum #2 -> cookie named "Hello"

Login to forum #1 -> that login also affects forum #2 (because the cookies have the same name!)
Change name of cookie for forum #2 -> EVERYTHING IS PERFECT.

What is the problem with renaming the cookie, most specifically, in at least four sentences?  Be verbose.  I can't understand short, cryptic, and seemingly confused responses.

-[Unknown]

Kender

i see the confusion, sorry if i miscommunicated

it is not 2 forums, it is SSI login (name and password boxes) (checks topic.. yes.. SSI FAQ) with 1 forum

i log in SSI login, or Forum login, doesnt matter which
wait 2 days, reboot or not, close browser, open it several times..  and from index page of website (not forum)(SSI logout) cannot log out.. brings me to forum error telling me to try logging out and back in

if i try and log out from forum.. no problem
http://chucknorris2012.com  Avoid a roundhouse kick to the head!  Sign the petition

[Unknown]

You'll have better luck in 1.0, for that.

-[Unknown]

Kender

do we have a release date?  :)
http://chucknorris2012.com  Avoid a roundhouse kick to the head!  Sign the petition

Jerry

I am trying to use ssi_layers lake shown on page one by Elissen, so far it has been successful. But I can't seem to figure out how to make it show the footer like on the rest of the SMF pages.
http://www.raclan.org/index2.php is what I have so far. It shows the header, but only a partial footer. How would I make it show the full footer like my current forums footer for example:

[RA] Rebel Alliance | Powered by SMF 1.0 RC2.
© 2001-2004, Lewis Media. All Rights Reserved.
Page created in 0.114 seconds with 15 queries.
The bold is what my page only shows currently.


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Elissen

My SSI-pages also don't show the full copyrights. But it is your page, right? :)

Advertisement: