Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 11:55:43 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155556 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Addon File Editor Issue?  (Read 162 times)
david doc watson

Offline Offline

Posts: 49



« on: February 06, 2012, 09:29:34 AM »

HI,

I'm running WB2.8.1 on various sites.

I have added a front end login to a few site that have a Members' Area that requires login. I have used the code as suggested and added it to the index.php file with the first line being:

<form name="login" action="<?php echo LOGIN_URL; ?>" method="post"> and that all works fine - the member can login from any page and then access the Members' Area.

I decided to add a re-direct so when they login, Members' are taken immediately to the Member's Area homepage, so I've added the redirect code as below.

<form name="login" action="<?php echo LOGIN_URL; ?>?redirect=<?php echo WB_URL; echo'/pages/'; echo 'members-area.php';?>" method="post">

This code works, however when trying to edit the index.php page I now get the error message:

Method Not Implemented

GET to /modules/addon_file_editor/action_handler.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


If I remove, the redirect code, the Addon File Editir (an excellent module) works properly.

Is there something wrong with the code or do I need to change a setting in the Addon File Editor Module?

Thanks

David 'Doc' Watson
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2859



WWW
« Reply #1 on: February 06, 2012, 12:50:57 PM »

Code:
<form name="login" action="<?php echo LOGIN_URL?>?redirect=<?php echo WB_URL; echo'/pages/'; echo 'members-area.php';?>" method="post">


Try:
Code:
<form name="login" action="<?php echo LOGIN_URL.'?redirect='.WB_URL.'/pages/members-area.php'?>"  method="post">
instead

Remember to have a space between " and method!!

Have fun,
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
david doc watson

Offline Offline

Posts: 49



« Reply #2 on: February 06, 2012, 04:55:00 PM »

Genius!

Works perfectly. Thanks
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!