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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Hack, v3.0] Auto-open 'page options' (slug, tags, navigation, etc.)
#1
This is a quick hack (not upgrade-safe!) for auto-opening the page options in the page edit section. I am currently setting up a v3.0 beta testing site so having the options for slugs, navigation, etc. open without having to click is a bonus for me. Haven't checked on v2.03.1.

The file to be edited is at /admin/template/js/jquery.getsimple.js, look for the comment

Code:
// edit.php
at line number 206 or thereabouts. Right below that comment, insert the following snippet which simply slides open the options and then toggles the state of the button with which you would normally open up the page options.
Code:
// START Auto-open page options on edit page load
    $("#metadata_window").slideToggle('fast');
    
    $("#metadata_toggle").toggleClass('current');    
// STOP

Maybe this is helpful for someone else, too. Enjoy.
Reply


Messages In This Thread
[Hack, v3.0] Auto-open 'page options' (slug, tags, navigation, etc.) - by polyfragmented - 2011-03-15, 22:54:12



Users browsing this thread: 3 Guest(s)