Advertisement:

Author Topic: Expert SSI FAQ  (Read 131619 times)

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Expert SSI FAQ
« Reply #20 on: November 04, 2004, 04:10:04 PM »
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]

Offline Superboy

  • Semi-Newbie
  • *
  • Posts: 83
  • Gender: Male
Re: Expert SSI FAQ
« Reply #21 on: November 04, 2004, 05:43:29 PM »
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.

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Expert SSI FAQ
« Reply #22 on: November 04, 2004, 07:55:36 PM »
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]

Offline Superboy

  • Semi-Newbie
  • *
  • Posts: 83
  • Gender: Male
Re: Expert SSI FAQ
« Reply #23 on: November 04, 2004, 08:08:42 PM »
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.

Offline aaronsnet

  • Semi-Newbie
  • *
  • Posts: 21
  • Gender: Male
    • the detour
Re: Expert SSI FAQ
« Reply #24 on: November 09, 2004, 05:32:51 PM »
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?

Code: [Select]
<?php

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

?>

thanks!

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Expert SSI FAQ
« Reply #25 on: November 09, 2004, 08:22:33 PM »
Code: [Select]
<?php

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

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

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

?>

-[Unknown]

Offline Kender

  • Jr. Member
  • **
  • Posts: 294
  • Gender: Male
  • I am Kender
Re: Expert SSI FAQ
« Reply #26 on: November 10, 2004, 07:20:31 PM »
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

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Expert SSI FAQ
« Reply #27 on: November 10, 2004, 08:45:57 PM »
Did you global $user_info?

-[Unknown]

Offline Kender

  • Jr. Member
  • **
  • Posts: 294
  • Gender: Male
  • I am Kender
Re: Expert SSI FAQ
« Reply #28 on: November 10, 2004, 08:54:23 PM »
probably not
*sheepish*

little things that arent in the SSI_examples.. that should be  ;)
thanks [unknown]
« Last Edit: November 10, 2004, 08:56:49 PM by Kender »
http://chucknorris2012.com  Avoid a roundhouse kick to the head!  Sign the petition

Offline Kender

  • Jr. Member
  • **
  • Posts: 294
  • Gender: Male
  • I am Kender
Re: Expert SSI FAQ
« Reply #29 on: November 12, 2004, 07:03:10 PM »
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

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Expert SSI FAQ
« Reply #30 on: November 13, 2004, 06:01:42 PM »
Change the cookie name for one of them.

-[Unknown]

Offline Kender

  • Jr. Member
  • **
  • Posts: 294
  • Gender: Male
  • I am Kender
Re: Expert SSI FAQ
« Reply #31 on: November 13, 2004, 06:42:23 PM »
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

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Expert SSI FAQ
« Reply #32 on: November 13, 2004, 07:49:29 PM »
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]

Offline Kender

  • Jr. Member
  • **
  • Posts: 294
  • Gender: Male
  • I am Kender
Re: Expert SSI FAQ
« Reply #33 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
http://chucknorris2012.com  Avoid a roundhouse kick to the head!  Sign the petition

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Expert SSI FAQ
« Reply #34 on: November 14, 2004, 03:46:22 AM »
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]

Offline Kender

  • Jr. Member
  • **
  • Posts: 294
  • Gender: Male
  • I am Kender
Re: Expert SSI FAQ
« Reply #35 on: November 14, 2004, 07:45:03 AM »
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

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Expert SSI FAQ
« Reply #36 on: November 15, 2004, 03:24:25 PM »
You'll have better luck in 1.0, for that.

-[Unknown]

Offline Kender

  • Jr. Member
  • **
  • Posts: 294
  • Gender: Male
  • I am Kender
Re: Expert SSI FAQ
« Reply #37 on: November 15, 2004, 04:24:56 PM »
do we have a release date?  :)
http://chucknorris2012.com  Avoid a roundhouse kick to the head!  Sign the petition

Offline Jerry

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,903
  • Gender: Male
  • What? I can't hear you over my awesomeness!!
    • PlanetSMF
Re: Expert SSI FAQ
« Reply #38 on: November 19, 2004, 01:06:19 AM »
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."

Offline Elissen

  • Full Member
  • ***
  • Posts: 466
  • Gender: Male
    • ICSC
Re: Expert SSI FAQ
« Reply #39 on: November 19, 2004, 03:18:13 AM »
My SSI-pages also don't show the full copyrights. But it is your page, right? :)