Registration & Forgot Password Redirect

18 years 4 months ago #230 by MoP
First off, let me say thank you and congratulations to the CB team! What a fantastic tool.

Now my question. I am using the CBLogin on my site, www.liftdeals.com, and only want to use the CBlogin module in certain areas. Currently, I have it set up under the Forums tab.

As a registered user when I login, I stay on the forums page.

However, when I create a new user or hit the 'forgot password' link, the modules/menus load in the home page (with the home page modules flanking the registration fields).
I cannot figure out how to set the registration (create new user) and forgot password to load on the forums page.

Any help is greatly appreciated!

Please Log in to join the conversation.

18 years 4 months ago #239 by MoP
could this part of the code be the issue (code from mod_cbloginrc2.php ?

$loginPost = sefRelToAbs("index.php?option=com_comprofiler&task=lostPassword");
if ($https_post and (substr($_SERVER["SCRIPT_URI"],0,6)!="https:")) {
if (substr($loginPost, 0, 5) != "http:") $loginPost = $mosConfig_live_site."/".$loginPost;
$loginPost = str_replace("http://","https://",$loginPost);
}
echo '<a href="'.$loginPost.'" class="mod_login'.$class_sfx.'">'._LOST_PASSWORD.'</a>';

if ($horizontal) echo "&nbsp;\n"; else echo "</td></tr>\n";
if ($registration_enabled) {
if ($horizontal) echo '&nbsp;<span id="mod_login_noaccount'.$class_sfx.'">'; else echo "<tr><td>";
echo _NO_ACCOUNT." ";
$loginPost = sefRelToAbs("index.php?option=com_comprofiler&amp;task=registers");
if ($https_post and (substr($_SERVER["SCRIPT_URI"],0,6)!="https:")) {
if (substr($loginPost, 0, 5) != "http:") $loginPost = $mosConfig_live_site."/".$loginPost;
$loginPost = str_replace("http://","https://",$loginPost);
}
echo '<a href="'.$loginPost.'" class="mod_login'.$class_sfx.'">'._CREATE_ACCOUNT.'</a>';
if ($horizontal) echo "</span>\n"; else echo "</td></tr>\n";

Please Log in to join the conversation.

18 years 4 months ago #255 by Machiel
Replied by Machiel on topic Re:Registration & Forgot Password Redirect
Just watched your site. And maybe you could try to also let the module published at community builder. And choose to unpublish al other modules when you view community builder.

This could help. But I'm not sure. Maybe can you contact me by mail. That would be easier to talk about it. Or maybe could you help me with admin access or something?

EDIT:

Just did a closer look. And the problem with the login module is that he doesn't uses Itemid in his links. You could manually edit. I've just edited a link so you can check if this is what you want.

Forgot Password link:
www.liftdeals.com/component/option,com_comprofiler/task,lostPassword/Itemid,72/

New user link:
www.liftdeals.com/component/option,com_comprofiler/task,registers/Itemid,72/

If this is what you want. Contact me and I will help you further.

Post edited by: Machiel, at: 2005/11/18 14:01

Best Regards
Machiel

CB tester

Please Log in to join the conversation.

18 years 4 months ago #260 by MoP
Thanks! I would love to know how to fix this. Does it have to do with the snippet of code I included? Is it by any chance the part where it says,

if (substr($loginPost, 0, 5) != "http:") $loginPost = $mosConfig_live_site."/".$loginPost;

If I changed the 0,5 to different numbers...

If not, I'd love to know where to hard code it.
Thank you !!

Please Log in to join the conversation.

18 years 4 months ago #261 by Machiel
Replied by Machiel on topic Re:Registration & Forgot Password Redirect
Think your code has nothing to do with redirecting. I'm now changing the CB module. In a minute of 5 I will post it over here. Maybe then you could check how it works.

Best Regards
Machiel

CB tester

Please Log in to join the conversation.

18 years 4 months ago #262 by Machiel
Replied by Machiel on topic Re:Registration & Forgot Password Redirect
Here it is. Just that it and tell me how it works. Or let me see how it works. You can always PM me or speak to me at msn:machiel456@hotmail.com

Attachment MODIFIED_CBlogin452.zip not found



Let's hope it works for you. If not contact me.

Post edited by: Machiel, at: 2005/11/18 18:24

Best Regards
Machiel

CB tester
Attachments:

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.222 seconds

Facebook Twitter LinkedIn