Welcome, Guest. Please Login or Register.
August 29, 2025, 10:20:45 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  SSI.php (Yes, me again) « previous next »
Pages: [1] 2 3 Reply Ignore Print
Author Topic: SSI.php (Yes, me again)  (Read 898 times)
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
SSI.php (Yes, me again)
« on: April 11, 2002, 04:14:39 PM »
Reply with quote

I still cant get it to work!! if i put

login(); right at then end of ssi.php and then include it, it will work fine when i go to (or include) ssi.php, but it means i need to put all my tables and such into ssi.php, very anyoing.

Why does it work when i put it into ssi.php but not index.php!?

 
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
Archangel
Noobie
*
Posts: 24


Hmm... ouch.

Re:SSI.php (Yes, me again)
« Reply #1 on: April 11, 2002, 08:06:17 PM »
Reply with quote

In index.php, make sure you include the file before calling its functions.

A safe bet is to put the include statement as the very first line (or the next few lines if you have important things at the top)
Logged
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:SSI.php (Yes, me again)
« Reply #2 on: April 11, 2002, 08:14:37 PM »
Reply with quote

my index.php:

<?
include("./board/SSI.php");
include("header.php");
login();
include("footer.php");
?>

which i did as a test.

doesnt work, see here:
www.ud.2ya.com
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:SSI.php (Yes, me again)
« Reply #3 on: April 11, 2002, 08:31:17 PM »
Reply with quote

i've tried everything!

require with full path to ssi.php, and url, include with full path and url, i dont think thats the problem, because header.php is displayed, so obviously

<?
include("http://hosted.barrysworld.net/ud/board/SSI.php");
$title = 'UD Site';

include("header.php");
login(); <--- here is the problem :(
include("footer.php");
?>

why wont it work?
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
Archangel
Noobie
*
Posts: 24


Hmm... ouch.

Re:SSI.php (Yes, me again)
« Reply #4 on: April 12, 2002, 12:42:52 AM »
Reply with quote

Hmm...

Have you looked at the code of SSI.php and have you changed the settings so it would work on your server?

there are like 5 lines to change near the beginning of the file, after the comments.
Logged
tore-
Sr. Member
****
Posts: 291


I love YaBB SE!

Re:SSI.php (Yes, me again)
« Reply #5 on: April 12, 2002, 02:09:47 PM »
Reply with quote

i had the SAME problem, here is how i fixed it:
<?phpinclude "http://domain/community/SSI.php?function=login"?>



the old way is the best, to bad this example is in the ssi example list, maybe the team should ad it?
« Last Edit: April 12, 2002, 02:10:47 PM by tore- » Logged

Star wars rules!
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:SSI.php (Yes, me again)
« Reply #6 on: April 12, 2002, 04:16:36 PM »
Reply with quote

here is my new page:

<?
$title = 'UD Site';

include("header.php");

include("http://hosted.barrysworld.net/ud/board/SSI.php?function=login");

include("footer.php");
?>

That is including footer.php, so it is getting that far, but there the login should be, there is nothing :(
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
tore-
Sr. Member
****
Posts: 291


I love YaBB SE!

Re:SSI.php (Yes, me again)
« Reply #7 on: April 12, 2002, 06:33:40 PM »
Reply with quote

then there is something wrong with your SSI file, i am 100% sure, download the upgrade pack from yabbse, and use the new SSI there, if there is no such file there, download the safe 1.3.0 pack and replace your current SSI.php file with this one
Logged

Star wars rules!
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:SSI.php (Yes, me again)
« Reply #8 on: April 12, 2002, 06:41:35 PM »
Reply with quote

i already tried that, and i know its ok, because if i put login(); at the bottom of SSI.php it will work when i include ssi.php :O
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:SSI.php (Yes, me again)
« Reply #9 on: April 12, 2002, 07:03:45 PM »
Reply with quote

wohoo! i kinda got it working now! i used the url in the include instead of the full path and i can use it how you said, tore-!

However, How can i use it like this:
if ($username == 'Guest'){
include("http://www.ud.barrysworld.net/board/SSI.php?function=login");
}
else {
include("http://www.ud.barrysworld.net/board/SSI.php?function=welcome");
}

I treid that then realised i needed to load some of the files.
so i copied this from ssi.php into my index:

   $full_yabbse_path = "/websites/hosted/ud/board";

include_once ($full_yabbse_path."/Settings.php");
include_once ($full_yabbse_path."/".$language);
include_once ($full_yabbse_path."/Sources/Subs.php");
include_once ($full_yabbse_path."/Sources/Load.php");
$dbcon = mysql_connect($db_server, $db_user, $db_passwd);
mysql_select_db($db_name);

/* ### Log this click ### */
ClickLog();

/* ### Load the user's cookie (or set to guest) ### */
LoadCookie();

/* ### Load user settings ### */
LoadUserSettings();

my whole page now looks like this:

<?
$title = 'UD Site';

   $full_yabbse_path = "/websites/hosted/ud/board";

include_once ($full_yabbse_path."/Settings.php");
include_once ($full_yabbse_path."/".$language);
include_once ($full_yabbse_path."/Sources/Subs.php");
include_once ($full_yabbse_path."/Sources/Load.php");
$dbcon = mysql_connect($db_server, $db_user, $db_passwd);
mysql_select_db($db_name);

/* ### Log this click ### */
ClickLog();

/* ### Load the user's cookie (or set to guest) ### */
LoadCookie();

/* ### Load user settings ### */
LoadUserSettings();

include("header.php");
if ($username == 'Guest'){
include("http://www.ud.barrysworld.net/board/SSI.php?function=login");
}
else {
include("http://www.ud.barrysworld.net/board/SSI.php?function=welcome");
}

include("footer.php");
?>

but that does not work! because username seems undefined because i always get "Welcome Guest, please login or register"
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
Archangel
Noobie
*
Posts: 24


Hmm... ouch.

Re:SSI.php (Yes, me again)
« Reply #10 on: April 12, 2002, 07:07:01 PM »
Reply with quote

Hmm... you can do

include("http://www.ud.barrysworld.net/board/SSI.php?function=login");
but not

include("http://www.ud.barrysworld.net/board/SSI.php");
??

Oh well, good job on getting that to work.


To get that $username thing working, try adding this line just before the if statement

global $username;
« Last Edit: April 12, 2002, 07:09:40 PM by Archangel » Logged
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:SSI.php (Yes, me again)
« Reply #11 on: April 12, 2002, 07:18:56 PM »
Reply with quote

i added global $username;

here:
global $username;
if ($username == 'Guest'){
include("http://www.ud.barrysworld.net/board/SSI.php?function=login");
}
else {
include("http://www.ud.barrysworld.net/board/SSI.php?function=welcome");
}

but,  it does not work! even when i go to my URL like this:
http://www.ud.barrysworld.net/index.php?username=Guest

Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:SSI.php (Yes, me again)
« Reply #12 on: April 12, 2002, 07:52:26 PM »
Reply with quote

ok, all the yabb functions are killing the page everything after
ClickLog(); and the yabb  functions, kills the script!
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:SSI.php (Yes, me again)
« Reply #13 on: April 12, 2002, 08:03:40 PM »
Reply with quote

What is wrong with functions?! it should be working, right?
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:SSI.php (Yes, me again)
« Reply #14 on: April 13, 2002, 02:05:15 PM »
Reply with quote

nobody can help me with the function problem?
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
Pages: [1] 2 3 Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  SSI.php (Yes, me again) « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.078 seconds with 20 queries.