Archive for the ‘Joomla!’ Category

WordPress for Joomla: Author Archive SEF Link setup

Monday, September 7th, 2009

WordPress for Joomla

WordPress for Joomla


Recently I setup and tuned CorePHP WordPress for Joomla component for one of my clients site. It is the TopPhoneShop.com
One task I had to resolve was to show all posts of the selected author if visitor click on the author name. I used WordPress the_author_posts_link() function to get the URL to the author archive page.
It returned
www.yoursite.com?authour=nnn
URL instead of search engine friendly (SEF) permalink. In order to change that I use the way I was found at
codex.wordpress.org.
In order to setup the author permalink instead of ?authour=nnn I placed this code to the end of functions.php file at WordPress default used theme folder:
Read the rest of this entry

Joomla – how to build logout text link

Friday, September 4th, 2009
Joomla Logout Redirect

Joomla Logout Redirect

If you search how to build the logout text link for the Joomla! then you are at the right place now. The answer is below

<a href="index.php?option=com_user&task=logout">Logout</a>

Do you need to redirect user to the needed URL after logout? Then you have to add the parameter return=[your-base64-encoded-return-URL]. For example

<a href="index.php?option=com_user&task=logout&return=<?php echo $returnURL; ?>">Logout</a>

where

$returnURL = base64_encode('URL to redirect');

Or if you need to redirect to the site root of your Joomla! installation after logout then you can use this link with preencoded return parameter value

<a href="index.php?option=com_user&task=logout&return=Lw">Logout</a>

You can read discussion on this issue at these topics
http://forum.joomla.org/viewtopic.php?f=466&t=325172
http://forum.joomla.org/viewtopic.php?f=428&t=334765
of the Joomla! discussion forum.