url link to logout?

Ecommerce design Joomla template to start your online business with VirtueMart and additional eshop features.
GK User
Tue May 28, 2013 9:45 am
Hi, I made a user menu, and I want to put a logout button, but there was not any option, the only thing to do is a url link to (index.php?option=com_user&task=logout), but I don't have the option to put a url link in a menu Item type.
I am working on localhost on yourshop quickstart demo.

so, anyone knows how to make a logout or a url link?
urllink.jpg
User avatar
Junior Boarder

GK User
Tue May 28, 2013 9:52 am
Have You checked "External URL"?
(after selecting External URL place entire link into "Link" field: http://YOURDOMAIN.COM/index.php?option= ... ask=logout)
User avatar
Moderator

GK User
Tue May 28, 2013 10:24 am
Hi cyberek, thanks for replying.

Yes, i have checked external url and I put the path in the link and the respose was :
Oops, you've encountered an error 404
It appears the page you were looking for doesn't exist. Sorry about that.
User avatar
Junior Boarder

GK User
Tue May 28, 2013 10:34 am
What exactly have You placed in "link" field?
User avatar
Moderator

GK User
Tue May 28, 2013 11:03 am
I placed : http://localhost/you/index.php?option=c ... ask=logout
(you is the name of the domain, and localhost is localhost)
In the firebug this is where the link goes, but when I press:



Oops, you've encountered an error 404
It appears the page you were looking for doesn't exist. Sorry about that.
User avatar
Junior Boarder

GK User
Tue May 28, 2013 11:07 am
Are You able to "logout" when pasting this link directly into browser?
User avatar
Moderator

GK User
Tue May 28, 2013 11:10 am
No, I can't.
But I don't know another way to logout, did you know ?
User avatar
Junior Boarder

GK User
Tue May 28, 2013 11:25 am
User avatar
Moderator

GK User
Tue May 28, 2013 12:12 pm
Finally I copied the "login menu" (when you are registerd it appears a button logout) and copied with "only registered" and in the other pages that i need, so I have two but only when a registered is connected.
Thanks for the last solution, it seems a bit hard and difficult, but Thanks !
User avatar
Junior Boarder


cron