Bridge Xoops-SMF 1.1 RC3 Beta 1

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

Previous topic - Next topic

inukablaze

Quote from: Orstio on November 04, 2006, 11:11:00 PM
Quote8: Only variables should be assigned by reference
File: /home/SITEUSERNAME/public_html/news/kernel/user.php
Line: 186

Yes, that is still an incompatiblity with Xoops and PHP 4.4.x.

Open the user.php file in the kernel folder, and find this on line 186:

            $this->_groups =& $member_handler->getGroupsByUser($this->getVar('uid'));


Change it to this:

            $this->_groups = $member_handler->getGroupsByUser($this->getVar('uid'));


PERFECT! Thank you. Now its working. :D

inukablaze

#381
Maybe I spoke too soon.

It's working fine for members who are just signing up.  But for me, as the admin, I still can't log in to both systems at the same time.

It may be because for xoops and smf (when they were still separate) I used the same username, but with different passwords.

Now I don't know which password will log me into both systems. If I use my Xoops admin password when I log into the SMF block, I get an "incorrect login" error. 

If I use my SMF admin password when I log into the SMF block, I'm logged into SMF. But I'm not logged into Xoops.


What do we do in this case:
Same usernames for each system, but with different passwords?


I suppose I can go into xoops and change the xoops password to match the smf password. But what about other members who have already signed up with Xoops?


Another issue for me is the original place where the SMF forum is located. Some users will inevitably come to the old, original forum url.  So when I did a test signup at the original place where SMF is (not through Xoops), I was registered at the forum. But when I went over to xoops to use the SMF block to log in using that test account, I get the following error:

-----------------------
8: Undefined index: dateRegistered
File: /home/USERNAME/public_html/modules/smf/index.php
Line: 218
-----------------------



In my /smf/index.php file, line 218 is a part of this section of code here:



-------------------------------------------------------------
//What?  No user in Xoops?
   if ($user === false || mysql_num_rows($request) === 0){
      mysql_query("
         INSERT INTO " . XOOPS_DB_PREFIX . "_users
            (name, uname, email, pass, user_regdate)
         VALUES ('" . (isset($user_settings['memberName']) ? $user_settings['memberName'] : $user_settings['memberName']) . "', '" . $user_settings['memberName'] . "', '" . $user_settings['emailAddress'] . "', '$pwd', '" . $user_settings['dateRegistered'] . "')");

      $xoops_id = mysql_insert_id();

      mysql_query( "
         INSERT INTO " . XOOPS_DB_PREFIX . "_groups_users_link
            (groupid, uid)
         VALUES ('2', '$xoops_id');");
         
      mysql_free_result($request);
---------------------------------------------------------------------


Is that another php problem?

Orstio

Quote8: Undefined index: dateRegistered
File: /home/USERNAME/public_html/modules/smf/index.php
Line: 218

Can you check your smf_members table in PhpMyAdmin for the dateRegistered column?

inukablaze

Yes the dateRegistered column is there.

Orstio

Is there a value in the dateRegistered column for the user you are trying to login?

inukablaze

Quote from: Orstio on November 05, 2006, 02:18:10 PM
Is there a value in the dateRegistered column for the user you are trying to login?
Yes.

Orstio

???

Then it doesn't make any sense at all that dateRegistered would come up as an undefined index.

How about if you add this line before the code you posted above:

if (!isset($user_settings['dateRegistered'] )){
     $user_settings['dateRegistered'] = time();
}

inukablaze

#387
Still not working. I sign up with a test account and I can register with smf with no problem. However it doesn't do anything in xoops. It acts as if I hadn't signed up with xoops at all.

I've got a headache. LOL! I'm going to turn it off until I can regain some of my patience back. :P

Orstio

QuoteStill not working. I sign up with a test account and I can register with smf with no problem. However it doesn't do anything in xoops. It acts as if I hadn't signed up with xoops at all.

I've got a headache. LOL! I'm going to turn it off until I can regain some of my patience back.

Are you registering through the bridge, or through the stand alone forum?

inukablaze

Quote from: Orstio on November 05, 2006, 03:41:36 PM
QuoteStill not working. I sign up with a test account and I can register with smf with no problem. However it doesn't do anything in xoops. It acts as if I hadn't signed up with xoops at all.

I've got a headache. LOL! I'm going to turn it off until I can regain some of my patience back.

Are you registering through the bridge, or through the stand alone forum?
I registered through the bridge.

Orstio


RAdams

When I install the module to my my modules folder, and install it from the XOOPS control panel, it simply adds a link on the sidebar leading to the address of the module (e.g. www.mydomain.com/modules/smf/). [nofollow]

It does not give a way to login at all if I turn off the login module.

Orstio

You have to make the SMF login block visible.

miealex

Hi Orstio.

I'd like to ask you something (I think you're the right person to answer this question :) ):

is there any user integration tool so I can use SMF 1.1 RC 3 as an alternative to a XOOPS version 2.2.x forum ?

I don't mind if the SMF isn't integrated with the xoops template. I just don't want to use it as a standalone forum with different users ... I want this: when users login to XOOPS site they will be logged in to SMF forum as well.

Is it developed?

- link to forum as it is now: hxxp:www.romaniangraffiti.ro/forum/ [nonactive]
- site: hxxp:www.romaniangraffiti.ro/ [nonactive]

Any answer at all will be greatly apreciated.

Thanks,
Alex

Orstio

QuoteI don't mind if the SMF isn't integrated with the xoops template. I just don't want to use it as a standalone forum with different users ... I want this: when users login to XOOPS site they will be logged in to SMF forum as well.

Is it developed?

That's what this does, but for Xoops 2.0.15.  Just set it to "Unwrapped", and the users will be shared between the two softwares.

miealex

Quote from: Orstio on November 12, 2006, 06:52:44 PMThat's what this does, but for Xoops 2.0.15.  Just set it to "Unwrapped", and the users will be shared between the two softwares.

As you may have noticed I use XOOPS version 2.2.x  :-\ Does it work with 2.2.x versions, too?

Orstio

Since 2.2.x is a dead end, I didn't bother making a bridge compatible with it.

miealex

dead end? 2.2.5 will be released as far as I know ...

Orstio

http://www.xoops.org/modules/news/article.php?storyid=2905

QuoteXOOPS 2.2.x suffers from several behavioral changes that give it a limited compatibility with the current third-party modules base. Also, this version does not have the years of bugfixes, patches and enhancements to make it as stable and fast as the XOOPS 2.0.x series.
Next versions (XOOPS 2.3+) will step back to the original behavior to regain a maximum compatibility level: this means that, even if we'll ensure users can upgrade to future versions, a full compatibility between these versions and modules specially made for 2.2.x cannot be guaranteed and that they may have to be updated to work on XOOPS 2.4+.
Also note that, if you plan to build an highly popular site, you'll get better results by using the latest 2.0.x release, due to resource issues with the XOOPS 2.2.x series.

XOOPS 2.2.x will still be supported: patches will be made, the code will be maintained, bugfixes will still be released, end-user support will still be given on the XOOPS.org website.

X-Ception

getting the dreaded:
Quote
You were unable to login. Please check your cookie settings.
mentioned in previous posts,
xoops 2.0.15
smf 1.1.RC3
php 5.0.x

both in same database
xoops output compression output doesnt work ( check xoops faq aint worked for ages )
- but smf compressed output is off regardless

Enable local storage of cookies = off
Use subdomain independent cookies = On
Use database driven sessions = On

admin username and password were created using same details, both work both unaltered installs

Xoops = http://www.nexus-irc.co.uk
SMF = http://www.nexus-irc.co.uk/forum

xoops DOES use custom sessions setting if that makes any inch of diff
errors do show in smf error log:
Quote
8: Undefined index: xoops_js
File: /var/www/vhosts/nexus-irc.co.uk/httpdocs/templates_c/default-default^%%E8^E82^E82B5DEE%%theme.html.php
Line: 39

8: Undefined index: smf_content
File: /var/www/vhosts/nexus-irc.co.uk/httpdocs/templates_c/default-default^%%BB^BB7^BB72B854%%db%3Asmf_index.html.php
Line: 6
admin logins for site, ftp, phpmyadmin - hell the server if needed  :P
Joolo.net social community and irc network / Yowzar - random subject forum

Advertisement: