Advertisement:

Author Topic: Basic SSI FAQ  (Read 155277 times)

Offline bunkfilms

  • Newbie
  • *
  • Posts: 5
  • Indy's Premiere Volunteer Film Group
Re: Basic SSI FAQ
« Reply #40 on: December 08, 2004, 10:14:09 PM »
I seem to be having an odd issue with this, or maybe my php knowledge (the require statement). I know the absolute path to my SSI.php file, but I can only get the functions to work if my file for instance, testssi.php is in the same directory of my SSI.php file, regardless if I know my require statement is pointing to the corret path. If I move my test file out of that director, it fails on the require, giving me a blank page. I'm stumped.
T.Marquez Jr.
Bunk Films
Amateur Films - Professional Services - Independent Thinkers
hxxp:www.bunkfilms.com [nonactive]

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Basic SSI FAQ
« Reply #41 on: December 09, 2004, 02:58:51 AM »
I seem to be having an odd issue with this, or maybe my php knowledge (the require statement). I know the absolute path to my SSI.php file, but I can only get the functions to work if my file for instance, testssi.php is in the same directory of my SSI.php file, regardless if I know my require statement is pointing to the corret path. If I move my test file out of that director, it fails on the require, giving me a blank page. I'm stumped.

There's nothing we can really do without knowing the path you're trying to use...

It's possible your other paths are incorrect - you can check and fix them by using repair_settings.php.  What is repair_settings.php?

-[Unknown]
« Last Edit: December 09, 2004, 10:50:50 PM by [Unknown] »

Offline bunkfilms

  • Newbie
  • *
  • Posts: 5
  • Indy's Premiere Volunteer Film Group
Re: Basic SSI FAQ
« Reply #42 on: December 09, 2004, 12:05:37 PM »
The path is this:

<?php require("/home/business/public_html/forums/SSI.php");  ?>

Which is correct, and works on the same file, if I copy it to the forums directory and access it from there.  I realize it is more of a php issue than SMF, but appreciate any thoughts as to why the require would not be working with the correct path
T.Marquez Jr.
Bunk Films
Amateur Films - Professional Services - Independent Thinkers
hxxp:www.bunkfilms.com [nonactive]

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Basic SSI FAQ
« Reply #43 on: December 09, 2004, 10:50:39 PM »
If the path is correct, I can almost be certain it's *other* paths - perhaps starting with "./".  Did you check repair_settings.php?

-[Unknown]

Offline GiNi3D

  • Jr. Member
  • **
  • Posts: 382
  • Gender: Male
  • Be truthful
    • Nettouring.com
Re: Basic SSI FAQ
« Reply #44 on: December 09, 2004, 11:49:51 PM »
@bunkfilms
Did you try your domain name>>  <?php include (‘http://www.yourDomainName.com/forums/SSI.php’); ?>

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Basic SSI FAQ
« Reply #45 on: December 10, 2004, 01:25:25 AM »
@bunkfilms
Did you try your domain name>>  <?php include (‘http://www.yourDomainName.com/forums/SSI.php’); ?>


That is the wrong way to do it, I'm afraid.... unless you just want to load certain SSI functions without being able to access the other benefits of SSI.php.

-[Unknown]

Offline GiNi3D

  • Jr. Member
  • **
  • Posts: 382
  • Gender: Male
  • Be truthful
    • Nettouring.com
Re: Basic SSI FAQ
« Reply #46 on: December 10, 2004, 01:59:25 AM »
That is the wrong way to do it, I'm afraid.... unless you just want to load certain SSI functions without being able to access the other benefits of SSI.php.

-[Unknown]
I guess you are right, I actually never tried the SSI functions; I guess I will pass these kinds of questions until I know more…  ;)

Offline bunkfilms

  • Newbie
  • *
  • Posts: 5
  • Indy's Premiere Volunteer Film Group
Re: Basic SSI FAQ
« Reply #47 on: December 10, 2004, 07:14:05 AM »
Just wanted to thank you for correcting me. The solution you provided did work and got me to fix all the variables to the recommended settings! 

Now I begin the difficult task of making the SSI.php work with my Geeklog (geeklog.net) CMS system.  I have read several places on here where users strongly encourage NOT to modify the SSI.php code.  The problem with using SMF with my geeklog site is some of the variables cross over (have the same names) and you can't redeclare a function, such as db_query which both systems use.

Yes, yes, I know geeklog has it's own itegrated forums, but I was raised on YabbSE and have stuck with it through SMF because it is the BEST forums package out there. The best.  So I rather use it than having something totally integrated.  But having some of the SSI.php tools work on the main site would be nice. I will post back if I get anything to work.

Thanks again for your time and help.
T.Marquez Jr.
Bunk Films
Amateur Films - Professional Services - Independent Thinkers
hxxp:www.bunkfilms.com [nonactive]

Offline Elissen

  • Full Member
  • ***
  • Posts: 466
  • Gender: Male
    • ICSC
Re: Basic SSI FAQ
« Reply #48 on: December 10, 2004, 07:23:56 AM »
If you conflicting variable/function names you might be interested in using smf_api.php

The purpose of this tool is to facilitate easy integration of SMF into other scripts and software. Previously, this was done with SSI.php, but that pulls in most of SMF and can become very bloated for general usage inside another large software. It also meant the possibility of naming conflicts, the two softwares fighting over output buffering, and many other problems. Even past that, there have been licensing problems.

[...]

Offline sirdavid23

  • Semi-Newbie
  • *
  • Posts: 23
Including Log in as Welcome?
« Reply #49 on: March 16, 2005, 01:41:29 PM »
Hi, I´d like to do this:



But I can´t figure out the coding part. I try to work it on this web page.
http://www.turismopeninsular.com [nofollow]

But I can´t.  I´ve been working with the ssi.php samples but I only need the login box exactly as there is in that graphic. How could I do this?

Help me please.

Offline Elissen

  • Full Member
  • ***
  • Posts: 466
  • Gender: Male
    • ICSC
Re: Basic SSI FAQ
« Reply #50 on: March 16, 2005, 02:30:35 PM »
Hi, I´d like to do this:



But I can´t figure out the coding part. I try to work it on this web page.
http://www.turismopeninsular.com

But I can´t.  I´ve been working with the ssi.php samples but I only need the login box exactly as there is in that graphic. How could I do this?

Help me please.

I get "Error 404 page. Change it on /errors/404.html Add more on the .htaccess file" when accesing the picture

Offline Cypher7

  • Sophist Member
  • *****
  • Posts: 1,246
  • Gender: Male
  • PMPN8EZ
    • Dublin Airport Tae Kwon Do
Re: Basic SSI FAQ
« Reply #51 on: March 16, 2005, 04:11:57 PM »
did you mean this... ;)

http://www.davidr.boxesmedia.com/allpics/foro.jpg

Are you sure you put in   <?php require("SSI.php"); ?>   on the page!?  It should go in BEFORE the <html> tag...

then put in this tag on your page where ever you want the login box to be...

<?php ssi_login(); ?>


Offline sirdavid23

  • Semi-Newbie
  • *
  • Posts: 23
Re: Basic SSI FAQ
« Reply #52 on: March 23, 2005, 08:06:35 PM »
Wel... yes, It´s working now. Now that I included the index.PHP part. I had it working as index.htm.

On to the next question:
Could I manipulate the ssi login function so that It would display in arial 9 points:

USR___________
PSW___________  O <- button made in flash that says: YES! to log in.

Is this possible? even a GIF pic will do. But how do I work this?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Basic SSI FAQ
« Reply #53 on: March 23, 2005, 08:33:34 PM »
Yes, just use the .ssi_table css class....

http://www.w3schools.com/css/

-[Unknown]

Offline cellDamage

  • Semi-Newbie
  • *
  • Posts: 48
Re: Basic SSI FAQ
« Reply #54 on: April 16, 2005, 06:36:50 AM »
If you 'is_guest' etc.

How can you find out if the user is a global mod?
Probably easy as hell but i wanna ask :)

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: Basic SSI FAQ
« Reply #55 on: April 16, 2005, 06:45:28 AM »
I use this:

Code: [Select]
<?php


if (in_array(2$user_info[&#39;groups&#39;]) || $context[&#39;user&#39;][&#39;is_admin&#39;])
   
{
       echo &
#39;Hello moderator!      &#39;;
   
}
else
   {
       echo &
#39;You dont have permission to be here!.&#39;;
   
}

?>
Change that '2' to moderators membergroup id. This allows them and admin.
« Last Edit: April 16, 2005, 06:49:22 AM by Owdy »
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Offline cellDamage

  • Semi-Newbie
  • *
  • Posts: 48
Re: Basic SSI FAQ
« Reply #56 on: April 16, 2005, 06:55:09 AM »
Thank you Owdy, this place rocks :D

Just completely incorporated SMF into my website & my gallery, its just so much easier than my original user system, thanks for creating such great software :D

My gallery is even better now!  ;D

SO if to edit my global mods group i use this:
http://ftmb.net/forum/index.php?action=membergroups;sa=edit;id=2

then the id is 2? :)
« Last Edit: April 16, 2005, 06:57:03 AM by cellDamage »

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: Basic SSI FAQ
« Reply #57 on: April 16, 2005, 06:57:54 AM »
Yes, that should be it.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Offline cellDamage

  • Semi-Newbie
  • *
  • Posts: 48
Re: Basic SSI FAQ
« Reply #58 on: April 16, 2005, 08:01:23 AM »
Worked like a dream  :D

Thankyou so much.

Offline AnimeHungry.com

  • Newbie
  • *
  • Posts: 9
Re: Basic SSI FAQ
« Reply #59 on: May 15, 2005, 09:25:08 AM »
how do i make a login that once loged in, you get redirected to the homepage????
« Last Edit: May 15, 2005, 09:34:25 AM by AnimeHungry.com »