Перейти к содержимому


Фотография
- - - - -

favorite login


Сообщений в теме: 2

#1 P.K

P.K

Отправлено 03 July 2014 - 09:36

Hi

The favorite button is really a good feature. But i would like to make a small modification in its working. Once the user adds the item to favorite list there is a button which takes him to favorite list. There he is asked to login to save the list. I wish to do this below the favorite button. If he presses "Add to Favorite" button and he is not logged in then a message appears below the favorite button or the login box appears. I think its a small modification which can be derived from favorite list template.

thanks


  • 0

#2 P.K

P.K

Отправлено 03 July 2014 - 16:06

Hi 

I found a little hack myself by using the joomla core functions

$user = JFactory::getUser();
 
if (!$user->guest) {
  echo 'You are logged in as:<br />';
  echo 'User name: ' . $user->username . '<br />';
  echo 'Real name: ' . $user->name . '<br />';
  echo 'User ID  : ' . $user->id . '<br />';
}

thanks


  • 0

#3 P.K

P.K

Отправлено 04 July 2014 - 11:48

Hi

Another issue i am stuck is the log out when the user is at favorite page. When user is at favorite items page and tries to log out an error 0 is given.

In demo.jbzoo.com i cant do this as the log out button is not present on the favaorite list page. can you please check this issue?

thanks


  • 0




Click to return to top of page in style!