• Index
  • » Users
  • » bbgobie
  • » Posts

Posts

Posts

Jan-12-11 14:04:34

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"){
        $my->setLastVisit();
}

Thanks for your great plugin!

Jan-12-11 09:31:20

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
$editTask="userDetails";
$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.

Jan-12-11 08:42:35

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
index.php?option=com_comprofiler&task=userDetails
Any help would be greatly appreciated.

Thanks

  • Index
  • » Users
  • » bbgobie
  • » Posts

Board Info

Board Stats
 
Total Topics:
11634
Total Polls:
0
Total Posts:
48881
Posts today:
8
User Info
 
Total Users:
47733
Newest User:
digimanthan3
Members Online:
1
Guests Online:
490

Online: 
unlimits
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