other areas to change login/register/logout links

Started by chadness, December 31, 2004, 10:47:20 AM

Previous topic - Next topic

mindfriction

Argh help! Someone please!  :-[

Im getting completely lost in the versioning of SMF and the SMF/Mambo bridge. Can someone please point me in the right direction for the current, up-to-date bridge which suits the SMF 1.0.1 update ?

Thanks in advance 

Janner

Quote from: mindfriction on January 16, 2005, 11:40:06 AM
Argh help! Someone please!  :-[

Im getting completely lost in the versioning of SMF and the SMF/Mambo bridge. Can someone please point me in the right direction for the current, up-to-date bridge which suits the SMF 1.0.1 update ?

Thanks in advance 
v2.11 of Orstio's Bridge can be found here: http://mamboforge.net/projects/mos-smf/

[Unknown] has recently released an alternative. More information on this can be found here: www.simplemachines.org/community/index.php?topic=22965.0

mindfriction

Thanks Janner!


Umm Im still getting that issue where when I login using the mambo login page it only logs me into mambo, and SMF complains there's no such user. I've crawled through a number of posts, whats the general concensus or fix to have 1 login and 1 registration?

Thanks in advance

Orstio

http://mamboforge.net/projects/mos-smf/

Download the file mos2smf.zip.  Follow the instructions to move your MOS users over to SMF.

mindfriction

Hi Orstio :),

Ive made the

Quotechange:

action=login2

to:

action=mambo_login

change:

action=logout

to:

action=mambo_logout

changes as suggested in the readme.txt, although in another thread by [Unknown] he mentions making changes in the template files is not the best option. Anyway I then clicked the register on the mambo page and once again got the mambo registration and once again could only log into mambo--with SMF complaing no such user. Im just trying the

Quoteredirectexit('action=mambo_logout');

suggestion..see if that works *fingers crossed*


Orstio

If the user does not exist in SMF, it will not work.  You can make all the changes to your theme that you want, and it still will not work.

You must run the mos2smf script to migrate your Mambo users over to SMF.  That is the only way it will work.

mindfriction

Ok, well ive only just started the site so there is no users apart from the default admins created by Mambo and SMF respetcively on their initial installs. So your telling me there's no central registration module which will register the new coming users so they can login in once on my homepage http://www.yac.org.au/mambo451/ and be logged into the Mambo site AND SMF Messageboard ?

Orstio

#27
QuoteOk, well ive only just started the site so there is no users apart from the default admins created by Mambo and SMF respetcively on their initial installs. So your telling me there's no central registration module which will register the new coming users so they can login in once on my homepage http://www.yac.org.au/mambo451/ and be logged into the Mambo site AND SMF Messageboard ?

Did you read the bridge instructions at all?

There are two main components, and the login module.

The first component is the com_smf component.  It displays the forum wrapped in Mambo.  It also handles telling Mambo where you have SMF installed, so it is an essential component.

The next is the com_smf_registration component, that registers new users into both Mambo and SMF at the same time.

Then there is the login module, which logs in users that exist in both Mambo and SMF. (Usernames and passwords must be the same.  This is case sensitive, so they must be EXACTLY the same.)

If you are trying to login with a username and password that does not exist in SMF, you will have the error that you are seeing.

mindfriction

Thanks for being patient with me.
I did read the installation instructions, added the forum the main menu, made the 2 suggested link changes in the index.template.php and then added the com_smf_registration component to the main menu 'Register'. And all clicking on the 'Register' link in the main menu does is return a blank page as you can see here http://www.yac.org.au/mambo451/.

Ok I may be a dummy Orstio, but im trying my best to get this working, hence it 5am where I am..what on earth am I overlooking ? PLease help

Thanks

Orstio

QuoteI did read the installation instructions, added the forum the main menu, made the 2 suggested link changes in the index.template.php and then added the com_smf_registration component to the main menu 'Register'.

From the instructions for the registration component:

QuoteYou should not link this as a component to your menu, as the query string will not come out correctly.

That is why it returns a blank page.

This is what it is supposed to look like:

http://www.yac.org.au/mambo451/index.php?option=com_smf_registration&task=register

Your forum is not in your main menu.  It might be in your user menu; but nothing will work from there.

http://www.yac.org.au/mambo451/index.php?option=com_smf

mindfriction

#30
Ok, so I have the forum their but it can only be seen by registered users; I set the access to 'Registered' in Mambo admin. Ive now changed the forum to purely a public main menu item. Sorry i sound dense, im ok with PHP but im having a hard time configuring this :[

The problem is I initially created my template using the extensions from Dreamweaver I downloaded from mamboforge, and that automatically created the login form you can see on my homepage down the left hand side. I thought adding the code (below) from the readme.txt, was going to adapt this login to become the new bridge login? Obviouxly not. So, if you can please, please tell me how do I  replace this current login on the homepage with the new bridged login/ registration?

<?php 
global $sc$context;

if (!
defined('SMF')){
  require (
$mosConfig_absolute_path."/administrator/components/com_smf/config.smf.php");
  require (
$smf_path."/SSI.php");
}

$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];

?>




Janner

#31
Quote from: mindfriction on January 16, 2005, 02:02:51 PM
How do I  replace the current login on the homepage with the new bridged login/ registration?
First install the module via the Mambo ACP. Then publish it to your site in the same way that you would any other module.

Of course, you will also need to unpublish the regular Mambo login module.

I am assuming that you have already installed the two Mambo components that are part of the Bridge?

Orstio

QuoteOk, so I have the forum their but it can only be seen by registered users; I set the access to 'Registered' in Mambo admin.

Right.  That's a problem.  Before a registered member logs in, that person is just a guest.  How can that guest access SMF in order to login, when Mambo is denying access?

QuoteThe problem is I initially created my template using the extensions from Dreamweaver I downloaded from mamboforge, and that automatically created the login form you can see on my homepage down the left hand side. I thought adding the code (below) from the readme.txt, was going to adapt this login to become the new bridge login? Obviouxly not. So, if you can please, please tell me how do I  replace this current login on the homepage with the new bridged login/ registration?

From the login module installation readme:

Quote1)  Unzip the package.
2) Upload MOS_SMF.php to your SMFSources directory.
3) Go to your Mambo control panel and install the module.
4) Go to your Mambo template, and add the following code, right before the </head> tag:

<?php
global $sc, $context;

if (!defined('SMF')){
  require ($mosConfig_absolute_path."/administrator/components/com_smf/config.smf.php");
  require ($smf_path."/SSI.php");
}

$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];

?>

5) publish the module.

What you are looking for is #5:  Publish the module.  You will probably want to unpublish the default login module as well.  There's no need for both.

mindfriction

Ok cheers guys,

Ive just unpublished the default login module, im now looking into publishing the bridge moduel, you see im still getting the hang of Mambo ;)..Ive come leaps and bounds since i installed it 2 days ago thanks to people like you :D

Kindred

Although, I did discover a work-around for the resgitered/non registered issue...

Make a menu item for the SMF forums...  make it public... make it UNpublished
(mambo has now assigned an optionID to this component)

Now, make a LINK-URL to the same location that mambo assigned to the component...
make the link to the URL a registered menu item...

i.e. the component is addressed at index.php?option=com_smf&Itemid=40
now make a link to that same URL...

(Don't make a new component-link in your menu....  I originally did that, but it got mambo confused...)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: