Advertisement:

Author Topic: Basic SSI FAQ  (Read 155353 times)

Offline <--Atlas-->

  • Newbie
  • *
  • Posts: 1
  • Gender: Male
    • Literate Minds -- A Home for Lit Snobs Everywhere
Re: Basic SSI FAQ
« Reply #60 on: July 16, 2005, 02:49:05 PM »
I heard there is a new API that is not SSI is this true, and where can I find more info on it?
There are two main products that come out of UC Berkeley: BSD and LSD -- We don't see this as a coincidence. --

I swear by my life and my love of it that I will not live for the sake of another man, or ask someone to live for mine--John Galt

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: Basic SSI FAQ
« Reply #61 on: July 16, 2005, 09:59:21 PM »
Cristián Lávaque http://cristianlavaque.com

Offline vizcares

  • Semi-Newbie
  • *
  • Posts: 15
Re: Basic SSI FAQ
« Reply #62 on: July 17, 2005, 06:09:57 PM »
Hi

if I want to insert the latest post in a html page can I use SSI or has it to be on a php page?

Maybe it's a supid question, but I have no clue about php

thanks in advance

Offline Tomer

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,652
  • Gender: Male
    • Aromazing
Re: Basic SSI FAQ
« Reply #63 on: July 17, 2005, 06:12:21 PM »
You can use .shtml, or .php

- TOmer

Offline vizcares

  • Semi-Newbie
  • *
  • Posts: 15
Re: Basic SSI FAQ
« Reply #64 on: July 17, 2005, 06:15:29 PM »
You can use .shtml, or .php

- TOmer

Ok thanks

I normally use Frontpage and I have a index page called index.htm is there some way I can change this page to .shtml or do I have to make a whole nesw page?

Offline JoeP

  • Jr. Member
  • **
  • Posts: 113
Re: Basic SSI FAQ
« Reply #65 on: September 04, 2005, 06:43:04 PM »
 :)This kind of tutorial is EXTREMELY helpful!
Looking forward to the advanced topics!

I hope there's something similar for the events calendar.
joe

Offline Gary

  • Sorceress's Knight
  • Customizer
  • SMF Super Hero
  • *
  • Posts: 18,170
  • Gender: Male
  • So this is the luck of the draw...
    • Gazmanafc on Facebook
    • garygadsdon on LinkedIn
    • @Gazmanafc on Twitter
    • The Bongo Comics Fan Forum
Re: Basic SSI FAQ
« Reply #66 on: October 04, 2005, 06:59:04 PM »
Nevermind, its sorted.  8)
« Last Edit: October 04, 2005, 07:14:47 PM by Gazmanafc »
Gary M. Gadsdon
Do NOT PM me unless I say so

War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Offline Gwydion Frost

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Third World Network
    • Third World Network
Re: Basic SSI FAQ
« Reply #67 on: December 18, 2005, 04:23:23 PM »
Ok, maybe I'm just not following...and as smart as I like to think I am, it's a little frustrating to be sounding so stupid and not grasping what should be a simple concept.

Following the directions as I have read them:

Create a document with a php extension. Place code within it. Place UNNAMED php document SOMEWHERE RANDOM in your forum directory.

Errr...what do I name this document, and how the heck does the forum software know how to access it?

I have multiple forums.

I have a shared database for these forums, each install has it's own tables, with only a few tables shared, such as...
  shared_log_activity
  shared_log_floodcontrol
  shared_log_karma
  shared_log_online
  shared_log_subscribed
  shared_membergroups
  shared_members
  shared_personal_messages
  shared_pm_recipients
  shared_subscriptions

Now, the issue I have here, is that I am under the understanding that SSI will allow my folks to log in, and bop from board to board to board (I also have the cookies set the same for each board). How do I do so, with SSI, because right now, even with the shared tables and cookies, you still have to log in fresh for each board...and that just won't do!
« Last Edit: December 18, 2005, 05:34:59 PM by GwydionFrost »

Offline PSPXavier

  • Semi-Newbie
  • *
  • Posts: 54
Re: Basic SSI FAQ
« Reply #68 on: December 20, 2005, 08:00:29 PM »
I'm quite confused...... I have a html homepage and that's where I want the code to go... So if I put the code in a php file it works, but how do I get it to work on my html page? Here's my current code.

Code: [Select]
<?php
require("/home/pspzone/public_html/smf/SSI.php"); 
 
ssi_welcome(); ?>

Offline 1MileCrash

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,188
Re: Basic SSI FAQ
« Reply #69 on: December 20, 2005, 09:25:32 PM »
change the .html extension to .php.
The only thing php can't do is tell you how much milk is left in the fridge.



Offline PSPXavier

  • Semi-Newbie
  • *
  • Posts: 54
Re: Basic SSI FAQ
« Reply #70 on: December 20, 2005, 09:53:48 PM »
But everything else in that page(index.html) is html.........

Offline 1MileCrash

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,188
Re: Basic SSI FAQ
« Reply #71 on: December 20, 2005, 10:09:36 PM »
it doesnt matter.


php doesnt even do anything if the code isnt surrounded by <?php ?> tags. it's a server side language. it just outputs html.

« Last Edit: December 20, 2005, 10:15:11 PM by Tippmaster »
The only thing php can't do is tell you how much milk is left in the fridge.



Offline PSPXavier

  • Semi-Newbie
  • *
  • Posts: 54
Re: Basic SSI FAQ
« Reply #72 on: December 20, 2005, 10:21:01 PM »
Okay-- so you have to have it .php, gotcha.

Is there a shtml version of this FAQ?

Offline psychophat

  • Semi-Newbie
  • *
  • Posts: 45
  • Gender: Male
    • ESPG dot TV
Re: Basic SSI FAQ
« Reply #73 on: January 14, 2006, 04:36:18 PM »
Hi,

Got lost again in the vast forum, heheheh . . . I also wanted to know how to CSS this:

Output page                    CSS file
Board  Topics Posts  =    .ssi_table
test1    1        1        =     ? what .ssi are these?
test2    1        2

<th height="300" scope="row" class="ssi_tables"><?php ssi_topBoards(); ?></th>

What is the code for this one, err I mean the .ssi_??? for this part. But when you use .ssi_table it'll only change the table not the lower half where would I change this and how to I code this for these are two types, right?



Thank you


-Patrick Grey
« Last Edit: January 14, 2006, 04:50:10 PM by psychophat »
I adore this forum, from zero PHP knowledge to +.1% per post
I'm going to get the charter member thinggy when I get to save some cash
SMF v.1.1RC2
PHP v.4.3.11

Offline Acf

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,967
  • Gender: Male
  • 101101010112
Re: Basic SSI FAQ
« Reply #74 on: January 27, 2006, 09:00:44 AM »
Tomer shouldn't your welcome.txt be:
Code: [Select]
<?php
require("/your/path/to/SSI.php"); 

// Script writen by Tomer "Lamper" Dean.
// **NOTE** Always check that the require statement is correct!
// A script that puts the persons membergroup into a variable for later use.

// Puts every person into a group.

if ($context[&#39;allow_admin&#39;])
   
{
      
$MemberGroup "Admin";
   }
elseif (
$context[&#39;user&#39;][&#39;is_guest&#39;])
   
{
      
$MemberGroup "Guest";
   }
else
   {
      
      
$MemberGroup "User";
   }

// Echo&#39;s the membergroup of the person.

echo 
&
#39;<center><h5>Welcome $MemberGroup!</h5></center>&#39;;

?>


otherwise a user is guest and a geust is user...
Sigh...

Offline fluid

  • Semi-Newbie
  • *
  • Posts: 58
  • Gender: Male
Re: Basic SSI FAQ
« Reply #75 on: February 10, 2006, 01:06:47 PM »
i would like to do something that another user here mentioned as well. i am building a site from the ground up without using a CMS. i have SMF installed that is being used, and would like to take the main page from the site and use SSI to handle logins and authentication. my problem with doing it with ssi_login(); is that the form posts to the root page of the forums. is there any way to have ssi_login(); post back to the root page of the site itself, and not take you into the forums?

everything is working flawlessly so far...i just need to get this one thing sorted out :D

Offline willtaka

  • Semi-Newbie
  • *
  • Posts: 11
Re: Basic SSI FAQ
« Reply #76 on: February 16, 2006, 03:05:15 PM »
Is there anyway of adding an actual board into ssi :D

Offline Gruss

  • Newbie
  • *
  • Posts: 1
Re: Basic SSI FAQ
« Reply #77 on: February 25, 2006, 11:37:11 AM »
@bunkfilms
Did you try your domain name>>  <?php include (‘http://www.yourDomainName.com/forums/SSI.php’); ?>


For some reason I can't get the login to pass the credentials. I'm running SMF 1.06 and PHP 4.4.1.

If I use:

Code: [Select]
require('http://www.mydomain.com/myforum/SSI.php');
it works, but I get this:

Quote
Please don't access SSI.php by URL directly; you may want to use the path ('SSI.php') or add ?ssi_function=something.



if I use the correct path

Code: [Select]
require('/home/#####/public_html/myforum/SSI.php');
where ##### is my account

or

Code: [Select]
require('SSI.php')
since the login.php is in the same directory as SSI.php

it doesn't pass the credentials.



My whole code below

Thanks in advance for any assistance.  If I find anything out I'll edit my post and put below.

Gruss



Code: [Select]
<?php
require(&#39;/home/#####/public_html/myforum/SSI.php&#39;);

global $context;

if (
$context[&#39;user&#39;][&#39;is_guest&#39;])
{
 echo
 &
#39;<h5>Access Denied</h5>
 
We are sorry guestit seems you dont have premission to view these downloads.&#39;;
}
else
{
 echo
 &
#39;<h5>Welcome &#39;, $context[&#39;user&#39;][&#39;name&#39;], &#39;!</h5>
 
Here are your downloads:&#39;;
}
?>
« Last Edit: February 25, 2006, 11:53:22 AM by Gruss »

Offline FiberOptix

  • Semi-Newbie
  • *
  • Posts: 30
  • Gender: Male
Re: Basic SSI FAQ
« Reply #78 on: March 25, 2006, 04:07:38 PM »
what do you have to when you said open a text file and save it with a extension of .php and then open it and put that code in it then what do you do. im trying to get it so that if you login your logged in on the forums. I dont get it can someone explain in full?

Offline ReD^DeviL

  • Semi-Newbie
  • *
  • Posts: 24
    • Goal! Football Forums
Re: Basic SSI FAQ
« Reply #79 on: July 17, 2006, 04:17:44 PM »
Ok, Someone needsto help me. I took the code from the welcome file from the first post, and put it in my php file at the very top, and I still can't see nothing.

Code: [Select]
<?php
require("/www/home/goalforums.net/forums/SSI.php"); 

// Script writen by Tomer "Lamper" Dean.
// **NOTE** Always check that the require statement is correct!
// A script that checks if your a guest, and if guest, puts a login box,
// and if user, put a welcome message.

// Checks which membergroup you are in.

if ($context['user']['is_guest'])
   {
      
ssi_login();
   }
else
   {
      
ssi_welcome();
   }

?>

Am I missing something? please help a PHP retard XD
Goal! Football Forums -- Don't let your opinion go to waste!

www.goalforums.net [nofollow]