Change standard login and logout links
Posted by botas
Change standard login and logout links December 17, 2009 04:48PM |
Registered: 15 years ago Posts: 2 |
Hi everybody,
we are integrating this great forum into our community. We already wrote a plugin to bridge our user profiles with phorum.
Currently we are trying to change the standard links e.g. for login.php
The reason is that we want to use our own login page.
I see two solutions to do this by a hack:
1. Change PHORUM_LOGIN_URL in /include/phorum_get_url.php
2. Redirect every call of /login.php to our own login page
With the two above mentioned solutions we cannot be sure that after an upgrade of the phorum this changes won't be overwritten. So we would like to solve this issue writing a module.
Our Problem:
We cannot find a hook in the documentation that might fit our needs. We would need a hook that is triggered after the phorum loads its constants and before the login link is shown.
Which hook could you suggest? Any other idea that is upgrade-resistant?
Thank you very much!
Botas
we are integrating this great forum into our community. We already wrote a plugin to bridge our user profiles with phorum.
Currently we are trying to change the standard links e.g. for login.php
The reason is that we want to use our own login page.
I see two solutions to do this by a hack:
1. Change PHORUM_LOGIN_URL in /include/phorum_get_url.php
2. Redirect every call of /login.php to our own login page
With the two above mentioned solutions we cannot be sure that after an upgrade of the phorum this changes won't be overwritten. So we would like to solve this issue writing a module.
Our Problem:
We cannot find a hook in the documentation that might fit our needs. We would need a hook that is triggered after the phorum loads its constants and before the login link is shown.
Which hook could you suggest? Any other idea that is upgrade-resistant?
Thank you very much!
Botas
Re: Change standard login and logout links December 18, 2009 01:56PM |
Registered: 20 years ago Posts: 340 |
Re: Change standard login and logout links December 18, 2009 02:13PM |
Registered: 15 years ago Posts: 2 |
Hi David,
yes this is also a good idea. Thank you.
Finally I found a solution to solve this issue writing a module that redirects to my pages. I used the "page_<phorum page>" hook to get it working.
So I used hooks:
1. page_login (called for login.php to mange login and logout and lost pass)
2. page_register (called for register.php)
CU
Botas
yes this is also a good idea. Thank you.
Finally I found a solution to solve this issue writing a module that redirects to my pages. I used the "page_<phorum page>" hook to get it working.
So I used hooks:
1. page_login (called for login.php to mange login and logout and lost pass)
2. page_register (called for register.php)
CU
Botas
Sorry, only registered users may post in this forum.