Joomla registration landing page - how to change it.

For Joomla! 1.0 Coding related discussions.
User avatar
cctaco
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 147
Joined: Wed Nov 30, 2005 4:05 pm
Location: Shakopee, MN
Contact:

Joomla registration landing page - how to change it.

Postby cctaco » Tue Jan 08, 2008 4:05 pm

I found this code in a older post and wanted to insert into my site,  but it didn't show how / more as to where to place the code.

Code: Select all

global $Itemid;
$msg;
mosRedirect('index.php?option=com_login&Itemid='.$Itemid, $msg);


I've found the registration.php and  registration.html.php files.
Monkey C Monkey Do Do
Skype thecomputer.us

User avatar
vamba
Joomla! Guru
Joomla! Guru
Posts: 667
Joined: Thu Aug 18, 2005 2:56 pm
Location: Pontecosi
Contact:

Re: Joomla registration landing page - how to change it.

Postby vamba » Wed Jan 09, 2008 4:30 pm

Hi,
You need to change redirection URL after login/logout ?
If yes u can change these easy with in mod_login parameters  Site-->Modules--->Login
Member of the Italian Joomla Translation Team - www.joomla.it
http://www.joomlaitalia.com

User avatar
cctaco
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 147
Joined: Wed Nov 30, 2005 4:05 pm
Location: Shakopee, MN
Contact:

Re: Joomla registration landing page - how to change it.

Postby cctaco » Wed Jan 09, 2008 6:07 pm

Sorry I'm using the login form from the menu - componet item and it goes to the login form but doesn't have use the login modules
mod_login parameters.

when I publish the module it work fine, but I want to call the login from a button on another page.

So I thought there was an easy way to insert a redirect into the laungage file.  or the registration.html.php file
Last edited by cctaco on Wed Jan 09, 2008 6:41 pm, edited 1 time in total.
Monkey C Monkey Do Do
Skype thecomputer.us

User avatar
vamba
Joomla! Guru
Joomla! Guru
Posts: 667
Joined: Thu Aug 18, 2005 2:56 pm
Location: Pontecosi
Contact:

Re: Joomla registration landing page - how to change it.

Postby vamba » Wed Jan 09, 2008 6:51 pm

I'm sorry too  ;)

I think the better way is insert link in language file so you don't have to made any core hack
Member of the Italian Joomla Translation Team - www.joomla.it
http://www.joomlaitalia.com

User avatar
cctaco
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 147
Joined: Wed Nov 30, 2005 4:05 pm
Location: Shakopee, MN
Contact:

Re: Joomla registration landing page - how to change it.

Postby cctaco » Wed Jan 09, 2008 8:48 pm

I very much agree, but I'm having problems seeing / finding the proper link to the login module. 

And I'm not sure as to how to properly insert the link in the file.
Monkey C Monkey Do Do
Skype thecomputer.us

User avatar
vamba
Joomla! Guru
Joomla! Guru
Posts: 667
Joined: Thu Aug 18, 2005 2:56 pm
Location: Pontecosi
Contact:

Re: Joomla registration landing page - how to change it.

Postby vamba » Wed Jan 09, 2008 11:49 pm

well these are samples (change http://www.yourwebsite.com  with ur web site url)
this is the right link to registration page
http://www.yourwebsite.com/index.php?option=com_registration&task=register
and this one is link to login page
http://www.yourwebsite.com/index.php?option=com_login&task=login
Last edited by vamba on Wed Jan 09, 2008 11:52 pm, edited 1 time in total.
Member of the Italian Joomla Translation Team - www.joomla.it
http://www.joomlaitalia.com

User avatar
cctaco
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 147
Joined: Wed Nov 30, 2005 4:05 pm
Location: Shakopee, MN
Contact:

Re: Joomla registration landing page - how to change it.

Postby cctaco » Thu Jan 10, 2008 12:15 am

I got the link inserted but it is not following the rules for the module, with the different landing page after login, it just defaults to the home page of the site.

check out if you have time http://bidmyneeds.com

I've enable the module which is on the bottom of the screen and the link to the login module each goto a different page.

you may use or creat your own login

jeff16
123456
Monkey C Monkey Do Do
Skype thecomputer.us

User avatar
vamba
Joomla! Guru
Joomla! Guru
Posts: 667
Joined: Thu Aug 18, 2005 2:56 pm
Location: Pontecosi
Contact:

Re: Joomla registration landing page - how to change it.

Postby vamba » Thu Jan 10, 2008 9:15 am

Well i'm not expert but i think that the difference between component login and module login redirection is located here

These are parameters of the component login

Code: Select all

......inside rows 33 to 50 file login.php

$params->def( 'login', $mosConfig_live_site );
$params->def( 'logout', $mosConfig_live_site );

...........


and these are parameters of module login

Code: Select all

......inside rows 33 to 38 file mod_login.php
$login       = $params->def( 'login',    $return );
$logout        = $params->def( 'logout',    $return );

...........


login/logout parameters are defined in login_php by default $mosConfig_live_site and redirect, after login or logout, in main page

login/logout parameters are defined in mod_login.php as $retun
regulated also by

Code: Select all

///// from mod_login.php/////

23// url of current page that user will be returned to after login
24  if ($query_string = mosGetParam( $_SERVER, 'QUERY_STRING', '' )) {
25    $return = 'index.php?' . $query_string;
26  } else {
27        $return = 'index.php';
28   }
Member of the Italian Joomla Translation Team - www.joomla.it
http://www.joomlaitalia.com

User avatar
cctaco
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 147
Joined: Wed Nov 30, 2005 4:05 pm
Location: Shakopee, MN
Contact:

Re: Joomla registration landing page - how to change it.

Postby cctaco » Fri Jan 11, 2008 4:16 am

I thought hey maybe I could copy the mod login into the componet login < -- didn't work well

So, used html to create the link in the english.php which is working well and used the module login to redirect to the edit page.


This has been a unique challenge for mos joomla sites are basic, but when trying to create a site flow it is quite a job.

I was ready about a post that suggest after registering you would be automatically logged into the site, have you any work like this?
Monkey C Monkey Do Do
Skype thecomputer.us

User avatar
cctaco
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 147
Joined: Wed Nov 30, 2005 4:05 pm
Location: Shakopee, MN
Contact:

Re: Joomla registration landing page - how to change it.

Postby cctaco » Tue Jan 15, 2008 8:28 pm

well still want to tweak the outcome a little more, I've gotten it (the registration component) to show text with a link to the next step in it.  I did this by changing the /language/english.php

used this line.

Code: Select all

DEFINE('_REG_COMPLETE', 'Step one complete now <a href="http://www.mywebsite.com/index.php?option=com_login&task=login/" target="_self">Submit Login');


I'd like to use a .gif file I have that looks like it is processing for like 3 second and then automatically forward to the index.php?option=com_login&task=login

I'm not sure how to code this, our where to find a good example to use.

Thanks
Monkey C Monkey Do Do
Skype thecomputer.us

User avatar
cctaco
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 147
Joined: Wed Nov 30, 2005 4:05 pm
Location: Shakopee, MN
Contact:

Re: Joomla registration landing page - how to change it.

Postby cctaco » Tue Jan 15, 2008 8:46 pm

Well I don't know if this is cool or not?  I used

Code: Select all

DEFINE('_REG_COMPLETE', '<html><head><script type="text/javascript">function forward(){window.location.href = "http://www.[spam].com/index.php?option=com_login&task=login/";}</script></head><body onload="forward()"></body></html>');



Which is a bit of old stuff, I found in the back of my head.  Not sure if this is the best way to have it happen or not.  It does work.  Can't find any security problems with it.  Tested in IE 5 6 and
Monkey C Monkey Do Do
Skype thecomputer.us


Return to “Joomla! 1.0 Coding”

Who is online

Users browsing this forum: No registered users and 2 guests