Joomla 3.X – Log Out And Return To Home Page

I used this set up to for logging users out of Joomla and return them to the home page.

  1. I installed Sourcer plug-in to run some PHP. Just a great plug-in to use any ways.
  2. I create a link in the main menu and set it to registered, so once the login in it shows.
  3. Create an article called “logout” and add the following code to that page.

{source}

<?php

$mainframe =JFactory::getApplication(); $mainframe->logout();

$allDone=&JFactory::getApplication();

$allDone->redirect(‘/’);

?>
{/source}

I hope this helps someone else out there…

 

JCE Mediabox – Popup Icon Set To No But Still Showing

I installed the recent beta of the JCE’s Mediabox because Ryan is working on a responsive version. It is working well; however, I was having an issue making the Popup Icon not show. I set it to not show, but it showed up anyways.

jce-mediabox-icon

I was able to get it to not show by adding the following to my CSS.

.wf-icon-zoom-link {
display:none;
}

I discovered you can disable this globally by going to  Extensions >> Plugins  >> Mediabox 2 >> Options Tab.  Set Zoom/Popup Icons to No.

I hope this helps some else out there…