News:

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

Main Menu

Mambo Open Source

Started by Sreya, February 24, 2004, 01:40:26 AM

Previous topic - Next topic

Orstio

I've uploaded a registration that works with 4.5.1 here:

http://mamboforge.net/frs/?group_id=543

Kris

#181
and with 4.5.0?

(upgrades from 4.5.0 to 4.5.1 are not recommended until 4.5.1.1 is out)

Orstio

The quick fix for 4.5.0 is to change:

include_once ('components/com_smf/smfSSI.php');



to:


require_once ("components/com_smf/config.smf.php");
include_once ($smf_path . "/SSI.php");

Kris

#183
Quote from: Orstio on October 03, 2004, 03:48:13 AM
The quick fix for 4.5.0 is to change:

include_once ('components/com_smf/smfSSI.php');



to:


require_once ("components/com_smf/config.smf.php");
include_once ($smf_path . "/SSI.php");


Thnaks, I will check this one out immediately.

Have you tested the version RC2 in 4.5.0?
It is not possible to logout in the forum.


(I presume it is in registration.php ?)

Got a com_ and mod_ version for 4.5.0 too?

Kris

Nope not working..



Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/site/public_html/MPortal/smforummix/Sources/Subs.php on line 161

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/site/public_html/MPortal/smforummix/Sources/Load.php on line 107

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/site/public_html/MPortal/smforummix/Sources/Load.php on line 109

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/site/public_html/MPortal/smforummix/Sources/Subs.php on line 161

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/site/public_html/MPortal/smforummix/Sources/Load.php on line 742

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/site/public_html/MPortal/smforummix/Sources/Load.php on line 752

Warning: array_unshift(): The first argument should be an array in /home/site/public_html/MPortal/smforummix/Sources/Load.php on line 821

Kris

database driven sessions don't work well wit mambo (looging out didn't work) but subdomain independant cookies work fine.

Orstio

QuoteHave you tested the version RC2 in 4.5.0?
It is not possible to logout in the forum.

I haven't done anything with RC2 yet.

QuoteGot a com_ and mod_ version for 4.5.0 too?

The module will work for both versions.  That hasn't changed.  The component will need some work.  I'll try to release something tomorrow for 4.5.0.

QuoteNope not working..



Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/site/public_html/MPortal/smforummix/Sources/Subs.php on line 161

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/site/public_html/MPortal/smforummix/Sources/Load.php on line 107

etc.

Sorry about that.  The SSI include should go at the top. 

Move this (the code I posted earlier):
require_once ("components/com_smf/config.smf.php");
include_once ($smf_path . "/SSI.php");


right after this:

require_once( $mainframe->getPath( 'front_html' ) );

Kris


SVT242

Theodore, how do we roll over existing users from mambo into SMF after we do your registration mod?
-Chris

Orstio

#189
Quote from: SVT242 on October 03, 2004, 06:11:35 PM
Theodore, how do we roll over existing users from mambo into SMF after we do your registration mod?


I haven't made anything that does that yet.

It's really just a matter of querying the mos_users table, making sure that you only select users that do not already exist in the smf_members table, and then adding the rows into the smf_members table.

[EDIT]OK, try this:

http://www.everything-science.com/uploadfiles/mos2smf.zip

Kris

#190
Orstio, handy would be an integration script that copies existing users from SMF into the memberbase of mambo.

I have almost 3000 members that I need to migrate ;) or they have all to register once again... (and the problem is they will then be registered into smf again because of the integration component.

Idea: what if..
- you register in mambo
- script checks if your username exist in SMF
- username exists -> ask for existing password
- if correct -> account is added to memberbase mambo. ;)

trenchteam

^ yea, that would be great!  SO far though, the shared database is great! Thanks for the script! Waiting paitently for the migration script too

trenchteam

My users are getting this when the register in Mambo. Not sure what this means.  Please help! Thanks.

Warning: main(components/com_smf/SSI.php): failed to open stream: No such file or directory in c:\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\components\com_smf_registration\smf_registration.php on line 15

Warning: main(): Failed opening 'components/com_smf/SSI.php' for inclusion (include_path='.;c:\php\pear') in c:\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\components\com_smf_registration\smf_registration.php on line 15

neo

Quote from: Kris on October 04, 2004, 01:59:21 AM
Orstio, handy would be an integration script that copies existing users from SMF into the memberbase of mambo.

I have almost 3000 members that I need to migrate ;) or they have all to register once again... (and the problem is they will then be registered into smf again because of the integration component.

Idea: what if..
- you register in mambo
- script checks if your username exist in SMF
- username exists -> ask for existing password
- if correct -> account is added to memberbase mambo. ;)

I have 428 members
gute idee :)
Die dunkle Seite der Unterhaltung,
Quoten mit Idioten, der Tod kommt nach Haus'.
Feige Medien, angepasster Meinungsterror.
Unerträgliches, gestellter Applaus.
Bridge:

Analysen - ersetzt durch Emotionen,
Futter für Voyeure, verarschung für Millionen.
...

Orstio

Quote from: trenchteam on October 04, 2004, 03:36:35 AM
My users are getting this when the register in Mambo. Not sure what this means.  Please help! Thanks.

Warning: main(components/com_smf/SSI.php): failed to open stream: No such file or directory in c:\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\components\com_smf_registration\smf_registration.php on line 15

Warning: main(): Failed opening 'components/com_smf/SSI.php' for inclusion (include_path='.;c:\php\pear') in c:\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\components\com_smf_registration\smf_registration.php on line 15


You haven't changed the variable $smf_path in the file config.smf.php.  You can find the config file in components/com_smf.  For your site, you'll want to change it to "forum" instead of "components/com_smf".

trenchteam

Does this have to be manually via FTP?  I tried installing by changing the file, then installing, but it doesn't work.  I also tried using the Edit configuration link in the admin menu, but it just re-routes me back to the Home of the Administration. 

Orstio

Yes, sorry, it has to be done by FTP.  I'm not yet familiar enough with Mambo administration modules to make it configurable from the control panel.  :(

roboter88

#197
Hi,
i added all 4.5.1 + rC1 and now i get a error
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /custom/www/mbo/components/com_smf/smf.php on line 40
(SMF code scrollbar not functional.)

Move this (the code I posted earlier):
require_once ("components/com_smf/config.smf.php");
include_once ($smf_path . "/SSI.php");


right after this:

require_once( $mainframe->getPath( 'front_html' ) );

i dont have
require_once( $mainframe->getPath( 'front_html' ) ); in smf.php

mos_smf_registration_b_3(i dont know for which version this is cause its not mentioned anywhere....)- SMF login - when i try install i get=XML setup file is not for a "component".

Well currently i will just stick to the wrapper - also a smf login woul dbe just fine ....

Any ideas?

Kris

Quote from: roboter88 on October 04, 2004, 10:53:53 AM


i dont have
require_once( $mainframe->getPath( 'front_html' ) ); in smf.php




Any ideas?

Should go into your registration.php

roboter88

Is this optional?
Also the login component  want work so i guess registration makes not much sense till both work.


Advertisement: