Home arrow Forum Register From SMF Not Working...
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 12:28:55 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  Register From SMF Not Working...
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Register From SMF Not Working...  (Read 1735 times)
Jim Hale
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 11


View Profile
Register From SMF Not Working...
« on: November 22, 2006, 08:05:12 AM »

Howdy!

Great Component! Only took about 5 minutes to install and all the major things are working. Just ran into one problem. When a user tried to Register from SMF, they get:

You are not authorized to view this resource.
You need to login.
 
When they try and register from the CB Module, it works fine. Logging in thru SMF works fine as well, it's just when they try and register from the forum.

I probably just missed a tick somewhere but don't know where to start looking. Any points in the right direction would be greatly appreciated! Grin
« Last Edit: November 22, 2006, 08:07:16 AM by Jim Hale » Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Register From SMF Not Working...
« Reply #1 on: November 22, 2006, 09:17:24 AM »

which registration method do you have selected in JSMF config?
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Jim Hale
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 11


View Profile
Re: Register From SMF Not Working...
« Reply #2 on: November 22, 2006, 02:17:44 PM »

which registration method do you have selected in JSMF config?
Currently set to CB. Smiley I tried CBE as well but it did the same thing.
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Register From SMF Not Working...
« Reply #3 on: November 22, 2006, 02:35:21 PM »

post the url from index.php?  or component/ so I can see the end of it.  The one that is failing.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Jim Hale
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 11


View Profile
Re: Register From SMF Not Working...
« Reply #4 on: November 22, 2006, 02:46:55 PM »

post the url from index.php?  or component/ so I can see the end of it.  The one that is failing.
Not sure of what you're asking. Huh My site is http://www.themiditrombone.com if that would help.
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Register From SMF Not Working...
« Reply #5 on: November 22, 2006, 03:36:20 PM »

for some reason it is picking up the Itemid of CB and that is causing this:

Good:
http://www.themiditrombone.com/index.php?option=com_comprofiler&task=registers

Bad(Itemid causes permission issue):
http://www.themiditrombone.com/index.php?option=com_comprofiler&Itemid=37&task=registers

I'll take a look.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Register From SMF Not Working...
« Reply #6 on: November 22, 2006, 03:43:51 PM »

ahh I remember, the itemid link was something that was requested to be put into the link so that the person could have a specific template for all CB pages.  Joomla templates can be assigned to specific Itemid's.  Anyways, for you, that Itemid link is set at least to a registered level of user, so a guest trying to register cannot access it.  I guess I will need to make this optional.  For now, you can comment the following lines of code in components/com_smf/smf.class.php:

Change these lines around line 278:
Code:
if (!($itemid = $this->getComponentId('Community Builder'))) {
    $registration_link = 'index.php?option=com_comprofiler&task=registers';
    $lostpassword_link = 'index.php?option=com_comprofiler&task=lostPassword';
} else {
    $registration_link = 'index.php?option=com_comprofiler&Itemid='.$itemid.'&task=registers';
    $lostpassword_link = 'index.php?option=com_comprofiler&Itemid='.$itemid.'&task=lostPassword';
}

to this:
Code:
//if (!($itemid = $this->getComponentId('Community Builder'))) {
     $registration_link = 'index.php?option=com_comprofiler&task=registers';
     $lostpassword_link = 'index.php?option=com_comprofiler&task=lostPassword';
//} else {
//     $registration_link = 'index.php?option=com_comprofiler&Itemid='.$itemid.'&task=registers';
//     $lostpassword_link = 'index.php?option=com_comprofiler&Itemid='.$itemid.'&task=lostPassword';
//}

That should fix your problem.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Jim Hale
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 11


View Profile
Re: Register From SMF Not Working...
« Reply #7 on: November 22, 2006, 08:32:54 PM »

Perfect! Grin

That seemed to be the ticket. Cool

Thank you!
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login