Support

  1. Resqscan
  2. Bug Report
  3. Monday, May 26 2014, 08:09 AM
How do I install a "logout" button, preferrably next to "submit" and "cancel".

I will keep digging away awaiting an answer, but can't seem to find the solution.

I am running Easy Profile Basic on Joomla 3.3
admin Accepted Answer
Admin
Hi,
sorry this is not a feature of Easy Profile.

Anyway, you can do this with template overriding, the edit profile page is the same of Joomla (simply the tabs are generated by a javascript).

NOTE: Joomla not allow to create a logout button even , on our site we have done modifying core files of Joomla.

If you want we can send you the instruction to do this but when you update Joomla have to do it again.
  1. more than a month ago
  2. Bug Report
  3. # 1
Resqscan Accepted Answer
Thanks. You can send instructions.

Do you recognize these error screens?
  1. more than a month ago
  2. Bug Report
  3. # 2
admin Accepted Answer
Admin
Thanks. You can send instructions.

sorry, but we need your site details to check that you have no other template override for edit screen (I see from your screenshot that you use a Joomlashine template, and it has often already an override for this).

Do you recognize these error screens?
This is a warning generated by your template, jsntplframework system plugin it is not our. You must contact Joomlashine support.
  1. more than a month ago
  2. Bug Report
  3. # 3
Resqscan Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 4
admin Accepted Answer
Admin
We need access to backend in template manager.
You can use the form below the reply in "site details" tab.
  1. more than a month ago
  2. Bug Report
  3. # 5
Resqscan Accepted Answer
Info provided below
  1. more than a month ago
  2. Bug Report
  3. # 6
admin Accepted Answer
Admin
Hi,
I have added this code to line 94 of file /templates/jsn_boot_pro/html/com_users/profile/edit.php to generate the button on edit profile page
<a class="btn btn-danger'" href="/component/users/?task=user.logout&Itemid=542"><span>Logout</span></a>


Now to work and not give errors, you must comment the line 89 of file /components/com_users/controllers/user.php.
//JSession::checkToken('request') or jexit(JText::_('JInvalid_Token'));
  1. more than a month ago
  2. Bug Report
  3. # 7
Resqscan Accepted Answer
Thanks for adding the Logout button.

But I am lost in translation. I have found Line 89 in the user.php file you mention, but I am not sure what I am suppose to do with it. You say "comment", but I do not understand. Do I delete this line?
  1. more than a month ago
  2. Bug Report
  3. # 8
admin Accepted Answer
Admin
Hi,
change the line 89 from
JSession::checkToken('request') or jexit(JText::_('JInvalid_Token'));

to
//JSession::checkToken('request') or jexit(JText::_('JInvalid_Token'));


or delete
  1. more than a month ago
  2. Bug Report
  3. # 9
Resqscan Accepted Answer
I deleted the line. Still get an "invalid token" error after selecting logout button.
  1. more than a month ago
  2. Bug Report
  3. # 10
admin Accepted Answer
Admin
Hi,
sorry for late reply, it was night for us.

Have you a possibility to send me an FTP account?
  1. more than a month ago
  2. Bug Report
  3. # 11
Resqscan Accepted Answer
Here is FTP info
  1. more than a month ago
  2. Bug Report
  3. # 12
admin Accepted Answer
Admin
Hi,
thanks but I see only a empty folder with this FTP access!:(
  1. more than a month ago
  2. Bug Report
  3. # 13
Resqscan Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 14
admin Accepted Answer
Admin
I need to access to your site folders, you have provide me an FTP account that not allow me to see these files.
  1. more than a month ago
  2. Bug Report
  3. # 15
Resqscan Accepted Answer
Content Protected
  1. more than a month ago
  2. Bug Report
  3. # 16
admin Accepted Answer
Admin
No sorry (perhaps should be fine, but I'm not sure)

Two questions:
- which method you used to edit the file user.php?
- you've tried the FTP credentials that you sent me?
  1. more than a month ago
  2. Bug Report
  3. # 17
Resqscan Accepted Answer
- I use windows word pad to edit php files

- I setup the FTP account just for you. I only use cpanel/ file manager to manage files
  1. more than a month ago
  2. Bug Report
  3. # 18
admin Accepted Answer
Admin
Hi,
so post me your cpanel details. please.
  1. more than a month ago
  2. Bug Report
  3. # 19
Resqscan Accepted Answer
Submitted
  1. more than a month ago
  2. Bug Report
  3. # 20
admin Accepted Answer
Admin
Sorry don't work.
cpanel link is ok but I get message "The login is invalid"
  1. more than a month ago
  2. Bug Report
  3. # 21
Resqscan Accepted Answer
confirmed
  1. more than a month ago
  2. Bug Report
  3. # 22
trantelo Accepted Answer
Easy Profile Support wrote:

Hi,
I have added this code to line 94 of file /templates/jsn_boot_pro/html/com_users/profile/edit.php to generate the button on edit profile page
<a class="btn btn-danger'" href="/component/users/?task=user.logout&Itemid=542"><span>Logout</span></a>


Now to work and not give errors, you must comment the line 89 of file /components/com_users/controllers/user.php.
//JSession::checkToken('request') or jexit(JText::_('JInvalid_Token'));


I have the same issue, i wish to add a "Logout" button.
But i cant find the file edit.php in this directory you give: /templates/jsn_boot_pro/html/com_users/profile/edit.php..
  1. more than a month ago
  2. Bug Report
  3. # 23
admin Accepted Answer
Admin
You can copy edit.php from /components/con_users/views/profile/edit.php

This is not a issue this is a Joomla hack to allow you to add logout button anywhere.
  1. more than a month ago
  2. Bug Report
  3. # 24
trantelo Accepted Answer
Hi, thanks i found the file, in which folder i have to copy it before editing?
  1. more than a month ago
  2. Bug Report
  3. # 25
admin Accepted Answer
Admin
You must copy it into /templates/your_template_folder/html/com_users/profile/ (create folder if not exists)
  1. more than a month ago
  2. Bug Report
  3. # 26
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.