Bridge Xoops-SMF 1.1 RC3 Beta 1

Started by Orstio, December 31, 2005, 03:18:57 PM

Previous topic - Next topic

X-Ception

Quote from: Orstio on February 08, 2007, 09:30:26 PM
It probably won't help, but it won't overwrite the session, either.
Ok thanks :P

any chance of a feature request ? xoops all way through the system uses a global post count, could you make SMF bump the global post count ?
Joolo.net social community and irc network / Yowzar - random subject forum

Orstio

Yes, I think that can be managed.  I was actually looking at that code a few days ago, and thought the same thing.  ;)

X-Ception

Quote from: Orstio on February 08, 2007, 11:48:10 PM
Yes, I think that can be managed.  I was actually looking at that code a few days ago, and thought the same thing.  ;)
knew there was a reason i liked ya ( j/k )

top man
Joolo.net social community and irc network / Yowzar - random subject forum

X-Ception

#523
curious, added the include line for ssi.php in my theme.html above the opening <html line, added the SSI board stats function and get

Parse error: parse error, unexpected '<' in /var/www/rest/of/path/here/class/xoopsblock.php(146) : eval()'d code on line 1


i added it as a php block FYI

edit
Changed it to a HTML block after brain clicked in but it shows no error ( with inline debugging on ) and does show the block but no content in the block :(
Joolo.net social community and irc network / Yowzar - random subject forum

computerworks

It looks like we have one final glitch that needs to be addressed.

Can you give some insight as to where to look?

XOOPS Install - www.mysite.com/web
SMF Install     - www.mysite.com/forum

1. Login thru the bridge module on the XOOPS home page...takes you to the forum, logged in OK
2. Return to XOOPS home, logged into XOOPS OK.
3. Return to forum and logout thru forum.
4. Return to XOOPS home, user is still logged in.

The only way for the user to fully log out of the site is thru the XOOPS logout.

Enable local storage of cookies is OFF
Use subdomain independent cookies is ON

I have three sites running, each on a different host.

Two have the XOOPS in a subdirectory (../web)... they both experience this problem.

One has XOOPS in the root of the domain...that one DOES NOT experience the problem..
..logging out of the forum logs the user out of XOOPS.



Orstio

It'll be in the bridge index.php, in the integrate_logout function.

It's pretty straight-forward:

function integrate_logout ($username)
{
global $xoopsConfig, $db_name;

mysql_select_db(XOOPS_DB_NAME);

$logout = mysql_query("
UPDATE ".XOOPS_DB_PREFIX."_session
SET sess_data = ''
WHERE sess_id = '" . $_COOKIE[session_name()] . "'");

setcookie($xoopsConfig['session_name'], '', time()- 3600, '/',  '', 0);

mysql_select_db($db_name);
}

computerworks

Thanks for the guidance.

This one is solved... the logout in XOOPS only completes when "Use Custom Sessions" is turned on in XOOPS config.

Can't see that control is well documented in XOOPS, but apparently, if unchecked, it relies on PHP for session control.

We are now 100% and can go live. Thanks again.

X-Ception

any idea on best practice for block additions ?


p.s cough sticky topic cough  :P
Joolo.net social community and irc network / Yowzar - random subject forum

RAdams

When I try to access the forum from the block or the admin module, it shows up ABOVE the xoops area, and when I login (it doesn't carry my login over) I get this error:

8: Only variable references should be returned by reference
File: /home/clanest/public_html/include/functions.php
Line: 493
Notice: Only variables should be assigned by reference in /home/clanest/public_html/class/database/mysqldatabase.php on line 239

Notice: Only variable references should be returned by reference in /home/clanest/public_html/class/database/mysqldatabase.php on line 351

Notice: Only variables should be assigned by reference in /home/clanest/public_html/class/database/mysqldatabase.php on line 239

Orstio


RAdams

Quote from: Orstio on March 12, 2007, 06:12:43 PM
Which version of Xoops?

Turns out I was using a few versions back. I reinstalled using the latest version from xoops.org [nofollow], and now the SMF login isn't even visible. I set the block to visible, but it never shows up! :( My path is set correctly. Any ideas?

guteres

How to get this module?
I can't find attach file in this post....

RAdams

Quote from: guteres on March 13, 2007, 12:06:32 PM
How to get this module?
I can't find attach file in this post....

It's at the bottom of the first post in this thread.

Lance_

Quote from: guteres on March 13, 2007, 12:06:32 PM
How to get this module?
I can't find attach file in this post....

Actually look in the Downloads section under Bridges.

beginnaz

Hiho,
First. : Im very Happy to find Simple Mashines.
I'm looking for a very long time a Community Script like this.
I've installed Version 2.0.16 of German Xoops. Found on hxxp:myxoops.de [nonactive] . And now the newest Version of SMF and the xoops bridge. Installation ok, but now i have a problem :

When i use the modules Adress of xoops the login give me an error. Can't login into SMF . It's the right Password, but can't login. The Login Screen starts ever i give up the Password.
The message after the third wrong login is:

8: Undefined index: ldap_users_bypass
Datei: /.../.../...../..../class/auth/authfactory.php
Zeile: 60

Can't find the Error please help me
and sorry about my english i'm learning :-)

nunomoc

Did someone manage to get this module working?
I've installed it a couple of times but I just can't get it to work.
My main website is something like this hxxp:www.mywebsite.com [nonactive] and the forum is hxxp:www.mywebsite.com/forum [nonactive]
I've already configurated correctly the address of the forum in the admin of the SMF XOOPS bridge module. I can see the forum link in the xoops website and when I click on it it goes to the forum as expected.
The problem is with the login. I'm the admin and I have the same username and pass in both places but it doesn't work on smf when I log in in the new login module of this bridge.
Am I missing something?

beginnaz

@nunomoc
go to xoops admin page. then to xoops blocks . look to the smf block as is checked to see on the xoops homepage. it is ? Yes ?
then go to xoops usergroups. mark all modules as you'll be seen in all groups.

hope it can help you.

for the other problem ask a profi... :-)
greetz

nunomoc

Quote from: beginnaz on April 03, 2007, 10:24:12 AM
@nunomoc
go to xoops admin page. then to xoops blocks . look to the smf block as is checked to see on the xoops homepage. it is ? Yes ?
then go to xoops usergroups. mark all modules as you'll be seen in all groups.

hope it can help you.

for the other problem ask a profi... :-)
greetz

Thanks, but I've already done that. I've activated the login block and gave permission to all users (guest included). The problem is that when I use the login block from the SMF bridge it only logs me in in Xoops and takes me imediatly to the forum (can't understand why). I want the block to log me in both sites (not only xoops) and I want the user to stay in the main page and not go automatically to the forum...

At the moment what happens is:

1- I log in at the login module from the bridge at my main site
2- I manage to do the login in xoops with success but the login module takes me automatically to the forum (don't know why) but does not log me in the forum.
3- I have to go back manually to the main site.
4- The only success I've had with this module is the link "Forum" at the menu that has been successfully added and works...

Orstio


beginnaz

@Orstio

hope you mean myself and of course my url is :
hxxp:www.wintechnics.net/modules/smf/ [nonactive] it's the bridge link
hxxp:www.wintechnics.net/newb/ [nonactive] is the standalone link to the smf forum
link isn't in xoops menu at the moment, cause the bridge isn't workx now

it is the same problem as "nunomoc" describe. login in xoops under my nick but no login in smf.
later i gave same nick in login smf module but have an error message like this : "wrong password"
return to login module smf automatically.
put in my nick again and have an error as you seen above.
the error appears only in bridge module modus, the standalone link to smf forum does work.

i took a look on class folder in xoops, but i'm an amateur and can't edit the authfactory.php, cause i couldn't find the error.

and yes of course i've read all what i have found about ldap error in search function but isn't working for me.

thx for interest in our prob.
greetz
b...z


Advertisement: