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 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 861 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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plugins don't work anymore when site is online
#12
Light-Pix Wrote:[p01-contact] does refer to user.xml,
...
How would I change it to point to the current user?
For a quick solution, you can edit the file p01-contact_gs.php in the plugin directory:
Code:
function admin_email()
{
    $data = getXML(GSDATAOTHERPATH . 'user.xml');
    return $data->EMAIL;
}
The file user.xml is only valid for GS versions <3.0. For 3.0+, there can be more than one user.xml-equivalent file, stored in (webroot)/data/users/ and named according to the login names of your registered users. You can substitute one of those filenames in the admin_email() function mentioned above.

In fact, you can manage without that function. The email address returned is only set as the default for the contact form and it can be entered manually in the p01-contact set-up page in the GS backend – after all, it's not very likely that contact forms will be added or removed frequently. In this case, simply add a return instruction at the top of the function definition, before $data = ...
--
Nick.
Reply


Messages In This Thread
Plugins don't work anymore when site is online - by hameau - 2011-10-14, 17:58:11



Users browsing this thread: 4 Guest(s)