Nice Start…
-
Does what I needed. In my implementation, I mounted a Microsoft folder (on my file server) onto my Ubuntu LAMP server. My WordPress site then uses m1downloadlist to serve the mounted copy of the remote downloads folder. That way, untrained staff can easily modify the Microsoft folder, and they never have to touch WordPress or Linux except as a user.
However, I had to do a little fixing to get m1downloadlist to run smoothly:
1. Debugger throws a warning about wp_enqueue_style being called incorrectly. I fixed this by wrapping the call as follows:
function m1dll_fix(){
wp_enqueue_style( ‘m1dll’, plugins_url(‘main.css’, __FILE__) );
}
add_action ( ‘wpenqueue_scripts’, ‘m1dll_fix’ );2. PHP chokes on every unused optional parameter (in my case, this was d, label, target, sort, and nosize). Clear each error individually by using “isset” so that PHP never sees a NULL. I replaced:
$_REQUEST[‘d’]
with:
( isset($_REQUEST[‘d’]) && $_REQUEST[‘d’] )
to clear the error caused by an undefined ‘d’, and applied similar fixes to the other options that I am not using.
- The topic ‘Nice Start…’ is closed to new replies.