The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Front End User Login Plugin (XML Or Database - ver: 3.0)
#14
Hello Mikeh

I managed to solve the problem by changing your code a little. The problem is here

Code:
<form method="post" action="'.$site_url.'/'.$the_page_slug.'" name="loginform" id="loginform">

When the submit button is clicked it posts the data to SLUG i.e www.yoursite.com/index
where index is the slug of the actual page index.php. When i was testing it locally on my computer it was working fine but when I uploaded it and tried to login it showed me 404 page doesnt exist because the url above is incomplete. So I changed that code to this

Code:
<form method="post" action="index.php?id='.$the_page_slug.'" name="loginform" id="loginform">

Now it works perfectly, when you submit it it goes to the actual page i.e www.yoursite.com/index.php?id=index

This url works both locally and on my hosting server.

I aslo changed the same code for register button and logout button.
Reply


Messages In This Thread
Example site down, having issues - by Rich_K - 2012-11-14, 07:36:37
login box won't display - by horstuff - 2015-11-20, 04:57:25
Front End User Login Plugin (XML Or Database - ver: 3.0) - by usmandgreat - 2011-08-06, 22:39:54



Users browsing this thread: 1 Guest(s)