The Joomla! Forum ™





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 
Author Message
PostPosted: Tue Jan 08, 2008 4:05 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Wed Nov 30, 2005 4:05 pm
Posts: 134
Location: Minnesota, Computerville
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:
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


Top
 Profile  
 
PostPosted: Wed Jan 09, 2008 4:30 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Aug 18, 2005 2:56 pm
Posts: 666
Location: Pontecosi
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


Top
 Profile  
 
PostPosted: Wed Jan 09, 2008 6:07 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Wed Nov 30, 2005 4:05 pm
Posts: 134
Location: Minnesota, Computerville
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

_________________
Monkey C Monkey Do Do
Skype thecomputer.us


Last edited by cctaco on Wed Jan 09, 2008 6:41 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Wed Jan 09, 2008 6:51 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Aug 18, 2005 2:56 pm
Posts: 666
Location: Pontecosi
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


Top
 Profile  
 
PostPosted: Wed Jan 09, 2008 8:48 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Wed Nov 30, 2005 4:05 pm
Posts: 134
Location: Minnesota, Computerville
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


Top
 Profile  
 
PostPosted: Wed Jan 09, 2008 11:49 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Aug 18, 2005 2:56 pm
Posts: 666
Location: Pontecosi
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

_________________
Member of the Italian Joomla Translation Team - www.joomla.it
http://www.joomlaitalia.com


Last edited by vamba on Wed Jan 09, 2008 11:52 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Jan 10, 2008 12:15 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Wed Nov 30, 2005 4:05 pm
Posts: 134
Location: Minnesota, Computerville
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


Top
 Profile  
 
PostPosted: Thu Jan 10, 2008 9:15 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Aug 18, 2005 2:56 pm
Posts: 666
Location: Pontecosi
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:
......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:
......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:
///// 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


Top
 Profile  
 
PostPosted: Fri Jan 11, 2008 4:16 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Wed Nov 30, 2005 4:05 pm
Posts: 134
Location: Minnesota, Computerville
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


Top
 Profile  
 
PostPosted: Tue Jan 15, 2008 8:28 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Wed Nov 30, 2005 4:05 pm
Posts: 134
Location: Minnesota, Computerville
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:
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


Top
 Profile  
 
PostPosted: Tue Jan 15, 2008 8:46 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Wed Nov 30, 2005 4:05 pm
Posts: 134
Location: Minnesota, Computerville
Well I don't know if this is cool or not?  I used
Code:
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 



Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group