Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: Orstio on May 27, 2007, 08:39:39 PM

Title: Xoops Bridge Beta 2
Post by: Orstio on May 27, 2007, 08:39:39 PM
Please download it from the bridge downloads page:

http://www.simplemachines.org/download/?bridges

Unzip it, and upload the "smf" folder to your Xoops modules folder.  Install it in your Xoops administration panel as you would any other module.

Then configure the module, and make sure that the bridge login block is visible, and the default Xoops login is not visible.

There are no additional blocks with this release.

Thanks for your patience, bug reports, and feature requests.  While I did not get all of the features requested into this release, there are many bug fixes, and if it proves substantially more stable, I will continue with adding features.

This bridge is released under the terms ofthe Simple Machines license.  Please do not redistribute.
Title: Re: Xoops Bridge Beta 2
Post by: broham on May 28, 2007, 01:13:49 PM
Orstio, I am very pleased with your ongoing efforts.  I really like SMF and am happy there is a working bridge available to us.

Title: Re: Xoops Bridge Beta 2
Post by: phor on May 29, 2007, 09:31:12 AM
Got a charset problem:

Forum displays german "umlauts" well without the xoops bridge. Opening up SMF within the Bridge from Xoops... Umlauts aren't spelled correctly. I already tried to set different language settings within SMF but it seems as if the Xoops settings override the one of SMF. How do I get a "umlaut" capable Xoops+SMF site? :)
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on May 29, 2007, 09:55:13 AM
Have you tried changing the language/character set in Xoops?
Title: Re: Xoops Bridge Beta 2
Post by: phor on May 29, 2007, 10:12:46 AM
I just installed german language files and activated them in Xoops. My MySQL DB is UTF8 (includes Xoops and SMF tables)...
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on May 29, 2007, 12:14:33 PM
Can I see the URL?
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on May 30, 2007, 06:48:44 AM
Thanks for the URL.

Your page source shows that the page is rendering in ISO-8859-1:

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />

You'll need to change that in Xoops.
Title: Re: Xoops Bridge Beta 2
Post by: phor on May 30, 2007, 07:19:39 AM
Where do I change this best? Manually in a special file?
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on May 30, 2007, 06:08:47 PM
From what I can tell from the Xoops code, that is probably in your Xoops template.
Title: Re: Xoops Bridge Beta 2
Post by: phor on May 30, 2007, 06:28:05 PM
Within the theme.html files of each Template there is the line:

<meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />

In which file is $xoops_charset defined? Through the backend it seems as if I couldn't set the charset.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on May 30, 2007, 07:40:25 PM
Look in language/german/global.php for this:

define('_CHARSET', 'ISO-8859-1');
Title: Re: Xoops Bridge Beta 2
Post by: phor on May 31, 2007, 04:19:51 AM
Thanks, it works now :-)
Title: Re: Xoops Bridge Beta 2
Post by: broham on June 02, 2007, 01:36:45 PM
In the Xoops comments within modules, the poster's username is included with a link to their Xoops profile.  The url looks something like:  http://www.exampleURL.com/userinfo.php?uid=13

How might I change this to point instead to the SMF profile with a url more like this:
http://www.exampleURL.com/modules/smf/index.php?action=profile;u=13

For that matter, I'd like to get other url's pointing to smf, like the private messages (pmlite.php), and edit profile (editprofile.php).

Without a change like this, I have profile related url's like /userinfo.php being redirected to the homepage, since the xoops profiles are rather obsolete with SMF as the forum.

Please let me know if I ever ask for help that is more applicable to Xoops.org forums.  I know you're busy.  Thanks.
Title: Re: Xoops Bridge Beta 2
Post by: broham on June 10, 2007, 10:06:15 PM
Bueller?
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on June 10, 2007, 10:13:25 PM
You'll need to change the Xoops code to do that, or perhaps create alternative Xoops blocks to do it.
Title: Re: Xoops Bridge Beta 2
Post by: santral on June 11, 2007, 01:22:09 PM
sorry but I have a question about how to make bridge.....?
will we install only bridge files ???
or will we add bridge files to smf 1.1.2  then install ????
pls help ...
Title: Re: Xoops Bridge Beta 2
Post by: santral on June 11, 2007, 01:48:47 PM
I installed only bridge files and when I go  smf forum it goes blank page ?
Title: Re: Xoops Bridge Beta 2
Post by: broham on June 11, 2007, 03:56:37 PM
santral, you install your smf 1.1.2 on your site.  The bridge files get uploaded to your modules folder (modules/smf).  You install the bridge like any other xoops module.  Then, you configure the bridge by entering the path to your smf 1.1.2 in the bridge's admin area.  Make the bridge's login block visible on your top page, and the regular xoops login block not visible.  Also, allow your anonymous "Group" access to the login block and the smf module.
I suggest looking at the previous thread (http://www.simplemachines.org/community/index.php?topic=63183.600) for more info/answers.  The bridge really is great.  Good luck.
Title: Re: Xoops Bridge Beta 2
Post by: santral on June 12, 2007, 08:20:47 AM
thanks broham...
but  again some questions..
1-avatar or signature =they are diffrent in xoops and smf ???
can we make ony one profile page ..so when we change xoops avatar or signature  smf's  will change also....

2-when we write message in forum  it dosen't add xoops'user message number...???

3-search engine in xoops doesn't support smf ???

so how can we integrate the smf to xoops completelly???
Title: Re: Xoops Bridge Beta 2
Post by: santral on June 12, 2007, 09:05:49 AM
example of full integrated forum:
there is a module for xoops called xphpbbi 1.0.7

it s phpbb 2.0.22 forum for xoops =completelly integrated with xoops (like xoops own forum,,,etc. newbb)

I use xphpbbi 1.0.7  now and don't have any problem....
but
I want to use smf's full integrated forum like xphpbbi 1.0.7
...so can any body make smf like xphpbbi ???
Title: Re: Xoops Bridge Beta 2
Post by: broham on June 12, 2007, 09:11:42 AM
santral, you edited your post, but just in case, I think the answer to your original question about the white screen is your configuration in the bridge's preferences.  The path needs to be correct, or it doesn't know where the forum is you want wrapped.  A correct path should be something like: /home/example/public_html/exampleSMFforum

To address your post as it is now, I am trying to work through those issues myself, too.  I am not the expert here, only a user; be aware that Orstio is the bridge's developer.

On my site, I have made my Xoops user menu invisible and offlimits.  I have some Xoops url's redirected at the moment until I figure out what code needs to be changed to point them to SMF. 
Quoteso how can we integrate the smf to xoops completelly???
I guess that's what we're working toward, right?  It sounds like Orstio will continue to add features to the bridge with newer versions, so time will tell how or when everything is integrated.  I personally would rather use SMF with limitations instead of the "out of the box" xoops forums.
Title: Re: Xoops Bridge Beta 2
Post by: santral on June 12, 2007, 09:27:34 AM
ok..thanks broham ,)
and I think a bridge can't solve this problems...
we must edit xoops own files and some smf  files then we can install smf as a module ;)
I'm not the expert too..
but somebody could view xphpbbi and can integrate like this module....
so if somebody wants to analyse the xphpbbi ,and make a module like it for smf ,I can upload xphpbbi ....
thanks :)
Title: Re: Xoops Bridge Beta 2
Post by: broham on June 24, 2007, 06:21:38 PM
Quote from: Orstio on June 10, 2007, 10:13:25 PM
You'll need to change the Xoops code to do that, or perhaps create alternative Xoops blocks to do it.

I would love to do whatever it takes, but I am working blindly on it.  I don't know what code should change or be added to what or where. 

EDIT - Sorry, forget this post for now folks.  I will try a few more things with template files and hopefully I'll figure out what the code should be to point clicks on xoops profile links to the smf profiles.

I'll be back with this topic more later on, I think.  I have other meshing I'd like to solve with xoops and smf, too, and I will surely raise more issues in the near future.
Title: Re: Xoops Bridge Beta 2
Post by: seesoe on June 25, 2007, 01:31:14 PM
hello all i have been searching for solutions for my puzzle for a few weeks now, then it dawned on me that i can use this bridge to make things work out. let me explain my setup and what I'm doing.
we have 2 scripts
Xoops 2.0.16
and
RW:Scripts - download CMS 4.1

i run a movie website and my main script my whole site is run off of is xoops. however the download module (wf-downloads 3.2rc) is not exactly what I'm looking for for downloads pages. so i found (www.rwscripts.com) its a great script simple and loaded with features that are real handy for my application and all.

so i wanted to make my RW:Scripts CMS login run off of the xoops user db, but this doesn't work that easy. even though it has db login integration and writable plugins you can make, but i don't know how and i asked xoops professional site to make one and he said 800 bucks, so thats not an option to write a xoops plugin for Rw:scripts.

i found out that there was a smf plugin user login integrator for Rw:scripts and i have that now installed on there, so then i looked more and i found this thread and i was real happy, nice stuff.

so now i have
xoops trying to connect with smf and Rw;Scripts connections to smf thusly making xoops and Rw:scripts run off each other, in theory this should work.

my problem here is i can't get smf to run off of xoops user db, would this all work out? or will i have to have all the main users and registrations ran from the smf db?

I'm sorry for the long post but i really need help if anyone can
Title: Re: Xoops Bridge Beta 2
Post by: broham on June 25, 2007, 05:38:28 PM
I upgraded to SMF 1.1.3, hoping the bridge would not be affected.  Unfortunately, the bridge only signs in users to the forum and not xoops with SMF 1.1.3.  I uinstalled, downgrading back to 1.1.2.

Is it just me?
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on June 25, 2007, 06:10:23 PM
The upgrade to SMF 1.1.3 shouldn't have affected anything for you, especially not the Xoops login...
Title: Re: Xoops Bridge Beta 2
Post by: broham on June 26, 2007, 12:23:59 AM
That's not a good thing for me to hear, because the xoops login is the only thing affected.

With 1.1.3, logging in through the bridge only logs into the forum.  User is not signed into xoops side.  If I go ahead and log into the rest of the site with a xoops log in block... the SMF logout still works to log me out of the entire site.  It's just the login that does not work properly.

I go back to 1.1.2 and the bridge works great.
Title: Re: Xoops Bridge Beta 2
Post by: seesoe on June 26, 2007, 12:27:11 AM
im useing 1.1.3 smf and i get the same effect talked about above

your saying if i use 1.1.2 it will work proper? if so how would i downgrade?
Title: Re: Xoops Bridge Beta 2
Post by: broham on June 26, 2007, 12:14:15 PM
I wouldn't recommend downgrading, of course.  I don't know how you would downgrade either.  I am able to downgrade, because the patch is uninstalled in the package manager, reverting to 1.1.2.
This is only a temporary fix for me, because I obviously want to be current with 1.1.3.
I have tried several times, but logging in does not work for xoops with the bridge and 1.1.3.

In fact, if I put my xoops in maintenance mode and sign in as admin... then use the bridge login block to be signed into the forum, it logs me out of xoops.  This should indicate something, right?  But, I don't know what.

All I am sure of is the bridge works fine with 1.1.2 but not 1.1.3, and if I have a unique problem, I am in trouble.
Title: Re: Xoops Bridge Beta 2
Post by: santral on June 26, 2007, 12:57:40 PM
are there big differences between smf and phpbb with codes (in databases)???......
I love nearly full integrated phpbb module...
couldn't&nbsp; we&nbsp; make smf ,like this phpbb module ????
Title: Re: Xoops Bridge Beta 2
Post by: seesoe on June 26, 2007, 02:36:40 PM
Quote from: broham on June 26, 2007, 12:14:15 PM
I wouldn't recommend downgrading, of course.  I don't know how you would downgrade either.  I am able to downgrade, because the patch is uninstalled in the package manager, reverting to 1.1.2.
This is only a temporary fix for me, because I obviously want to be current with 1.1.3.
I have tried several times, but logging in does not work for xoops with the bridge and 1.1.3.

In fact, if I put my xoops in maintenance mode and sign in as admin... then use the bridge login block to be signed into the forum, it logs me out of xoops.  This should indicate something, right?  But, I don't know what.

All I am sure of is the bridge works fine with 1.1.2 but not 1.1.3, and if I have a unique problem, I am in trouble.
no its not u i have same thing i get logged out xoops when u login with the bridge block.

as of now and as for good my smf is not going to be used by my site users, just the scripts so  i can bridge 3 scripts to make 2 work together.

so im going to install 1.1.2
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on June 26, 2007, 10:04:33 PM
I can confirm this affects the Xoops sessions.  I'll see if I can make a work-around.
Title: Re: Xoops Bridge Beta 2
Post by: broham on June 26, 2007, 10:54:20 PM
Awesome, thanks.
Sittin' tight with SMF 1.1.2 in the meantime.
Title: Re: Xoops Bridge Beta 2
Post by: broham on June 27, 2007, 07:31:06 PM
The intention of this lengthy post is to share my little experience with SMF/Xoops, and I hope to help others with ideas as well as show that this integration can work.  I wish that more Xoopsers would use SMF and show enthusiasm so we may see continued help and support from such experts as Orstio, the bridge developer.
*I am using Xoops 2.0.16 and SMF 1.1.2, and I assume most or all of this will remain the same with the update to SMF 1.1.3 after Orstio resolves the sessions issue.
Of course, appropriate backups should be made of files, websites, and databases.
First, let's recap the basic procedures and settings that should apply to most of us when getting the bridge up and running.

• Upload the smf file to the modules folder.
• Go to Xoops admin, and install like any other module.
• Configure the modules preferences with the path to the smf directory, like /home/name/public_html/SMFdirectory - then,
choose to have the forum wrapped or not.
• In Xoops admin, configure your blocks.  Make the SMF login block visible, and the Xoops system login block invisible
(logging in MUST take place in the bridge login block to be signed into Xoops and SMF at the same time).
• In Xoops admin, configure groups permissions , making sure anonymous users have access to the SMF login block AND access
rights to the SMF module.  Do the same with registered users.  Admin should be fine by default, but double check.
• In Xoops admin, system general preferences, be sure you have custom sessions ON.

This should get you close to success, but now you need to check your SMF server settings.

Core Configuration
• Your forum url should be that of the SMF module
• Your path and Sources directory should be the actual stand alone forum

Feature Configuration
• Enable local storage of cookies - unchecked
• Use subdomain independent cookies - CHECKED
• Enable compressed output - unchecked
• Use database driven sessions - CHECKED

Now, with any luck, your bridge is functioning properly!  Test it out.  Create and register new accounts, and use them in the site.  Login, logout, change passwords, etc.

So, what about further integration?  I have modified a few things on my Xoops site and files to help mesh it all.  I do not advise you to do the same or claim any of it is necessary for YOU, but you might gain a few new ideas.
I do not have the Xoops User Menu visible, because those links do not point to SMF, and who wants multiple profiles for users?  The links in the User Menu can be changed, but I chose not to use it at all.
Also, I have redirected Xoops links that are no longer applicable, so users won't accidentally stumble upon them.  Here are my redirections:
/userinfo.php         -->  /modules/smf/index.php?action=profile
/user.php             -->  /modules/smf/index.php?action=register
/register.php         -->  /modules/smf/index.php?action=register
/viewpmsg.php         -->  /modules/smf/index.php?action=pm
/StandAloneDirectory  -->  /modules/smf
/StandAloneDirectory/ -->  /modules/smf
Might consider a redirection for /pmlite.php

Xoops comments include the poster's name and link to the profile, but the links point to the Xoops profile.  To fix this and have the link send you to the poster's SMF profile, I changed code in class/commentrenderer.php on line 340.
Replace:
$poster['uname'] = '<a href="'.XOOPS_URL.'/userinfo.php?uid='.$poster['id'].'">'.$com_poster->getVar('uname').'</a>';
With this:
$poster['uname'] = '<a href="'.XOOPS_URL.'/modules/smf/index.php?action=profile;u='.$poster['id'].'">'.$com_poster->getVar('uname').'</a>';
*Important: this only works when users have the same Xoops uid # as SMF u #.  Due to some test accounts, my numbers were off, and I had to change a few users' numbers in the database.  To be sure the numbers are the same for new registrations, I created a new user, and changed the Xoops uid to match the SMF, and now the numbers are the same again for new registrations.  That being said, this solution might not work effectively for some webmasters if the id numbers are not in sync.  When correctly in sync, all is well.

Another issue to resolve or work around is the user avatar and post count, in Xoops comments.  I am sure there must be a way to get these from SMF, but I am not sure how the code should be, so I improvised by simply removing the avatars and post counts.  I did so by altering code in /class/commentrenderer.php.
I commented out or deleted:
$poster['avatar'] = $com_poster->getVar('user_avatar');
and:
$poster['postnum'] = $com_poster->getVar('posts');
That removes the information.  Then, in /modules/system/templates/system_comment.html the applicable code (pretty straight forward) should be removed so there are no empty spots where the avatar and post counts once existed.

For logging out, the SMF logout works to log users out of the entire site.  We don't want users to have to be in the forum to logout though, so SSI comes in handy.  I created a new block with this code:
require_once('/home/name/public_html/StandAloneForumDirectory/SSI.php');
global $context, $settings, $scripturl;

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

}


else
{
ssi_logout();
}

$_SESSION['logout_url'] = 'http://www.mywebsite.com' . $_SERVER['PHP_SELF'];

I am sure not all of that code is needed for it to work.  We can make this block available to registered users only, or anonymous users can see it and use it as another login location.  Alternatively, this code can be placed in the Xoops theme.html wherever desired.  Put the call for SSI.php in the beginning of the theme file, and place the functions wherever you want...
The SSI feature is obviously useful, as we can read elsewhere in this forum, to include recent posts, who's online, and a welcome message.

There are still a few things to work out, but it's a pretty sweet collaboration between SMF and Xoops if you ask me.
One thing I have played around with recently is the idea to have a wrapped AND unwrapped forum available for users to choose from when they visit.  I have succeeded with this in the form of an iframe, but users can navigate out of the forum in the iframe, so that won't do.  I don't know if cloning the module would work?

This concludes my rambling.  I hope it helps a few people that actually read it.  I also hope some people can give ME better suggestions.  Hopefully this big post doesn't just get in everyone's way.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on June 27, 2007, 08:16:29 PM
Excellent!  Thanks for giving back to the community by sharing that, Broham.  :)
Title: Re: Xoops Bridge Beta 2
Post by: benbu75 on June 28, 2007, 02:07:45 AM
Hi, for reference to this issue, my site URL is http://balancekt.com and SMF is located at http://balancekt.com/forum

I am having some problems getting my bridge set up correctly.  I have the module settings configured, but when I go to the forum page, it seems like the background from the forums is there instead of the background from the Xoops theme.&nbsp;.&nbsp; The forum also seem to be off center in the frame.  Additionally, (and to be up front, I have absolutely no experience with PHP. My experience is limited to HTML, though I have dabbled in Microsoft SharePoint at work, which uses aspx.) I was not able to find the code that broham recommended modifying in class/contentrenderer.php.  Do I need a special editor for this, or will a simple text editor (notepad) suffice?

Thanks for the help though, the configuration advice that broham gave was very good, though I might suggest adding the site into the allowed list at Tools > Internet Options > "Privacy" tab > Sites if you are using Internet Explorer 7 and have your cookie settings set to anything but "Accept all cookies".  There may be a setting that makes this unnecessary, but I am new to both SMF and Xoops and was unable to find it.

Thanks in advance ;)
Title: Re: Xoops Bridge Beta 2
Post by: broham on June 28, 2007, 02:34:59 AM
@Orstio, my pleasure, wish I had more to offer.

@benbu75, at first glance, I think you need to edit your SMF style.css found in /SMFdirectory/Themes/default/style.css.  (make a backup)
It is probably css issues with either the smf theme css file, the xoops theme css file, or both.  Look at your margins or padding of smf.

How does it look if you use a different Xoops theme?
What version of Xoops are you using?  It says 2.0 in the footer.
Title: Re: Xoops Bridge Beta 2
Post by: seesoe on June 28, 2007, 02:35:21 PM
when i turn on custom session and try to log into the site i log in, i takes me to login redirect (thanks for logging in) and then goes back to the home page, but when i turned debug on through sql editing, and i was back into the site
Title: Re: Xoops Bridge Beta 2
Post by: broham on June 28, 2007, 02:49:18 PM
Quotethanks for logging in
That indicates you are not logging in through the SMF login block.  You're logging in through Xoops.
The bridge is made to work for integrated login when users use the SMF login block only.
Title: Re: Xoops Bridge Beta 2
Post by: seesoe on June 28, 2007, 03:00:06 PM
oops :D ya i have a static  login fields in my theme.html it should work after i update that code with the smf login block code
Title: Re: Xoops Bridge Beta 2
Post by: benbu75 on June 28, 2007, 07:10:58 PM
QuoteWhat version of Xoops are you using?  It says 2.0 in the footer

Version is 2.0.16
Title: Re: Xoops Bridge Beta 2
Post by: broham on June 28, 2007, 08:02:30 PM
The Xoops theme you are using is not a free download, so I can't offer to install it on my site to see if it looks the same with the forum or not.  Sorry.
I do think you should alter the background color of the smf default theme's style.css to transparent though.  The rest of the problem probably lies with your Xoops theme.  How do other modules display in the main content area? I only see the forum available.
Good luck.  :)
Title: Re: Xoops Bridge Beta 2
Post by: asdolo on June 29, 2007, 11:12:09 AM
hallo
i'm sorry but now the bridge works now?
Title: Re: Xoops Bridge Beta 2
Post by: benbu75 on June 30, 2007, 01:29:52 AM
Well, I did a little work on the appearance, and I have the module centered in the window now, and I took your advice and set the background to transparent, and that fixed that issue, but I am still having problems with everything else (text size, color, alignment, etc).  The problem, I think, is that if I just remove those properties from the CSS for SMF it will mess up the appearance of the forums.  I did get another theme for the forums that will go well with the xoops theme, but now I am getting this message again:

QuoteAn Error Has Occurred!
You were unable to login. Please check your cookie settings. 

Meaning I am, once again, unable to log into my forums and alter any settings there  :-\
Title: Re: Xoops Bridge Beta 2
Post by: benbu75 on June 30, 2007, 01:32:55 AM
Quote from: asdolo on June 29, 2007, 11:12:09 AM
hallo
i'm sorry but now the bridge works now?

well, it doesnt seem to be working for me, which means I may have to can either Xoops or SMF in order to find a combination that does work.  My coding ability is not nearly developed enough to figure this out alone.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on June 30, 2007, 06:56:23 AM
QuoteAn Error Has Occurred!
You were unable to login. Please check your cookie settings. 

Go to your stand alone forum (not through the Xoops module).

Login and go to the admin panel.

Click on "Server Settings".

What is the value in the field labelled "enable local storage of cookies" ?
Title: Re: Xoops Bridge Beta 2
Post by: broham on June 30, 2007, 12:42:43 PM
Quote
QuoteQuote
An Error Has Occurred!
You were unable to login. Please check your cookie settings.

Go to your stand alone forum (not through the Xoops module).

Login and go to the admin panel.

Click on "Server Settings".

What is the value in the field labelled "enable local storage of cookies" ?

Also note, if you have the same cookie name in SMF as in your Xoops, this may occur, as I have experienced.  Whether that makes sense or not, Xoops and SMF cannot have the same cookie name. 
No cookie name at all in SMF will also make that happen.


Quotebut I am still having problems with everything else (text size, color, alignment, etc).  The problem, I think, is that if I just remove those properties from the CSS for SMF it will mess up the appearance of the forums.  I did get another theme for the forums that will go well with the xoops theme,
Be careful with straying from the default theme. 
This may be of some use for changing some basic stuff in the smf css:
http://www.smfhacks.com/smf-theme-generator.html (http://www.smfhacks.com/smf-theme-generator.html)
Title: Re: Xoops Bridge Beta 2
Post by: JimKarvo on July 01, 2007, 08:49:58 AM
What I have to download? the xoops 2.0.16 version and what of the SMF forum?
Title: Re: Xoops Bridge Beta 2
Post by: asdolo on July 01, 2007, 06:40:31 PM
but then doesn' work with smf 1.1.3?

excuse me but which problem does it have?
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on July 01, 2007, 06:52:56 PM
Quotebut then doesn' work with smf 1.1.3?

excuse me but which problem does it have?

SMF 1.1.3 is destroying the Xoops session.
Title: Re: Xoops Bridge Beta 2
Post by: asdolo on July 04, 2007, 08:58:13 AM
i intended wich problem broadly speaking

regarding the registration process in xoops <---> smf is all ok?
Title: Re: Xoops Bridge Beta 2
Post by: broham on July 04, 2007, 04:30:44 PM
Quoteregarding the registration process in xoops <---> smf is all ok?
yes, it seems so.
Title: Re: Xoops Bridge Beta 2
Post by: asdolo on July 06, 2007, 08:15:42 PM
ok perfect
so what problem does it have? O__O
Title: Re: Xoops Bridge Beta 2
Post by: asdolo on July 06, 2007, 09:18:26 PM
i can't se login smf block in admin block ---- anonim user
Title: Re: Xoops Bridge Beta 2
Post by: Enigma on July 08, 2007, 05:07:45 PM
thanks for this updated bridge
Title: Re: Xoops Bridge Beta 2
Post by: script_fu on July 15, 2007, 11:57:23 PM
I cannot get this to work. I spent alot of the day going thru all the different info and settings with no luck. I went thru all the different settings by broham three times on two installs of xoops, smf & the bridge.

The first install was Smf 1.1.3.zip with all the above.
The second was Smf 1.1.2.zip the forum works fine on both versions in stand alone mode on both installs but when xoops wraps it I get a blank page.


Settings inside smf bridge/module

/home/mysite/public_html/forums/

PHP version 4.4.2
MySQL version 4.1.22-standard

Currant Install Setup
XOOPS 2.0.16.zip
Smf_1.1.2.zip
Smf bridge 1.1 beta 2.zip


When I rap the smf forum inside of the smf module/bridge it goes blank.

When I turn off the smf wrapper it go straight to the forums.

www.stangshop.com
www.stangshop.com/forums/

Have I missed something?

I must say im confused...
Title: Re: Xoops Bridge Beta 2
Post by: script_fu on July 16, 2007, 12:05:33 AM
I do have an error when trying to log into the smf block thru xoops.

8: Only variables should be assigned by reference
File: /home/mysite/public_html/kernel/user.php
Line: 186
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on July 16, 2007, 12:10:32 AM
QuoteWhen I rap the smf forum inside of the smf module/bridge it goes blank.

When I turn off the smf wrapper it go straight to the forums.

Does your SMF database user have access to your Xoops database?  Does your Xoops database user have access to your SMF database?
Title: Re: Xoops Bridge Beta 2
Post by: script_fu on July 16, 2007, 12:30:53 AM
I set this up with two seperate MySQL databases. One for Xoops and one for Smf. Both databases share the same user in the MySQL account maintenance thru my cpanel. 


Is this what you are asking about?

Edit: Spelling issues...
Title: Re: Xoops Bridge Beta 2
Post by: script_fu on July 16, 2007, 01:00:08 AM
Also I have the same user account and password on both xoops and smf.

How do I make sure they both have access and where? 
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on July 16, 2007, 07:08:16 AM
What control panel does your host provide?
Title: Re: Xoops Bridge Beta 2
Post by: script_fu on July 16, 2007, 08:12:42 AM
Quote from: script_fu on July 16, 2007, 12:30:53 AM
I set this up with two seperate MySQL databases. One for Xoops and one for Smf. Both databases share the same user in the MySQL account maintenance thru my cpanel. 

I have cpanel & whm...

Ty
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on July 16, 2007, 05:42:07 PM
OK, good. 

Go to your SMF admin panel.

Click on Server Settings.

Click on the Feature Configuration tab.

Make sure the box labelled "Enable compressed output" is unchecked.
Title: Re: Xoops Bridge Beta 2
Post by: aglioeolio on July 17, 2007, 11:12:17 PM
Quote from: asdolo on July 06, 2007, 09:18:26 PM
i can't se login smf block in admin block ---- anonim user

Go to Xoops Admin menu
>System
>>Groups
>>> Anonymous users - Option: Modify

You got it  8)

PS: I use the custom block by broham, so I didn´t test the default SMF login that comes with the module






thanks orstio for the bridge and broham for the precious tips
http://www.simplemachines.org/community/index.php?topic=173730.msg1141553#msg1141553

I´m using SMF 1.1.3 and Xoops 2.016 at xampplite on my PC (http://localhost/xoops) and worked like a charm with SSI login block


Title: Re: Xoops Bridge Beta 2
Post by: broham on July 18, 2007, 12:14:12 AM
I went to the url with /forums, and I got a 404 Not Found. but maybe you are doing something with the site right now?
QuoteWhen I rap the smf forum inside of the smf module/bridge it goes blank.

When I turn off the smf wrapper it go straight to the forums.

www.stangshop.com
www.stangshop.com/forums/

Have I missed something?

With SMF wrapped and it goes blank, what is the url?  What is the url when it is not wrapped going straight to the forum?
should be: http://www. yourxoops/modules/smf

In your SMF admin > Server Settings, what do you have set as the Forum Url? 
Best success if it is the url to the xoops bridge (the one above) and not the url to the stand alone SMF forum installation.
The paths beneath that should, however, point to the correct paths of the stand alone smf installation?

Also...
QuoteThe first install was Smf 1.1.3.zip with all the above.
The second was Smf 1.1.2.zip...
You're better off going with 1.1.2 for the bridge to work until Orstio updates the bridge.  The SMF update to 1.1.3 causes the bridge to have an issue with Xoops sessions being killed by the SMF session.
Good luck.


Title: Re: Xoops Bridge Beta 2
Post by: aglioeolio on July 18, 2007, 10:29:40 AM
Quote from: aglioeolio on July 17, 2007, 11:12:17 PM
I´m using SMF 1.1.3 and Xoops 2.016 at xampplite on my PC (http://localhost/xoops) and worked like a charm with SSI login block

oh well... now I tested the "default" SMF Login block from the bridge and noted that 'session bug' in (I´m using 1.1.3)
http://localhost/xoops/modules/smf/index.php - cant login anyway
with SSI block the brigdge isn´t needed, of course =/

I´ll wait then for orstio update to 1.1.3 when he have some time to fix it

thanks
Title: Re: Xoops Bridge Beta 2
Post by: runt on July 18, 2007, 10:52:50 PM
ok, this may sound odd but i got the bridge working but i need to know how to get my smf users into xoops
Title: Re: Xoops Bridge Beta 2
Post by: runt on July 20, 2007, 07:23:40 PM
Quote from: runt on July 18, 2007, 10:52:50 PM
ok, this may sound odd but i got the bridge working but i need to know how to get my smf users into xoops

is it not possible to do this?
Title: Re: Xoops Bridge Beta 2
Post by: aglioeolio on July 20, 2007, 07:53:00 PM
not yet, because its WIP

Quote from: Orstio on July 20, 2007, 09:13:45 PM
Quote from: runt on July 20, 2007, 07:23:40 PM
Quote from: runt on July 18, 2007, 10:52:50 PM
ok, this may sound odd but i got the bridge working but i need to know how to get my smf users into xoops

is it not possible to do this?

Yes, the users will be migrated to Xoops as they each login.

Sorry for the missinformation ???
Title: Re: Xoops Bridge Beta 2
Post by: runt on July 20, 2007, 07:55:29 PM
Quote from: aglioeolio on July 20, 2007, 07:53:00 PM
not yet, because its WIP

Quote from: orstioThen configure the module, and make sure that the bridge login block is visible, and the default Xoops login is not visible.

There are no additional blocks with this release.

Thanks for your patience, bug reports, and feature requests.  While I did not get all of the features requested into this release, there are many bug fixes, and if it proves substantially more stable, I will continue with adding features.



sadly it makes it close to worthless for me right now then (not saying you aren't working your ass off though).

mambo and xoops are out right now then (i can't stand mambo), joomla need to get their act together reguarding the gpl, guess i will wait then
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on July 20, 2007, 09:13:45 PM
Quote from: runt on July 20, 2007, 07:23:40 PM
Quote from: runt on July 18, 2007, 10:52:50 PM
ok, this may sound odd but i got the bridge working but i need to know how to get my smf users into xoops

is it not possible to do this?

Yes, the users will be migrated to Xoops as they each login.
Title: Re: Xoops Bridge Beta 2
Post by: Prof on July 22, 2007, 07:43:17 AM
It work with Xoops 2.2!!
Title: Re: Xoops Bridge Beta 2
Post by: broham on July 24, 2007, 12:06:28 AM
Quote from: runt on July 20, 2007, 07:55:29 PM


sadly it makes it close to worthless for me right now then (not saying you aren't working your ass off though).

mambo and xoops are out right now then (i can't stand mambo), joomla need to get their act together reguarding the gpl, guess i will wait then

Care to explain what you mean?  I'm not sure why you say it is worthless for you.  It bridges the two together.  No additional blocks are needed for that simple triumph to work.  I'm confused by this comment.  Maybe you have not gotten the bridge configured properly to see exactly what it does?
Title: Re: Xoops Bridge Beta 2
Post by: Kindred on July 25, 2007, 03:21:56 PM
Orstio,

I too am having the blank-page with the wrapped forum problem.

and the smf login module never shows up, despite being marked as visible.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on July 25, 2007, 03:28:22 PM
You wouldn't be able to give me admin access to Xoops and SMF, would you Kindred?
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on July 25, 2007, 03:53:51 PM
OK, thanks for the access.

Xoops works a little differently than other CMSs.  When you install a block, you not only need to make it visible, you also need to set the Groups access rights for the block.

So, you need to go to your Xoops admin panel, mouseover the System Admin icon, and choose Groups from the menu that appears.  Click on the Anonymous group (you'll want the block to appear to people who are not logged in).

On this page, you can select all blocks that appear/not appear for the Anonymous group.

As for the blank page, if you find this line in the bridge index.php:

$xoopsTpl->assign('smf_content', ob_xoopsfix($buffer));

And change it to this, does it work?

echo ob_xoopsfix($buffer);
Title: Re: Xoops Bridge Beta 2
Post by: Kindred on July 25, 2007, 04:13:43 PM
ok...

corrected the module display to allow anonymous users/guests to see it.

Your code corrected the blank page

now, when I try to login with the smf login module, I get
8: Only variables should be assigned by reference
File: /directory.../kernel/user.php
Line: 186

If I press <back>, this logs me in to xoops, but not to smf.
As a matter of fact, I CAN'T log into SMF at all, while in the xoops wrap.

(both dbs have access to each other, compressed output is off)
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on July 25, 2007, 04:23:46 PM
In your Xoops admin panel, mouseover System Admin, and choose Preferences.

Click the Edit link next to General Settings.

Make sure that Use Custom Sessions is set to Yes.
Title: Re: Xoops Bridge Beta 2
Post by: Kindred on July 25, 2007, 04:33:56 PM
now it's worse...   the smf login module no longer logs me in to either xoops or smf
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on July 25, 2007, 04:40:07 PM
Sigh -- Yeah, I just noticed you're using SMF 1.1.3.  1.1.3 wipes out the Xoops session cookie, and I haven't found a fix for it yet.  :(
Title: Re: Xoops Bridge Beta 2
Post by: Kindred on July 25, 2007, 04:41:48 PM
erk...

oops
hmmm....  how do I remove the custom sessions now? :)

edit- found it...
UPDATE `xoops_config` SET `conf_value` = '0' WHERE `xoops_config`.`conf_id` =53 LIMIT 1 ;

edit 2-

interesting... as sooon as I turned OFF the custom sessions, the XOOPS system recongized that I WAS logged in... (no additional action, just a refresh)
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on July 25, 2007, 04:48:15 PM
OK, your problem with the assignments by reference is in the kernel/user.php:

    function &getGroups()
    {
        if (empty($this->_groups)) {
            $member_handler =& xoops_gethandler('member');
            $this->_groups =& $member_handler->getGroupsByUser($this->getVar('uid'));
        }
        return $this->_groups;
    }


Should be:

    function getGroups()
    {
        if (empty($this->_groups)) {
            $member_handler = xoops_gethandler('member');
            $this->_groups = $member_handler->getGroupsByUser($this->getVar('uid'));
        }
        return $this->_groups;
    }
Title: Re: Xoops Bridge Beta 2
Post by: Kindred on July 25, 2007, 05:00:56 PM
interesting...


now it logs me into SMF but never into XOOPS

BTW: Existing SMF user (created in SMF) is not imported or recognized by XOOPS
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on July 25, 2007, 05:20:59 PM
Quotenow it logs me into SMF but never into XOOPS

Right.  That's because SMF is wiping out the Xoops session info.

I wonder, what if you did this instead:

    function getGroups()
    {
        if (empty($this->_groups)) {
            $member_handler =& xoops_gethandler('member');
            $this->_groups = $member_handler->getGroupsByUser($this->getVar('uid'));
        }
        return $this->_groups;
    }


QuoteBTW: Existing SMF user (created in SMF) is not imported or recognized by XOOPS

That is weird.  It should definitely be working...the code is there in integrate_login.
Title: Re: Xoops Bridge Beta 2
Post by: Kindred on July 25, 2007, 05:33:12 PM
I updated the function to that...
no effect - same situation log into SMF and not XOOPS.


Ok... this time it worked (porting a user)   I must have done something wrong the first time.
Title: Re: Xoops Bridge Beta 2
Post by: broham on July 27, 2007, 10:08:22 PM
Quoteno effect - same situation log into SMF and not XOOPS.
That's how it is with SMF 1.1.3.
All is well with SMF 1.1.2, but 1.1.3 kills Xoops sessions.  You will not resolve that issue with SMF 1.1.3 until Orstio finds the work-around.
Title: Re: Xoops Bridge Beta 2
Post by: HEB XI 1 on August 01, 2007, 08:13:14 PM
Quote from: broham on June 27, 2007, 07:31:06 PM
*I am using Xoops 2.0.16 and SMF 1.1.2

<snip>

• Upload the smf file to the modules folder.
• Go to Xoops admin, and install like any other module.
• Configure the modules preferences with the path to the smf directory, like /home/name/public_html/SMFdirectory - then,
choose to have the forum wrapped or not.
• In Xoops admin, configure your blocks.  Make the SMF login block visible, and the Xoops system login block invisible
(logging in MUST take place in the bridge login block to be signed into Xoops and SMF at the same time).
• In Xoops admin, configure groups permissions , making sure anonymous users have access to the SMF login block AND access
rights to the SMF module.  Do the same with registered users.  Admin should be fine by default, but double check.
• In Xoops admin, system general preferences, be sure you have custom sessions ON.

This should get you close to success, but now you need to check your SMF server settings.

Core Configuration
• Your forum url should be that of the SMF module
• Your path and Sources directory should be the actual stand alone forum

Feature Configuration
• Enable local storage of cookies - unchecked
• Use subdomain independent cookies - CHECKED
• Enable compressed output - unchecked
• Use database driven sessions - CHECKED

I was under the impression that 1.1.2 works fine with this bridge??

I had SMF 1.1.3 ... had problems, found this thread and thought 1.1.2 would do the trick, so I deleted 1.1.3 and installed 1.1.2 instead (initial web setup - no members/posts, so no biggie)

Went thru and did as broham outlined - step by step ... still get a blank content section when trying to wrap Xoops around SMF, and still get weird login stuff on SMF when not wrapping - like when I'm in the admin section it asks for my password after clicking save on whatever settings page I'm on.

Is there something I'm missing?  This is all a fresh install of everything ... brand new site, not yet live ... blah blah.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on August 01, 2007, 08:17:10 PM
A URL is helpful.

The need to continuously login in the admin panel usually indicates an incorrect setting in SMF regarding local storage of cookies or subdomain independent cookies or database driven sessions.
Title: Re: Xoops Bridge Beta 2
Post by: lesterspiff on August 06, 2007, 06:14:24 PM
I'm on 1.1.3 and having these same problems. I tried to find a download of 1.1.2, but the site won't let me get it.

I got the smf login block to show up on the front page and it allows the login to smf but not xoops. I looked in the index and it says
Quoteecho ob_xoopsfix($buffer);
but I still get a blank page when I try to wrap the forum in the xoops template. There's no problem if I don't wrap.
Title: Re: Xoops Bridge Beta 2
Post by: lesterspiff on August 07, 2007, 10:01:51 PM
I finally got the site to allow me to download 1.1.2 through wget and installed it, but I still can't get SMF to wrap into xoops.

I have triple checked all the stuff in broham's instructions and gone over all the stuff in the replies to kindred and I still can't get it to log me into either system. When I log into the forum at the forum's address it works fine, but on /modules/smf with the wrap turned off, it says my password is incorrect. I went successfully through the forgotten password process, but it still won't let me log in to smf and because of that I never make it into xoops.

I can't tell if there is something still wrong with my session settings, but AFAIK I have tried everything suggested on this thread.

There are 3 basic situations here:
Title: Re: Xoops Bridge Beta 2
Post by: Efsane - Yorumcuyuz.NET on August 07, 2007, 10:21:57 PM
thank you
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on August 07, 2007, 10:30:13 PM
Quote from: lesterspiff on August 07, 2007, 10:01:51 PM
I finally got the site to allow me to download 1.1.2 through wget and installed it, but I still can't get SMF to wrap into xoops.

I have triple checked all the stuff in broham's instructions and gone over all the stuff in the replies to kindred and I still can't get it to log me into either system. When I log into the forum at the forum's address it works fine, but on /modules/smf with the wrap turned off, it says my password is incorrect. I went successfully through the forgotten password process, but it still won't let me log in to smf and because of that I never make it into xoops.

I can't tell if there is something still wrong with my session settings, but AFAIK I have tried everything suggested on this thread.

There are 3 basic situations here:

  • Login through the smf login box on xoops front page: "An Error Has Occurred! You were unable to login. Please check your cookie settings. "
  • Login through site/modules/smf: "Password incorrect"
  • Change site url on smf back to site/forum and login there: everything OK


Can we see a URL?
Title: Re: Xoops Bridge Beta 2
Post by: lesterspiff on August 07, 2007, 10:33:13 PM
Only on an IP now, but it's http://209.235.214.38

SMF is at http://209.235.214.38/forum
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on August 08, 2007, 06:58:41 PM
What did you use as your path to SMF in the bridge config?
Title: Re: Xoops Bridge Beta 2
Post by: lesterspiff on August 08, 2007, 11:52:12 PM
the full path to the forum dir all the way up from root: /var/www/BR/public/htdocs/forum/

htdocs is the apache root folder for the xoops files and the forum directory

The login box and the "SMF Module for Xoops" both take me there when wrap is off, but the login won't take when going in through xoops. I'd also like to figure out how to get the wrap working if possible.

If you want to try logging in I can PM you with a temporary admin password if it would make it easier for you.
Title: Re: Xoops Bridge Beta 2
Post by: lesterspiff on August 09, 2007, 01:43:42 AM
Here's something else that's a little weird. I changed the SMF cookie name and cleared out my cookies, but I think this probably would have happened before:
When I enter a user that doesn't exist, I get Database Error: Table 'BR_xoops.smf_members' doesn't exist
File: /var/www/BR/public/htdocs/forum/Sources/LogInOut.php
Line: 213

The xoops DB is called BR_xoops and the SMF DB is BR_smf, both have the same user privs
I checked Settings.php in SMF and Mainfile.php in xoops and the config file in the SMF bridge module directory and there doesn't seem to be any reason anything would assume the smf_members table would be in the Xoops database.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on August 09, 2007, 05:51:47 AM
What control panel did your host provide for you?
Title: Re: Xoops Bridge Beta 2
Post by: lesterspiff on August 09, 2007, 12:00:08 PM
I'm administering a linux/apache server directly through SSH and PhpMyAdmin, no control panel.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on August 09, 2007, 07:23:41 PM
And you are absolutely sure that both database users have access to the other database?  Or perhaps, like with Plesk, there are two database users with the same name and password, but they are considered two distinct users by the system?
Title: Re: Xoops Bridge Beta 2
Post by: lesterspiff on August 09, 2007, 08:23:31 PM
Both databases are set up for the same user on localhost. The output from mysql shows only one user with that name/domain combination. I reloaded mysql's privileges and it hasn't changed anything.

If I put anything random in the username field of the SMF login block for xoops, and leave the password blank, I get the forum saying "You didn't enter your password". If I do the same with something in the password field, I get the error where it's trying to use the wrong database.
If I enter the administrator username it tries to authenticate the user, but says I can't log in and to check the cookie settings. But if I go to the actual forum address, It has logged me in. It just won't read the cookie or session variable that says I'm logged in while I'm using the bridge.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on August 09, 2007, 08:46:20 PM
For the cookie settings issue, make sure that "Enable local storage of cookies" is turned off in SMF.
Title: Re: Xoops Bridge Beta 2
Post by: lesterspiff on August 09, 2007, 08:57:41 PM
It's off. Like I said before, I made sure I was doing everything exactly as it's described in Broham's post on page 2 of this thread before posting my problem.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on August 09, 2007, 10:14:38 PM
What is your setting for subdomain independent cookies in SMF?
Title: Re: Xoops Bridge Beta 2
Post by: Irc_Sandman on August 14, 2007, 06:32:53 AM
Hiyas, I've used SMF before heaps of times and i love it. I just tried the Bridge out and it's kewl. One problem though... this is what I did......

I installed it as normal, gave the proper access permissions via the XOOPS admin area and as I logged in with a couple of accounts, the follwoing happened....

When i logged in with the admin account, it worked, but then i forgot to logout from that before logging in with a test account, and as i logged in with the test account, it took me to the forums under the admin account name. Is this just because I'm using the same browser session? I mean there isn't a security risk??

Also, once i logged out of the admin account, I logged in with the test account which has been on my xoops for ages, but the SMF said that there is no such user....it's not recognised in the SMF... how do I get the SMF to recognise current XOOPS members?? Both the SMF and XOOPS are on different DB's... do I need to have them both on the same DB but with different prefix's or somethin?

sorry if i'm a bit unclear on this, i've got hte flu atm and i'm all over the place lol. ty in advance :)
Title: Re: Xoops Bridge Beta 2
Post by: Irc_Sandman on August 14, 2007, 08:21:36 PM
hi again, i thought someone may have replied , anyway.....the main thing i need to know is how do i get SMF to recognise current XOOPS members ?

I logged in with a current test account and SMF didn't recognise it. ty in advance again.
Title: Re: Xoops Bridge Beta 2
Post by: Irc_Sandman on August 15, 2007, 02:39:20 AM
Hi again, I just tried something, I registered the test account in the SMF with same name and pass, then logged in via the SMF login bridge block, it logged me into the XOOPS and SMF , when i logged out of the SMF it logged me out of XOOPS, BUT... when i logged out from XOOPS side, it still had me logged in to the SMF. Then when I logged in to XOOPS side with my admin account, it took me to the SMF but as the other test account. I'm lost and i'm getting annoyed with it all. Can someone help plz? ty in advance.

Should I just install SMF 1.1.2 on the same database as XOOPS and see what happens? or maybe i should just tell users if they wanna use the smf forums, they'll have to log in an extra time . i'm lost.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on August 15, 2007, 06:00:27 AM
QuoteBUT... when i logged out from XOOPS side, it still had me logged in to the SMF.

That is correct.  Xoops has no way to tell SMF that the user logged out.  Unpublish the logout link in Xoops.
Title: Re: Xoops Bridge Beta 2
Post by: Irc_Sandman on August 15, 2007, 06:21:27 AM
yep that's what I was thinking of doing regarding the logging out problem. thanks :)

Any idea on how I can get the SMF to recognise current XOOPS users without getting the current XOOPS users to register in SMF with their same name and pass?
Title: Re: Xoops Bridge Beta 2
Post by: Irc_Sandman on August 15, 2007, 10:06:09 PM
Another problem I've encountered.....

I tried to register a new account from the SMF Bridge login block from XOOPS front end... it registered the account within SMF, but did not recognise it in XOOPS, either as an inactive user or after i'd activated it.

Once i registered and activated the test account, I was logged into SMF, i went back to the XOOPS front page and it showed me as a guest. I double checked the XOOPS users list and the test account isn't there. I'm lost. Any ideas ?????
I really want to use SMF with XOOPS but this is really annoying me. Anyway thanks in advance again :)
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on August 16, 2007, 06:11:10 AM
I think you are confusing registration and login.  They are two very different things.

Registration is creating a new user.  Login is logging an existing user into the system.
Title: Re: Xoops Bridge Beta 2
Post by: broham on August 18, 2007, 05:32:22 PM
Quote from: Irc_Sandman on August 15, 2007, 10:06:09 PM
I tried to register a new account from the SMF Bridge login block from XOOPS front end... it registered the account within SMF, but did not recognise it in XOOPS, either as an inactive user or after i'd activated it.

Once i registered and activated the test account, I was logged into SMF, i went back to the XOOPS front page and it showed me as a guest. I double checked the XOOPS users list and the test account isn't there. I'm lost. Any ideas ?????
I really want to use SMF with XOOPS but this is really annoying me. Anyway thanks in advance again :)

Irc_Sandman, did the test account get activated through an activation email or by the admin?  Also, are you using Xoops 2.0.16? 
The users first sign in after completing registration and activating should pass the information into Xoops and successfully log into both.  If that isn't happening for you, you'll need to play with settings.
Title: Re: Xoops Bridge Beta 2
Post by: Irc_Sandman on August 21, 2007, 02:48:25 AM
Hi :)

I'm using XOOPS 2.0.16.

I created the test account via email. I had logged in to xoops with it, and it showed me as logged in in the SMF 1.1.2 but when i went back to xoops it showed me as logged out.

Anyway I've updagted the forums to SMF 1.1.3 now and apparently that isn't working correctly with SMF 1.1.3 is that right ?

so at moment i've got the main xoops site and my SMF forums separate until the bridge can recognise SMF 1.1.3
Title: Re: Xoops Bridge Beta 2
Post by: xkiller213 on September 01, 2007, 12:51:45 AM
hey all... i'm having some problems with Xoops 2.0.17 and SMF 1.1.3

When i try to login with my SMF username/password in Xoops they tell me
QuoteSorry, you don't have the permission to access this area.

If the page does not automatically reload, please click here

anything can be done?
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on September 01, 2007, 08:03:27 AM
The bridge page needs to be viewable by Anonymous users.
Title: Re: Xoops Bridge Beta 2
Post by: xkiller213 on September 02, 2007, 09:51:51 PM
hmm... that has so far solved my problem.. but next problem... the bridge login logs me into SMF but not into xoops...
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on September 02, 2007, 09:55:31 PM
Yes, SMF 1.1.3 kills the Xoops session.   This has been posted in this topic several times already.

I may have a solution where SMF uses the Xoops authentication system, but it has not yet been tested.
Title: Re: Xoops Bridge Beta 2
Post by: xkiller213 on September 02, 2007, 10:09:42 PM
oh... ok... so i'll wait for you to release a new version for us :) anyway thanks for the quick reply!
Title: Re: Xoops Bridge Beta 2
Post by: broham on September 09, 2007, 09:59:21 PM
Quote from: Orstio on September 02, 2007, 09:55:31 PM
I may have a solution where SMF uses the Xoops authentication system, but it has not yet been tested.

I'm looking forward to this solution, too...
Title: Re: Xoops Bridge Beta 2
Post by: GC on September 13, 2007, 09:00:31 PM
Will this be available any time within the next 10 days?
Title: Re: Xoops Bridge Beta 2
Post by: ananda on September 16, 2007, 12:41:30 PM
Dear Orstio
thanks for your nice work
Im Hari from belgie
I have smf im root,
Last southbridge installed,
im admin xoops 2.017 
Wrap SMF in the Xoops template? yes
When I do this please take a look,, at:
http://www.light4all.be/content/modules/smf/
when not wraped in xoops it goo's directley to smf
When I make a debug,, it tells next,,,,,,
SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smf_index.html') ORDER BY tpl_refid
Error number: 1146
Error message: Table 'light4all_be_-_smf.xoops_tplfile' doesn't exist
<<<<<<<<
what to do please,
kindley your help
thks
hari
Title: Re: Xoops Bridge Beta 2
Post by: ananda on September 16, 2007, 01:45:39 PM
Dear Orstio
forget to say, smf is the old one 1.1.2 have downgraded the 1.1.3,,
if enyone can help
thankss
SELECT * FROM xoops_tplfile WHERE (tpl_tplset = 'default' AND tpl_file = 'smf_index.html') ORDER BY tpl_refid
Error number: 1146
Error message: Table 'light4all_be_-_smf.xoops_tplfile' doesn't exist

I have in the xoops database table this
      2884 172 smf default smf_index.html   1189964028 0 module
      2885 500 smf default smf_block_login.html Shows integrated login
But in database smf no xoops tpl file
what to do???
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on September 16, 2007, 05:28:28 PM
Does your SMF database user have access to your Xoops database?
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on September 17, 2007, 06:40:58 AM
Quote from: Orstio on September 16, 2007, 05:28:28 PM
Does your SMF database user have access to your Xoops database?
Title: Re: Xoops Bridge Beta 2
Post by: Kindred on September 17, 2007, 11:10:06 AM
the XOOPS database user MUST have access to the SMF database, and vice-versa
Title: Re: Xoops Bridge Beta 2
Post by: Kindred on September 17, 2007, 05:46:42 PM
ananda,

you seem to be missing the point.
You have a problem.
You were asked:
Quote from: Orstio on September 17, 2007, 06:40:58 AM
Quote from: Orstio on September 16, 2007, 05:28:28 PM
Does your SMF database user have access to your Xoops database?
you repsonded:
Quote from: ananda on September 17, 2007, 07:01:09 AM
Does your SMF database user have access to your Xoops database? NO,,,,,,,,,
I told you:
Quote from: Kindred on September 17, 2007, 11:10:06 AM
the XOOPS database user MUST have access to the SMF database, and vice-versa

This will not get resolved until you use your SITE/HOST CPANEL to give your smf and xoops database users access to each other's databases
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on September 18, 2007, 06:15:07 AM
What control panel does your host provide?
Title: Re: Xoops Bridge Beta 2
Post by: ananda on September 18, 2007, 08:05:57 AM
Quote from: Orstio on September 18, 2007, 06:15:07 AM
What control panel does your host provide?
I think it is a apache 2.0 webserver, with mysql,,
https://194.26.24.106:19638/webhost/services/virtualhosting/siteadmin/
is this what you mean??
thanks
hari
Title: Re: Xoops Bridge Beta 2
Post by: ananda on September 18, 2007, 08:12:04 AM
Welkom op phpMyAdmin 2.6.0-pl3
MySQL 4.1.11-standard draait op localhost als light_admin@localhost
Title: Re: Xoops Bridge Beta 2
Post by: ananda on September 18, 2007, 08:42:27 AM
Make sure the box labelled "Enable compressed output" is unchecked is not helping??
and We use Ensim Pro-controlpanel is not a C panel.
MySQL 4.1.11-standard draait op localhost als light_admin@localhost
thanks for help
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on September 18, 2007, 09:45:41 PM
QuoteWe use Ensim Pro-controlpanel is not a C panel.

Very good.

You will need to install SMF and Xoops in the same database.  The Ensim control panel does not allow multiple databases for the same database user.
Title: Re: Xoops Bridge Beta 2
Post by: ananda on September 23, 2007, 09:45:44 AM
Dear Broham,
can you please tell me, where specific you have changed this links?? in wich php files in xoops,
would be a great help
thanks
hari belgium
Also, I have redirected Xoops links that are no longer applicable, so users won't accidentally stumble upon them.  Here are my redirections:
/userinfo.php         -->  /modules/smf/index.php?action=profile
/user.php             -->  /modules/smf/index.php?action=register
/register.php         -->  /modules/smf/index.php?action=register
/viewpmsg.php         -->  /modules/smf/index.php?action=pm
/StandAloneDirectory  -->  /modules/smf
/StandAloneDirectory/ -->  /modules/smf
Might consider a redirection for /pmlite.php
Title: Re: Xoops Bridge Beta 2
Post by: Kindred on September 23, 2007, 07:19:54 PM
ananda... how are you redirecting those?

If you are using a .htaccess redirect, then you are setting yourself up for trouble in the future...
Title: Re: Xoops Bridge Beta 2
Post by: ananda on September 24, 2007, 04:02:21 AM
Quote from: Kindred on September 23, 2007, 07:19:54 PM
ananda... how are you redirecting those?

If you are using a .htaccess redirect, then you are setting yourself up for trouble in the future...
thanks for your help,
please im not a IT man, can onley say,, that till now every thing is done by xoops proggie,,
so what to do???
thank you


Title: Re: Xoops Bridge Beta 2
Post by: ananda on September 26, 2007, 10:37:19 AM
Hello,
today
Quote from: Orstio on September 18, 2007, 09:45:41 PM
Quote
today I've try the upgrade 1.1.4 smf  same problem as 1.13
so back to 1.12  there exist onley one problem,
when users login in the smf block on my xoops site, every thing is oke.
when users login in the /modules/smf/ guest login ,, problems,, not as member in xoops
when users login in the username option last rows of the page,,, (gebruikersnaam) paswd (paswoord) they are also in as member in xoops??
Is it possible to hide the guest login somewhere?? look please at  http://www.light4all.be/content/modules/smf/index.php
or other option??
thanks
hari
Title: Re: Xoops Bridge Beta 2
Post by: Kindred on September 26, 2007, 11:31:39 AM
I think that members must use the XOOPS/smf login module in order to be logged into both systems
Title: Re: Xoops Bridge Beta 2
Post by: ananda on September 26, 2007, 11:39:53 AM
Quote from: Kindred on September 26, 2007, 11:31:39 AM
I think that members must use the XOOPS/smf login module in order to be logged into both systems

that's correct what you say,
but ,,, when they make a wrong login, the page go's to  http://www.light4all.be/content/modules/smf/index.php?action=login2
please see this link,, and when a member again try to login on this page,, he is not in the xoops.........


and only the last line of this file,, is ok for a user,, http://www.light4all.be/content/modules/smf/
look for the differend,,,
thanks
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on September 26, 2007, 07:52:51 PM
What did you use as the path to SMF in your bridge config?
Title: Re: Xoops Bridge Beta 2
Post by: ananda on September 27, 2007, 04:12:35 AM
Quote from: Orstio on September 26, 2007, 07:52:51 PM
What did you use as the path to SMF in your bridge config?

/home/virtual/site53/fst/var/www/html/smf
thanks
Title: Re: Xoops Bridge Beta 2
Post by: ananda on September 27, 2007, 12:28:11 PM
Dear Orstio,
Question,
as members log in ... block in xoops,.... and they make a wrong name or pswd,,,,,,,,,,
Is t possible to make a rederection that is going back to the xoopslogin block,
instead of mywebsite/modules/smf/  ????
that solved much problems like I wrote before,,,


I have changed the smf block_login  line ...../modules/smf/index.php?action=login2 to
/modules/smf/index.php   
but is solved not the problem I wrote before,,,,

Title: Re: Xoops Bridge Beta 2
Post by: Kindred on September 27, 2007, 12:37:39 PM
randomly changing lines of code that redirect things is not going to fix your problem and/or will cause other problems
Title: Re: Xoops Bridge Beta 2
Post by: ananda on September 27, 2007, 05:03:04 PM
Quote from: Kindred on September 27, 2007, 12:37:39 PM
randomly changing lines of code that redirect things is not going to fix your problem and/or will cause other problems
thank you,, you are right ofcourse,,,
my knowledge is not php and moduls, bridges,,
I have deeply respect for people of orstio and others,
but understand, we are depending of him , you and others who have the knowledge,
I hope that you will find solutions
thank you
deepeest respect,
ananda
Title: Re: Xoops Bridge Beta 2
Post by: Nozema on September 28, 2007, 04:44:04 AM
When i make a block for the log out button I only see it as text, I've tried all the option, html gives text, php blank and auto format also text. I'm not that familiar with Xoops, just trying it out if it fits my needs ;)

Code:

require_once('/home/name/public_html/StandAloneForumDirectory/SSI.php');
global $context, $settings, $scripturl;

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

}


else
{
   ssi_logout();
}

$_SESSION['logout_url'] = 'http://www.mywebsite.com' . $_SERVER['PHP_SELF'];
Title: Re: Xoops Bridge Beta 2
Post by: ananda on September 28, 2007, 09:48:38 AM
Quote from: Nozema on September 28, 2007, 04:44:04 AM
When i make a block for the log out button I only see it as text, I've tried all the option, html gives text, php blank and auto format also text. I'm not that familiar with Xoops, just trying it out if it fits my needs ;)

dear nozema
what I have done,, till sofar,
in xoops delet the sfm login block

in xoops smf template I have changed the smf block_login  line ...../modules/smf/index.php?action=login2 to
/modules/smf/index.php   
I have installed a nice theme ApolloBB and have maked some change.
eg delete the inlog link and some others...
So when a user is going to my xoops page,,
http://www.light4all.be/content/modules/smf/  and nicely give in his id and paswd,,
he is in as member in smf and in xoops,
evenso when he logged out member is evenso logout in smf and,,,, XOOPS
good luck
ananda



Title: Re: Xoops Bridge Beta 2
Post by: Nozema on September 28, 2007, 11:47:11 AM
Thanks, but that is not what I want, my current site has a login just like the smf login block and when you login you're also logged in SMF (it is a Mambo site, also with the bridge from Orstio). I want to keep that, it must be possible to create your one block with some PHP language? The blocks from modules are too.

Edit:

I got is working as following (don't ask me why it works then, but it works...)
I've made a new PHP block and put the code in it. When you press example (I think it says that, I'm using the dutch version) it goes blank. Save it. Then open it again and put <?php on the first line at the bottom you place ?> these are tags that Xoops place automatically but I think it isn't working very well.
Save again and open again, remove the tags from above and now it works, at least it did on my Xoops 2.0.17 site.
Hopefully this is usefull for someone or maybe someone could tell em what I do wrong?
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on September 29, 2007, 06:23:36 AM
I'm assuming you are using the Xoops admin panel to attempt to create a block with this functionality?

I don't  think the Xoops block creation in the admin panel was ever intended for such an extended application.
Title: Re: Xoops Bridge Beta 2
Post by: Nozema on September 29, 2007, 08:31:26 AM
Oh, ok! It works though. I get a login block when not logged in and a logout text when you're logged in. I doesn't work yet but I'll try to figure it out, cant't connect to database it says when trying to log in.

With your bridge Orstio I don't have any problems to log in... Strange...

Is it better though to have SMF and Xoops in one database? I now have two seperate databases, I'll merge them together and see if that works better

edit:
I've been trying some things for a while:
When I publish my "self made" logout/login button my forum doesn't work anymore, It says:
QuoteConnection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.
When I unpublish it, my forum works again, can't figure out why this happens, someone any ideas? I'm using the wrapped version.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on September 29, 2007, 02:54:47 PM
It's because you have SMF and Xoops installed in separate databases, and your block doesn't switch between them.
Title: Re: Xoops Bridge Beta 2
Post by: Nozema on September 30, 2007, 03:58:15 AM
I've already put the SMF dbase in my Xoops dbase, so that couldn't be the problem anymore. And I'm sure that it is one dbase because I've deleted the SMF. Already deleted temp internet files and cookies, also no effect.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on September 30, 2007, 07:07:54 AM
In your module, you will need to global all the variables used in SSI.php.
Title: Re: Xoops Bridge Beta 2
Post by: Nozema on September 30, 2007, 09:02:15 AM
I've put all the variables in my homemade block, no effect. The login does work, logout doesn't ->session check error, for some reason the text after sesc= is different and thats why I can't logout.

But when I click on the wrapped forum I get the message can't connect to dbase. When I unpublish my homemade block it works again.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on September 30, 2007, 09:48:08 AM
Oh, I see.  You are using ssi_login and ssi_logout functions.

Those functions won't exist on the forum page.  SSI and SMF can't exist on the same page, so you can't use pure SSI calls on a SMF page.
Title: Re: Xoops Bridge Beta 2
Post by: Nozema on September 30, 2007, 10:02:56 AM
I don't get that, sorry I'm not that familiar with Xoops and certainly not php, only trying things out!

When I call ssi_welcome() it works, it shows My name and my personal messages but I can't ga to the forum anymore, only when I unpublish my selfmade block. Is that because I call SSI?

Because I see how much PM I have, some things do work, I have the idea that there must be a way around this!

Thanks for your help btw Orstio, great work on this bridge! I'm using your other bridge on my Mambo site, works great!
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on September 30, 2007, 11:08:11 AM
QuoteIs that because I call SSI?

Yes.
Title: Re: Xoops Bridge Beta 2
Post by: Nozema on October 01, 2007, 01:43:20 AM
Orstio, got it working by putting the call for SSI in the header.php. And because of your bridge the "selfmade" login/logout works. When i click logout, your logged out of SMF and Xoops!

edit:

I made my block as following (I probalbly put too much in it but I really don't know much php, borrowed most of it from the mambo bridge)

Quoterequire_once('/home/XXXXXX/domains/XXXXXXX.nl/public_html/forum/SSI.php');
global $time_start, $maintenance, $msubject, $mmessage, $mbname, $language, $boardurl, $boarddir, $sourcedir, $webmaster_email, $cookiename, $db_server, $db_name, $db_user, $db_prefix, $db_persist, $db_error_send, $db_last_error, $db_connection, $modSettings, $context, $sc, $user_info, $topic, $board, $txt, $scripturl;

if ($context['user']['is_guest'])
{


}


else
{
echo '
   ', $txt[247], ' <b>', $context['user']['name'], '</b>,';
   echo "<br />\r\n";
   echo "<br />\r\n";
   echo
   ' ', $txt[152], ' <a href="', ($scripturl. '?action=pm'), '">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>';

echo '
   ', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'] . '.';

   echo "<br />\r\n";
   echo "<br />\r\n";
   ssi_logout();
}

$_SESSION['logout_url'] = 'http://www.XXXXXXXXX.nl' . $_SERVER['PHP_SELF'];

It give you, when you login through your bridge Orstio, a welcome and tells you how much PM's you have and a logout button. Because I didn't put a option in this if you are a guest, the block is not vissible. When you login through your brigde it shows.

I also want to put the avatar on top, but that I can't seem to get to work, does anyone have an idea?
Title: Re: Xoops Bridge Beta 2 (PLEASE HELP ME)
Post by: rassim on October 01, 2007, 09:59:33 AM
I try to to follow instructions from the 2nd page and in admin. set up for forum URL.... i put URL of xoops smf module, now i can not sign in as admin or any other user (member). Everytime I input my user name and passwored redirect me to this adress http://www.bosnaportland.com/modules/smf/index.php?action=admin
Please can you help me, I don't know how to change this, how to go back.
Title: Re: Xoops Bridge Beta 2
Post by: Nozema on October 01, 2007, 11:13:24 AM
I had that problem also one time, I always make a backup before installing things, in this case it is enough to place your database backup back.
Title: Re: Xoops Bridge Beta 2 (PLEASE HELP ME)
Post by: Orstio on October 01, 2007, 07:35:51 PM
Quote from: rassim on October 01, 2007, 09:59:33 AM
I try to to follow instructions from the 2nd page and in admin. set up for forum URL.... i put URL of xoops smf module, now i can not sign in as admin or any other user (member). Everytime I input my user name and passwored redirect me to this adress http://www.bosnaportland.com/modules/smf/index.php?action=admin
Please can you help me, I don't know how to change this, how to go back.

??? I don't see SMF or the bridge installed on your site.
Title: Re: Xoops Bridge Beta 2
Post by: sinoer on October 08, 2007, 01:48:38 AM
This Bridge just for smf 1.1.2 ?
Title: Re: Xoops Bridge Beta 2
Post by: Nic on October 16, 2007, 11:55:39 AM
Using Beta 2 Bridge and SMF 1.1.2.  Two separate databases but users have priveleges in both.  Bridge is definitely putting users from SMF over into Xoops, so that works.  However...

Using the SMF login through Xoops DOES log me into both, but the cookie lengths are not the same.  To test this, I set the cookie length with Xoops to 1 minute (so I didn't have to wait to long!) and, right enough, after the one minute I was logged out of Xoops.  However, I am still logged into the forum, and trying to then use the bridge login via Xoops won't work - it just keeps refreshing me to the index page, still logged out.  I have to physically log out of the forum before I can log back into Xoops again.

Even using the "Always stayed logged in" doesn't work with Xoops and I am still logged out after the specified time (in this case one minute), but left logged into the forum.

Also, logging in via the forum (under the bridge, NOT the standalone) doesn't log me into Xoops, although logging OUT of the forum logs me out of both (I have switched off the log out feature in Xoops).

I have looked through this thread and the one for Beta 1, trying every suggestion I have found, but none of it seems to solve this?

So, can I get it that if I want to be remembered, Xoops will actually do this (as well as the forum), or both cookies to set the same length of time?  And will I need to switch off the log in on the forum and just use the one through the Xoops bridge to be logged in to both?
Title: Re: Xoops Bridge Beta 2
Post by: ananda on October 19, 2007, 11:37:37 AM
Quote from: broham on June 27, 2007, 07:31:06 PM
/userinfo.php         -->  /modules/smf/index.php?action=profile
/user.php             -->  /modules/smf/index.php?action=register
/register.php         -->  /modules/smf/index.php?action=register
/viewpmsg.php         -->  /modules/smf/index.php?action=pm
/StandAloneDirectory  -->  /modules/smf
/StandAloneDirectory/ -->  /modules/smf
Might consider a redirection for /pmlite.php
please your help,
where in wich php to seth this lines,,
where can I find this
thanks
hari
Title: Re: Xoops Bridge Beta 2
Post by: Nozema on October 19, 2007, 11:40:31 AM
Not in a php file, you'll need to do that in your .htaccess file
Title: Re: Xoops Bridge Beta 2
Post by: ananda on October 20, 2007, 05:46:22 AM
Quote from: Nozema on October 19, 2007, 11:40:31 AM
Not in a php file, you'll need to do that in your .htaccess file
Hi thanks but it is not working at all, server gives failer
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on October 20, 2007, 07:52:22 AM
I would suggest never redirecting things with your .htaccess or you will have problems with cookies and sessions.
Title: Re: Xoops Bridge Beta 2
Post by: ecoomber on October 20, 2007, 11:48:48 PM
I'm having some problems with the bridge.  I skimmed through the pages here and I didn't really find the answers. One thing I did do is make sure Xoops and SMF can access the db.

I've installed the bridge and it shows up in Xoops, but I can't seem to configure it. I think I entered the path to SMF wrong, but now I can't get back to that page to correct it... every time I click on the link to configure I get a blank page, or a 500 error notice.

How can I get back there?


BTW -- I formerly used the Mambo bridge, but I have given up on Mambo.  The bridge worked well, but Mambo proved too difficult for me to alter the theme and content, etc.
Title: Re: Xoops Bridge Beta 2
Post by: ecoomber on October 21, 2007, 04:54:49 PM
Quote from: ecoomber on October 20, 2007, 11:48:48 PM
I've installed the bridge and it shows up in Xoops, but I can't seem to configure it. I think I entered the path to SMF wrong, but now I can't get back to that page to correct it... every time I click on the link to configure I get a blank page, or a 500 error notice.

How can I get back there?

I've figured out how to get back there... I clicked on "Preferences" on the little floating menu thingy you get when you mouseover the image on the menu.  So I've changed the path (I got it from the server settings admin page on SMF).

But it still gives me an error 500 page when I try to configure anything else. 

I thought maybe it had to do with file permissions, so I changed everything to 777 in the SMF module folder.  This didn't seem to work.

Any ideas?
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on October 21, 2007, 04:57:35 PM
You are using a path, and not a URL?
Title: Re: Xoops Bridge Beta 2
Post by: ecoomber on October 21, 2007, 04:58:12 PM
Quote from: Orstio on October 21, 2007, 04:57:35 PM
You are using a path, and not a URL?

Correct.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on October 21, 2007, 04:59:16 PM
Are SMF and Xoops installed on the same server?
Title: Re: Xoops Bridge Beta 2
Post by: ecoomber on October 21, 2007, 05:08:15 PM
Quote from: Orstio on October 21, 2007, 04:59:16 PM
Are SMF and Xoops installed on the same server?

Umm... I think so.  The Xoops and SMF have their DBs in the same place, if that's what you mean.

And they each have access to each other's DB too.  Should they be using the same username to access them?
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on October 21, 2007, 05:17:30 PM
I'm not talking about databases, actually.  I'm referring to server paths.  Do scripts at the Xoops location have access to scripts at the SMF location?  Are they within the same open_basedir restrictions?
Title: Re: Xoops Bridge Beta 2
Post by: ecoomber on October 21, 2007, 05:27:09 PM
Quote from: Orstio on October 21, 2007, 05:17:30 PM
I'm not talking about databases, actually.  I'm referring to server paths.  Do scripts at the Xoops location have access to scripts at the SMF location?  Are they within the same open_basedir restrictions?

What exactly do you mean?  I'm sorry, I have no idea what you mean.

All of the files are on the same sub-domain, and Xoops is in the main directory. SMF is in a sub directory there.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on October 21, 2007, 05:29:53 PM
OK, do you have MS Frontpage installed?  Is it set as your default editor of PHP files?
Title: Re: Xoops Bridge Beta 2
Post by: ecoomber on October 21, 2007, 05:42:36 PM
Quote from: Orstio on October 21, 2007, 05:29:53 PM
OK, do you have MS Frontpage installed?  Is it set as your default editor of PHP files?

Is that like "FrontPage extensions"?  If so, they are currently not enabled.

Or, do you mean the FrontPage program on my computer?  (yes, I have it, but I don't really use it)
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on October 21, 2007, 11:47:54 PM
QuoteOr, do you mean the FrontPage program on my computer?  (yes, I have it, but I don't really use it)

If you double-click on a PHP file, does FrontPage open up automatically?
Title: Re: Xoops Bridge Beta 2
Post by: ecoomber on October 22, 2007, 05:03:29 AM
Quote from: Orstio on October 21, 2007, 11:47:54 PM
QuoteOr, do you mean the FrontPage program on my computer?  (yes, I have it, but I don't really use it)

If you double-click on a PHP file, does FrontPage open up automatically?

No.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on October 22, 2007, 06:25:16 AM
I'm going to need to see a URL.
Title: Re: Xoops Bridge Beta 2
Post by: ecoomber on October 22, 2007, 06:35:20 AM
Quote from: Orstio on October 22, 2007, 06:25:16 AM
I'm going to need to see a URL.

http://home.535aircadets.info  for Xoops
http://home.535aircadets.info/forum for SMF
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on October 22, 2007, 07:28:32 PM
Do you have a .htaccess file in your modules directory?
Title: Re: Xoops Bridge Beta 2
Post by: ecoomber on October 22, 2007, 09:33:17 PM
Quote from: Orstio on October 22, 2007, 07:28:32 PM
Do you have a .htaccess file in your modules directory?

In Xoops, no.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on October 22, 2007, 09:45:01 PM
When I try to go here:

http://home.535aircadets.info/modules

I get redirected to here:

http://home.535aircadets.info/forum/index.php
Title: Re: Xoops Bridge Beta 2
Post by: ecoomber on October 22, 2007, 09:49:31 PM
When I try in Firefox, I just get a blank page.

In IE, I get redirected to my browser default homepage.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on October 22, 2007, 09:53:51 PM
Correct.  Is there a file in that folder named .htaccess?
Title: Re: Xoops Bridge Beta 2
Post by: ecoomber on October 22, 2007, 10:24:33 PM
Quote from: Orstio on October 22, 2007, 09:53:51 PM
Correct.  Is there a file in that folder named .htaccess?

No, in the modules folder there is only one file, named index.html and I have not edited it.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on October 22, 2007, 10:34:28 PM
What kind of redirects do you have set up in your site control panel?
Title: Re: Xoops Bridge Beta 2
Post by: ecoomber on October 22, 2007, 11:02:59 PM
Quote from: Orstio on October 22, 2007, 10:34:28 PM
What kind of redirects do you have set up in your site control panel?

None that I'm aware of.

I checked in CPanel and I had one redirect set up, and it had nothing to do with my Xoops or SMF site.  I deleted it though because I don't need it anymore.

I did change the CHMOD properties for index.html (to 777) after I uploaded it... would that matter?

So I can't think of anything else.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on October 23, 2007, 06:34:29 AM
There has to be a redirect.  Either it is in a .htaccess, or it is something from your control panel.

It may be something you thought you set up for another directory/subdomain, but is acting on your modules folder.
Title: Re: Xoops Bridge Beta 2
Post by: Minare on October 23, 2007, 04:03:19 PM
orstio brother

Will my members and messages in smf will also be integrated to xoops ?

Thanks

Title: Re: Xoops Bridge Beta 2
Post by: ecoomber on October 23, 2007, 05:07:57 PM
Quote from: Orstio on October 23, 2007, 06:34:29 AM
There has to be a redirect.  Either it is in a .htaccess, or it is something from your control panel.

It may be something you thought you set up for another directory/subdomain, but is acting on your modules folder.

I think maybe I'm just going to give up then and move back to Mambo.  LOL  I just didn't like Mambo b/c the themes were too hard to modify, and I had missing images and I couldn't replace some of the images.  I don't know what to do now.
Title: Re: Xoops Bridge Beta 2
Post by: Nozema on October 24, 2007, 04:24:46 PM
[
Quote from: ecoomber on October 23, 2007, 05:07:57 PM
Quote from: Orstio on October 23, 2007, 06:34:29 AM
There has to be a redirect.  Either it is in a .htaccess, or it is something from your control panel.

It may be something you thought you set up for another directory/subdomain, but is acting on your modules folder.

I think maybe I'm just going to give up then and move back to Mambo.  LOL  I just didn't like Mambo b/c the themes were too hard to modify, and I had missing images and I couldn't replace some of the images.  I don't know what to do now.

No offence, but I find the Mambo templates easier in use then the Xoops, but back to your .htaccess problem, don't you have a back up off your site? Search in it for .htaccess maybe you'll find him.
Title: Re: Xoops Bridge Beta 2
Post by: Neelay on November 09, 2007, 03:21:06 AM
Hello. My xoops site is at http://indianforums.co.in , and forum path is /forums . The login that appears is the of the bridge. I have different admin id and password for both (as I didn't know integration was possible). Problem is

1) I'm able to login from the xoops site with my xoops id, and get redirected to /modules/smf, which is fine, but when I again go to my xoops home page, the login block is again visible - I am not logged in again. Bigger problem is no.2 below

2) After loggin in, the xoops /admin.php is not accessible - says I do not have permission as I am not logged in. Which means that the xoops login block is not visible and the modules/smf login block doesn't actually log me in xoops. Is there a workaround so that I can have admin access for xoops ? No.3 below is a problem, but not urgent.

3) When I go to 'register' from the modules/smf login block, capcha doesn't appear, though it asks for entering the code.

Thanks a lot for this bridge.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on November 09, 2007, 06:34:03 AM
Quote1) I'm able to login from the xoops site with my xoops id, and get redirected to /modules/smf, which is fine, but when I again go to my xoops home page, the login block is again visible - I am not logged in again. Bigger problem is no.2 below

Versions?

Quote2) After loggin in, the xoops /admin.php is not accessible - says I do not have permission as I am not logged in. Which means that the xoops login block is not visible and the modules/smf login block doesn't actually log me in xoops. Is there a workaround so that I can have admin access for xoops ? No.3 below is a problem, but not urgent.

Yes, if you're not logged into Xoops, you can't access the Xoops admin panel.

Quote3) When I go to 'register' from the modules/smf login block, capcha doesn't appear, though it asks for entering the code.

Does your SMF database user have access to your Xoops database?  Does your Xoops database user have access to your SMF database?  Do you have database driven sessions turned on in SMF?
Title: Re: Xoops Bridge Beta 2
Post by: Neelay on November 09, 2007, 11:48:07 AM
Versions latest for both. database driven sessions turned on. But it's OK. Tried little bit myself, but then decided that it isn't actually necessary for my site to have same login for smf and xoops, so will continue as a seperate application. Thanks anyway.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on November 09, 2007, 06:37:29 PM
QuoteVersions latest for both.

There are no versions named latest.  Numbers help, "latest" does not.

Quotedatabase driven sessions turned on.

You need to turn that off for CAPTCHA to work inside the integration.
Title: Re: Xoops Bridge Beta 2
Post by: shalibaji on December 01, 2007, 09:24:52 AM
it can not work with smf1.1.4 and xoops2.0.17.1

when the bridge can be update ?

thanks
Title: Re: Xoops Bridge Beta 2
Post by: shalibaji on December 13, 2007, 07:33:39 AM
It works.

Thank you!
Title: Re: Xoops Bridge Beta 2
Post by: universe on December 31, 2007, 03:27:43 PM
anyone has problem with bridge with smf 1.1.4 verson?

my problem is that xoops always work only like admin user
so don't understand what is...
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on December 31, 2007, 05:54:47 PM
Try this:

http://www.simplemachines.org/community/index.php?topic=210337.msg1338323#msg1338323
Title: Re: Xoops Bridge Beta 2
Post by: universe on January 01, 2008, 07:04:02 AM
I saw explain there but seems better wait for time when module will working perfect, I am not lucky for now
Title: Re: Xoops Bridge Beta 2
Post by: beduino on January 12, 2008, 10:44:41 PM
hello,
i'm a big fan of xoops too :)
and i'm see this brigde can be a wonderfull way  - but maybe it's necessary a little more explains...
smf and xoops need install in same database?
prefix of tables can be differents?
the smf will recognize group admin of xoops as admin?

sorry if this a basic questions, but really a big fan of xoops and smf ;)

all the best
joao barroca
aka beduino
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on January 12, 2008, 11:02:42 PM
Quotesmf and xoops need install in same database?

No.  If you have a control panel that allows you to specify multiple databases per user (e.g. cPanel), then you can install SMF and Xoops in separate databases.  You just need to add each database user to the opposite database.

Quoteprefix of tables can be differents?

Yes, those will need to be different, especially if they are in the same database.

Quotethe smf will recognize group admin of xoops as admin?

As long as the username in Xoops is the same as the username in SMF.
Title: Re: Xoops Bridge Beta 2
Post by: ecolips on February 19, 2008, 09:47:22 PM
I have done the steps in here http://www.simplemachines.org/community/index.php?topic=210337.msg1338323#msg1338323

now everything fine. I can log in directy from xoops self login block and logout. It logs in and out smf at the same time
Title: Re: Xoops Bridge Beta 2
Post by: closo on April 28, 2008, 03:06:51 PM
I have followed these steps, and have difficulty with login to my site. It seems that I can login to smf, but not the bridge or xoops. Help?

smf 1.1.4
xoops 2.0.18.1
bridge 1.1beta2

smf is wrapped
Title: Re: Xoops Bridge Beta 2
Post by: closo on April 30, 2008, 11:20:17 AM
I still have no success logging in, after installation of the smf bridge. I also have several other modules installed, including:

protector 3.1
backup 3.0
xoopsinfo 2.14
ams 2.42 (article management system)
liase 1.26
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on April 30, 2008, 07:03:35 PM
Do you have a URL we can see?
Title: Re: Xoops Bridge Beta 2
Post by: closo on April 30, 2008, 08:43:44 PM
sure.

http://testx.closo.net
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on May 01, 2008, 06:27:54 PM
Do you have custom sessions enabled in Xoops?
Title: Re: Xoops Bridge Beta 2
Post by: closo on May 01, 2008, 07:29:01 PM
I think it was enabled, but I am not certain.

EDIT: ok, I looked in the xoops_config table with phpmyadmin.

There is an entry conf_name = "use_mysession" which is set to conf_value = "1"

I presume that means custom sessions is enabled?
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on May 02, 2008, 07:42:18 AM
And, in SMF:

What is the setting for Database Driven Sessions?

What is the setting for Local Storage of Cookies?

What is the setting for Subdomain Independent Cookies?
Title: Re: Xoops Bridge Beta 2
Post by: closo on May 02, 2008, 08:42:32 AM
Quote from: Orstio on May 02, 2008, 07:42:18 AM
And, in SMF:

What is the setting for Database Driven Sessions? On

What is the setting for Local Storage of Cookies? Off

What is the setting for Subdomain Independent Cookies? On

You have smf administrator access.
Title: Re: Xoops Bridge Beta 2
Post by: mnpsgadam on May 05, 2008, 03:01:34 PM
when i log in with the smf login on my xoops page, i get redirected to the forums. how can i make it so it stays on my xoops page?
Title: Re: Xoops Bridge Beta 2
Post by: closo on May 06, 2008, 11:59:53 PM
ok, I have applied a solution that was posted a couple of months ago in the xoops forum, and can be found here:

http://www.xoops.org/modules/newbb/viewtopic.php?post_id=285472#forumpost285472

This at least restored access to the site, but has not completely solved the login issue. It seems that the bridge login will login to smf, but not xoops. Meanwhile, the xoops login seems to be working properly for both. Maybe the solution is to just use the xoops login. Are there any disadvantages?

I would also like to know the answer to mnpsgadam's question about having the login redirect to the main site page, instead of the forum.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on May 07, 2008, 12:48:09 AM
As of beta 2, you can use the Xoops login block to login to both Xoops and SMF.  There is no disadvantage.
Title: Re: Xoops Bridge Beta 2
Post by: osgeld on May 22, 2008, 02:27:31 AM
does this search the forum like xoops normally does with newbb? (from 1 search box)
Title: Re: Xoops Bridge Beta 2
Post by: TosaInu on May 26, 2008, 06:50:13 PM
Hello Orstio,

Thank you for making this bridge.

We use SMF 1.1.5, Xoops 2.0.18.1 and bridge beta2, index.php in modules/smf edited to allow Xoop login to both Xoop and SMF.

It works fine, but when I log out via SMF it says:

Fatal error: Call to a member function getVar() on a non-object in /xxx/modules/smf/index.php on line 476

That does not happen with the original index.php.

Edit: the same error pops up when you try to go back to the forum via Xoops link.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on May 26, 2008, 06:51:52 PM
Keep reading:  http://www.simplemachines.org/community/index.php?topic=210337.msg1338356#msg1338356
Title: Re: Xoops Bridge Beta 2
Post by: TosaInu on May 26, 2008, 06:54:31 PM
Heh, that's a persistent problem here :)
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on May 26, 2008, 06:58:31 PM
The solution is in the very next post.
Title: Re: Xoops Bridge Beta 2
Post by: TosaInu on May 26, 2008, 06:59:57 PM
Yes, I found it. Thank you, that fixed it.
Title: Re: Xoops Bridge Beta 2
Post by: Lance_ on June 06, 2008, 08:27:44 AM
Hey Orstio, love the bridge.

Had it working fine, but then it stopped on me, I get a blank space where the forum used to appear when embedded within the xoops theme.

The corrections to index.php are done as per the other thread.

The xoops errors I get are the following:
SELECT f.*, s.tpl_source FROM 12345_tplfile f LEFT JOIN 12345_tplsource s ON s.tpl_id=f.tpl_id WHERE (tpl_tplset = 'cloned' AND tpl_file = 'smf_index.html') ORDER BY tpl_refid
Error number: 1146
Error message: Table 'user_smfforumdb.12345_tplfile' doesn't exist

It seems to be want to call the smfforumdb instead of the template in the xoopsdb? Or am I off base??

and getting this error also
Errors
Notice: Undefined index: rand_code in file /modules/smf/index.php line 90


Cheers,

Eric P

Title: Re: Xoops Bridge Beta 2
Post by: Orstio on June 06, 2008, 05:59:59 PM
This looks like a cloned template?

Can you try recompiling the template for the bridge module?

Go to your Xoops admin panel.  Mouseover the System Admin icon.  Click on Modules.

In the bridge row, click on the Update icon under the Action column.

Click the Update button.  This should recompile your template and reinsert it into the database.
Title: Re: Xoops Bridge Beta 2
Post by: Lance_ on June 06, 2008, 07:46:48 PM
Quote from: Orstio on June 06, 2008, 05:59:59 PM
This looks like a cloned template?

Can you try recompiling the template for the bridge module?

Go to your Xoops admin panel.  Mouseover the System Admin icon.  Click on Modules.

In the bridge row, click on the Update icon under the Action column.

Click the Update button.  This should recompile your template and reinsert it into the database.

Actually happened on the default template, then generated a cloned template to see if it would fix. No luck.
Tried uninstalling-reinstalling, delete templates, regenerate, checked in the DB and the entries for the smf templates are there.

What worries me is "Error message: Table 'user_smfforumdb.12345_tplfile' doesn't exist", the table with prefix 12345_tplfile is in the xoopsdb, not the smfforumdb. Isn't it looking for it at the wrong place??
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on June 06, 2008, 09:33:31 PM
Perhaps your host changed something?

Can you make sure that your SMF database user has access to your Xoops database?
Title: Re: Xoops Bridge Beta 2
Post by: Lance_ on June 06, 2008, 09:44:10 PM
Quote from: Orstio on June 06, 2008, 09:33:31 PM
Perhaps your host changed something?

Can you make sure that your SMF database user has access to your Xoops database?
I'm the host, so no changes server side in the time it worked and stopped working.
I use the same user to access both DBs.

I install another instance of xoops to see what happens.

/EDIT

Works on a clean install, something must have messed up. Darn
Guess I'll have to reinstall the other site and test step by step when I add stuff.

THanks for the help Orstio.
Title: Re: Xoops Bridge Beta 2
Post by: Lance_ on June 06, 2008, 10:29:37 PM
Well, I was able to replicate the problem again on another fresh install with only the smf bridge installed as a module.

NOTE: Do not turn on the "Check templates for modifications ?" option in preferences, that messes up the SQL query.

I seem to have a problem in my custom theme, as it messes it up still, yet the default theme works fine. I can change back and forth the theme and option in the fresh install to replicate the problem at will.

I am however unable to fix the original site, that one won't work on any theme. And I still need to find what the problem in the theme itself was.

Cheers,


/EDIT

Regenerating the template as mentionned above has fixed my original install.
Now only the theme to find what caused the problem.

/EDIT2

Well it appears to truly be dependant on the template creation. You cannot use the bridge on multiple themes, as that screws up the template loading.

Therefore in order to fix the problem, or not have it, you needed to uninstall/reinstall the bridge, regenerate a clone template for the bridge, every time you wish to change the theme used.
Title: Re: Xoops Bridge Beta 2
Post by: bschhikara on June 21, 2008, 02:51:19 AM
Any bridge available for SMF 2 beta3 and Xoops.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on June 21, 2008, 03:09:38 AM
Not yet.  I want to get Mambo stable, then push out a new alpha, and then work on either Xoops or e107 for SMF 2.0.
Title: Re: Xoops Bridge Beta 2
Post by: Trulyana on June 21, 2008, 07:45:25 PM
How do i configure the module? I have added the SMF module into it. Now, what would i need to do? What would be the absolute path to smf?
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on June 21, 2008, 07:47:42 PM
Go to your SMF admin panel, Server Settings.  Copy the contents of the field labelled "SMF Directory".  Paste that into the bridge as the absolute path.
Title: Re: Xoops Bridge Beta 2
Post by: Trulyana on June 21, 2008, 07:53:01 PM
Quote from: Orstio on June 21, 2008, 07:47:42 PM
Go to your SMF admin panel, Server Settings.  Copy the contents of the field labelled "SMF Directory".  Paste that into the bridge as the absolute path.

Thank you very much for your help. It is done and up. :)
Title: Re: Xoops Bridge Beta 2
Post by: bschhikara on June 24, 2008, 12:55:36 PM
I want to know whether this bridge will act properly for
SMF 1.1.5 ,
Xoops 2.0.1.8
Yougurt 3.1RC

I actually I tried with this but there is problem... on SMF block ... only SMF forum is visible (and not loggin out then).... and unable to browse Xoops as such..

Can anyone help please... I just want to use Yogurt part of the Xoops for SMF members (SMF 1.1.5 a fresh install as this bridge is available for SMF 1.x only). I donot require SMF 1.1.5 for discussions. I am running SMF 2 beta as separate forum.

What should be exact sequences to accomplish this. I have tried everything as mentioned on page 2 of this post.
Now I am trying again for fresh install. looking for valuable suggestion.

Title: Re: Xoops Bridge Beta 2
Post by: Orstio on June 24, 2008, 05:34:29 PM
Can we see a URL?
Title: Re: Xoops Bridge Beta 2
Post by: bschhikara on June 25, 2008, 10:40:48 AM
it is

www.indianscience.in/network  ------ xoops

and forum is at www.indianscience.in/forum

i am able to login on forum. when i login on xoops then forum can be browsed but xoops menu and administration are not accessible.

Xoops and forum both are fresh install and use same database.

Now I can make changes through database only (as xoops is unavailable)... please help how I can do that.


reason for edit: sentence correction


Title: Re: Xoops Bridge Beta 2
Post by: Orstio on June 25, 2008, 02:43:17 PM
You do understand that this is your bridge:

http://www.indianscience.in/network/modules/smf/

Title: Re: Xoops Bridge Beta 2
Post by: bschhikara on June 25, 2008, 08:00:11 PM
Yaah I understand that... bridge is at this location...

but main thing is how do I (or SMF user) access the Xoops (mainly yogurt)...
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on June 25, 2008, 08:01:43 PM
Have you tried logging in here?

http://www.indianscience.in/network/modules/smf/
Title: Re: Xoops Bridge Beta 2
Post by: bschhikara on June 25, 2008, 08:05:25 PM
yaah I tried.... but log is for forum only..
Title: Re: Xoops Bridge Beta 2
Post by: bschhikara on June 25, 2008, 08:10:45 PM
I (SMF user) can login on this bridge... forum is visible and accessible (embeded inside)...

but now as I click on http://www.indianscience.in/network/modules/yogurt/

I (SMF user) is not logged in that...
Title: Re: Xoops Bridge Beta 2
Post by: bschhikara on June 25, 2008, 08:14:20 PM
u can check for userID/passvd

test / test
Title: Re: Xoops Bridge Beta 2
Post by: bschhikara on June 27, 2008, 12:37:28 AM
I have tired of trying with testing it with fresh installs as well...... but it is not integrating SMF 1.1.5 with Xoops. SMF users are not able to login on Xoops. A futile effort.........
Title: Re: Xoops Bridge Beta 2 (Xoops 2.0.18.1) may be of interest
Post by: imatechie on July 02, 2008, 05:33:06 PM
 Orstio, you probably already know this but I was playing around and looking at the fields in the Xoop's database and I noticed that there is no field in the database for the Use Custom Sessions option. Every other possible configuration has a field in some table in the database. I don't know if this could be the cause of the mysterious cookie problem that has been around?

Also, I think something may be getting added to the first password check in Xoops, because it always says Password Incorrect, then the login again gives the cookie error. Anyway, I got it working in reverse but new users still have to login thrice , once through Xoops, then again at the forum (twice), subsequent logins to Xoops will also log them into the forum.

Anyway, I did find it interesting that the use custom session field is missing from the Xoop's database. :)

But then again, I'm probably stating something you already know.

At least it's working good enough for now.

Regards,

Jeff
Title: Re: Xoops Bridge Beta 2
Post by: off2dr on July 09, 2008, 11:54:47 PM
Orstio,

I just wanted to say THANK YOU! for this bridge.  I have been ujsing xoops since 2006 and bridged my xoops with smf early last year (2007) with your module. I have no problems other than asking people to use the site's bridged login instead of the forum login but hey, that's ok.. It works for us.

My site get a fairly large amount of traffic (8,000) hits a day on average. I love the smf forum, I love xoops and I just wanted to finally take the time to thank you.

To see my site, if you are interested, it is: http://www.off2dr.com

Best Wishes to you for much success in whatever endeavors you find yourself in.

Pam
Title: Re: Xoops Bridge Beta 2
Post by: macmend on August 17, 2008, 03:30:31 PM
Is there some detailed instruction on how to install this bridge and get it working?

Also some simple questions

1.  What happens to those already registered on smf forum do they have to re register?

2. Is it now that registration has to occur in xoops login and this bridges to smf?

3. Does the bridge only work with a basic smf installation with default theme and no packages?
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on August 17, 2008, 03:39:54 PM
QuoteIs there some detailed instruction on how to install this bridge and get it working?

Unzip it, and upload the "smf" folder to your Xoops modules folder.  Install it in your Xoops administration panel as you would any other module.

Then configure the module, and make sure that the bridge login block is visible, and the default Xoops login is not visible.


Quote1.  What happens to those already registered on smf forum do they have to re register?

No.  As they each login, they will each be transferred to Xoops.

Quote2. Is it now that registration has to occur in xoops login and this bridges to smf?

No.  Registration can occur in either Xoops or SMF.

Quote3. Does the bridge only work with a basic smf installation with default theme and no packages?

No.  It will work with any SMF theme, and I haven't heard of any incompatible mods yet.

Title: Re: Xoops Bridge Beta 2
Post by: macmend on August 18, 2008, 04:49:43 AM
then i get a blank page, why is that
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on August 18, 2008, 07:33:18 AM
A blank page is a suppressed PHP error.

This is most often caused by an incorrect absolute path in the bridge configuration.

What did you use as the absolute path to SMF in the bridge configuration?
Title: Re: Xoops Bridge Beta 2
Post by: haness05 on November 09, 2008, 12:16:25 PM
First of all thanks to Orstio for the bridge and to all members for the guidance. I almost solve all my trouble. I'm using smf 1.17 and Bridge 1.1 beta 2 with XOOPS 2.3.1. Database for xoops and smf installed separately with one database user. I installed the bridge fine and smf bridge login blocks hidden. User can log in both xoops and smf but if I logged as admin then I go to administration, smf keep asking me the password every times I click any links in administration section. The other problem is, if normal user logged in, they cannot access the board password protected even the password provided. For information, Ive follow all the instructions discussed here. I lost, any of part I missed?
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on November 09, 2008, 03:12:30 PM
What are your settings for:

Subdomain independent cookies?

Local storage of cookies?

Database driven sessions?
Title: Re: Xoops Bridge Beta 2
Post by: haness05 on November 09, 2008, 10:08:35 PM
Thank you for the reply Orstio.

settings  in SMF

Subdomain independent cookies - checked

Local storage of cookies - unchecked

Database driven sessions - checked

Title: Re: Xoops Bridge Beta 2
Post by: Orstio on November 09, 2008, 10:26:58 PM
How about if you turn off database driven sessions?
Title: Re: Xoops Bridge Beta 2
Post by: haness05 on November 09, 2008, 10:49:38 PM
After I unchecked Database driven sessions then I save the setting, it said "Session verification failed. Please try logging out and back in again, and then try again". I log out then log in again. Cache and cookies cleared in my browser but no change. It remain the same in result.
Title: Re: Xoops Bridge Beta 2
Post by: davery on November 29, 2008, 07:37:04 AM
Orstio - first thank you for the bridge and all the hard work. For those of us not gifted with coding, but can do enough damage piecing together the Legos, Salute!

Purpose: Family website for next years gathering. Providing a common place to post memories recipes, etc. Found a module for XOOPS and Family Tree creation. Will also be integrating Gallery2 with a bridge, er I hope. Website can be found here http://www.barrdubose.org

Process: Installed XOOPS 2.3.1, SMF 1.1.7, and the Bridge Beta 2. After reading through the following posts, changing the last bit of code, the XOOPS login block will now transfer into SMF.

Problem: Went to create a new user. Accepted the email, logged in using the XOOPS login block (note the SMF login block never showed up period) as the new user. XOOPS access but no SMF access? So somewhere they aren't syncing up? Thoughts?

Lastly, is there a way to keep SMF up on the front page, showing at all times, plus remove the login block inside of SMF. Don't want to confuse the masses.
Title: Re: Xoops Bridge Beta 2
Post by: option on April 01, 2010, 02:21:08 PM
in xoops 2.44
error:

Fatal error: require() [function.require]: Failed opening required '/index.php' (include_path='.;\xampplite\php\pear\') in E:\xampplite\htdocs\xoops\modules\smf\index.php on line 91

Aviso: Undefined index: rand_code en el archivo /modules/smf/index.php y línea 89
Advertencia: require(/index.php) [function.require]: failed to open stream: No such file or directory en el archivo /modules/smf/index.php y línea 91

deprecated:
'/class/mimetypes.inc.php' is deprecated, use '/include/mimetypes.inc.php' directly.
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on April 01, 2010, 05:51:28 PM
You need to configure your bridge module in the Xoops admin panel.
Title: Re: Xoops Bridge Beta 2
Post by: option on April 01, 2010, 10:53:54 PM
"Wrap SMF in the Xoops template?"
does not work, does not show the forum in xoops

also when you log in xoops is not shared in the forum (login separately)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2F15sa0xj.jpg&hash=179b1d8ba81f4b0be18ed2ece0091acf01b60ded)
xoops 2.44 and smf 1.11 (utf-8)

thx
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on April 01, 2010, 10:56:10 PM
What did you type into the "path to SMF" text box?
Title: Re: Xoops Bridge Beta 2
Post by: option on April 01, 2010, 11:04:45 PM
path forum
E:/xampplite/htdocs/xoops/forum
path xoops
E:/xampplite/htdocs/xoops

text box:E:/xampplite/htdocs/xoops/forum

error  in /modules/smf:

Aviso: Undefined index: rand_code en el archive /modules/smf/index.php y line 89
$sc = $_SESSION['rand_code'];
Title: Re: Xoops Bridge Beta 2
Post by: Orstio on April 01, 2010, 11:08:12 PM
This error is fatal, so concerns me far more than that warning:

QuoteFatal error: require() [function.require]: Failed opening required '/index.php' (include_path='.;\xampplite\php\pear\') in E:\xampplite\htdocs\xoops\modules\smf\index.php on line 91

Do you have a URL I can see?
Title: Re: Xoops Bridge Beta 2
Post by: chinaren on August 11, 2011, 07:59:43 AM
Anyone plan on upgrading this to SMF2 and later Xoops versions? 


It would be nice to have! 
Title: Re: Xoops Bridge Beta 2
Post by: option on October 12, 2016, 12:31:01 AM
I'm interested, I think we could donate (by paypal)
Title: Re: Xoops Bridge Beta 2
Post by: Kindred on October 12, 2016, 06:40:03 AM
Since Orsito has left the community and this has not been touched for over 6 years, I think it is unlikely to have any movement on it....
Title: Re: Xoops Bridge Beta 2
Post by: AndyDee on November 08, 2016, 07:06:35 AM
Quote from: Kindred on October 12, 2016, 06:40:03 AM
Since Orsito has left the community and this has not been touched for over 6 years, I think it is unlikely to have any movement on it....
Well, I am looking for a way to integrate a SMF into Xoops 2.5.7.
Does anyone know, how this could be possible?
Would make me glad!