• Index
  • » Users
  • » bbgobie
  • » Posts



Looking at how the logout normally works, I don't think you could get it working from just within this plugin.

Anyways, here is how I ended up doing it.  The idea is if your task is to logout, you still want to keep your last visit date to the 0000.... time but you wouldn't want to force a redirect to your change password page.

In the forcepasswordchange plugin, I added an extra if, around the lines that start with  $lang =& JFactory::getLanguage(); and end with whatever redirect you were using.

if ($task!=$logoutTask){

Finally, you need to modify the core joomla user plugin.
in /plugins/user/joomla.php around line 85
Change it to use this if

if ($my->lastvisitDate!="0000-00-00 00:00:00"){

Thanks for your great plugin!

Oops... Guess I was tired last night. Used view= instead of task in my redirect so it wasn't working.

If anyone else is having issues, I'm using:
//for redirect variables
$editProfileOption = "com_comprofiler";
$editProfileSaveTask = "saveUserEdit";

//had to change else if to this
else if(!($option == $editProfileOption && $view == $editProfileView && $layout == $editProfileLayout && $task==$editTask))

//for the redirect line
$app->redirect("index.php?option=com_comprofiler&task=$editTask",JText::_("Update Your Password")

thanks for the module.  We'll probably be adding the ability to accept logout clicks, as well.  Since if for whatever weird reason they don't want to change their password (in our case they will have to update some required fields) they can logout so other users of the computer can't see their info.

Hi, trying to get this plugin to redirect to the CB profile page instead of the standard one. Just can't seem to figure out the right task/layout/view to use.

The normal part of the url for this is
Any help would be greatly appreciated.


  • Index
  • » Users
  • » bbgobie
  • » Posts

Board Info

Board Stats
Total Topics:
Total Polls:
Total Posts:
Posts this week:
User Info
Total Users:
Newest User:
Members Online:
Guests Online:

Social Stream
SourceCoast Joomla Social Extensions
Friday, 25 May 2018
JFBConnect 8.0 Coming Soon! Stay tuned.
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program