News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Site integration problem with SSI.php

Started by bschhikara, July 25, 2008, 07:48:57 AM

Previous topic - Next topic

bschhikara

Hi

I have searched this board completely.. but could not find suitable solution to my very simple problem.

My forum is installed on subdomain, enabled Database sessions, subdomain independent checked and disabled local storage of cookies.

I just want to use welcome function through SSI.php... this is working fine for the subdirectories of subdomain (like... subdomain.domain.com/directory/directory).

But when I used it on other main domain pages (like.. domain/directory/page.php) .. the welcome function is not showing the details of logged user. It is showing for guest only. The session of user is not taken up. While other functions such as news, search are working fine.

i am calling SSI.php by require(path/to/ssi.php) ... I also tried with require_once(/path/to/ssi.php)... but it is not working.

I am not a php programmer.. can any one please help so that I can proceed further to create the pages. without this it will be very difficult... I am using SSI.php to integrate with other static pages.

Foxylucious

#1
I've the same question.

Is it possible to use SSI.php for the main-website when SMF is installed on a subdomain? And how? (i'm using version 1.1.5 if it makes any difference)

Forum installation on: http://forum.website.com
Main-Website on: http://www.website.com


Thanks for any help

Greetings, Foxylucious!

bschhikara

I am using SMF 2 ...

waiting for a reply from experts.

I know there is solution to this.. (like the simplemachines.org is using it on its subdomains and main site) .... but how to do that ?


Nathaniel

Hmm, most of the time your subdomain will be stored on the same server, if that is so then you should be able to include the SSI.php file from the subdomain by using the correct server file path. Also remember that often a subdomain will actually be a folder within the main directory so you just need to access it.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

bschhikara

yes everything is on same server... SSI.php is included ... no problem.
Problem is with session...

You can check at www.indianscience.in/aboutus/

everything is displayed as it appear in ssi_examples.php except sessions. It is always showing for guests while the user is logged on forum.

I have attached a snapshot of the features configuration on forum.

I have one test forum installed on a folder of main directory. SSI.php from that also show similar session problem when used on other folder pages of same site.

A hint is required urgently.

bschhikara

I am waiting for valuable reply...... (Why SSI.php welcome function is not working outside the main folder of forum).

please............

lordtron


VainSoftGames.com - New Design To Gaming

bschhikara

it is

www.sciforum.indianscience.in

(I also have a test forum installed at www.indianscience.in/testsciforum)..

SSI.php session i.e. welcome function is not working outside these folders (sciforum and testsciforum (checked with both SSI.php))

lordtron

Just wondering but have you tried just using:
require_once(ssi.php)



VainSoftGames.com - New Design To Gaming

bschhikara


bschhikara

you can check that by

userid: arjun
passwd: jaunti

I have currently set require_once(ssi.php) ... check this folder

www.indianscience.in/aboutus

bschhikara

is there no solution this problem.... will any body assist please.

Angelotus

see www.weeklyfun.nl, http://stars.weeklyfun.nl and the forums at http://forum.weeklyfun.nl
I use ssi for maintaining the complete website, have some other scripts installed and integrated as well.

It is not so difficult.

See your ssi_examples.php file for how to integrate.

bschhikara

thank you for reply..

I am following the complete procedure..... still there is session problem only outside the forum folder.

Am I missing something for that ( I think I have made correct configuration setting in admin section as well, please check image attached in previous post).

Angelotus

Settings are correct, but try logging out, and delete your cookies. That will help!

bschhikara

thank you...

I tried that as well... but that is not working.

Is there any method to force the session to other folders (like some code for settings.php or something in ssi.php).

Is there any problem with the host settings.

I am not getting the things resolved.

Angelotus

Have you also tried to change the cookiename in your configuration? That will force users logging out and reset the session.

bschhikara

changed the cookiename then tried.

but not resolved the things. it is same as it was earlier.



Quote from: Angelotus on July 29, 2008, 02:39:30 AM
Have you also tried to change the cookiename in your configuration? That will force users logging out and reset the session.

Angelotus

That is really strange. I made up an account on your forums. Could you manually activate it, I can't receive email now.

bschhikara


Angelotus

checked. Can you turn of subdomain independent cookies please?


Angelotus

Still no match. I think it has to do with your host / server settings.

bschhikara

Thank you Angelotus,

I will ask server manager.. if they can help out.

Thank you for your support and giving your valuable time to me.

Bhupender


Quote from: Angelotus on July 29, 2008, 07:32:47 AM
Still no match. I think it has to do with your host / server settings.

metallica48423

is local cookies enabled? if so, turn them off and turn ON subdomain independent cookies
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Angelotus

He has tried that already, but didn't work.

metallica48423

likewise on  both forums? I seem to have a different session ID on both
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

bschhikara

earlier cookies name was same for both the forums... but now that has different cookies name (as suggested by Angelotus)...

Angelotus

Changing cookies will do for your forums and SSI pages.

metallica48423

the cookie names i believe need to be the same
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

bschhikara

but that as well has not solved the problem...

metallica48423

i didn't think it would, problem is that I certainly do not know what *is* causing it.

could you PM me an admin account on both sites so i can look at things?
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

bschhikara

I contacted to server peoples and told about this problem. They have not told me the reason and said that 'may be' because of some security settings. I donot know whether they have corrected (changed) it or not ... while testing for testsciforum.. I found it working when opened in same browser window (I only have changed the admin password, in case if worked).

But problem is still with the subdomain. I am changing the settings for subdomain forum (making similar to subfolder forum) and then will test and will let you know.

bschhikara

No it is not working for subdomain....

Angelotus

Maybe I have misunderstad for which I am sorry.
I thought you had one (1) forum installed and used SSI for subdomains. Now I understand you have two (2) forums installed?

bschhikara

yes ....

but I have to SSI.php from subdomain to rest of site (including subdomains).

metallica48423

so you're trying to integrate one site with two forums via SSI.php?  That would explain why you're running into session problems.

You should look at the tips & tricks board topic on sharing the database tables (notably the members and session table)

SSI.php is designed for site <--> forum integration, not forum <--> site <--> forum
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

bschhikara

No... you are not getting.

I have installed one test forum on subfolder (www.indianscience.in/testsciforum) (this forum is for testing purpose only and have separate database).

Another (main) forum is installed on Subdomain (www.sciforum.indianscience.in ) I have to use subdomain forum SSI.php for integration with rest of site (including other subdomains). thats it. I am using SSI.php from this forum only. I have problem with session when I am using SSI.php from this subdomain forum.

(for metallica48423 --- I have already sent you the admin id and password by message).

Angelotus

So, you just want to use SSI.php for only 1 forum. The other forums does not have to be integrated with the rest of your site?
Than I have no clue what is causing your troubles...

Could you attach your file where you use SSI.php?

bschhikara


Angelotus

Ok, try this one instead:

btw: where do u use that header.php???

Angelotus

I see it now. In your index.php (see my file attached) you have the line:

<? include

Replace that with

<?php include

bschhikara

I do replaced as you told...  (replaced with the new index.php file you attached).

still... not solved.

bschhikara

removed header.php from index.php .... only simple SSI.php functions are now index.php ... nothing else.

problem persists..

Please check now...

Angelotus

where did you placed the file, plaese post the url to it..

bschhikara

it is

www.indianscience.in/aboutus/index.php

ccbtimewiz

bschhikara, are you still having problems using the SSI.php file? From your link-- it appears to be functioning correctly.

SSI.php is designed for site forum integration, not a multitude of such.

bschhikara

It is not solved on the current server. It is same.

I do tested on a new domain (on new server)...with similar settings and subdomain & file location (www.sciforum.sciencelabs.in and www.sciencelabs.in/aboutus )... it is working fine without any problem.

But on the old serve it is as such.

It is mainly because of some server setting on old server which is causing this problem. I will have to change the server (may be near future). If you can tell me exact setting/permission on this server required (as the server people are asking about),  I will be saved from shifting the server.

thanks to all for support and time.

bhupender

Maceman

I'm having this same problem but on 1.1.5. I can only get user variables on files within the forum directory. On my top directory it always says they are guests.

metallica48423

Maceman - Please start a new topic for your issue.  Thank you.

bschhikara - It seems like something with the session is getting lost somewhere along the way... its hard to tell, its difficult to know if a specific setting is causing the issue, and especially WHICH setting.
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Advertisement: