Made Some Changes / Cleanup / Question

When I installed and setup the pop-up plugin, one option that didn’t immediately seem obvious was the ability to set the height and width AND use javascript to center that vertically and horizontally. When that javascript option was checked, it would resize the popup bigtime. I ended up altering the popover-load-js.php “po_loadMessageBox()” function like this:

Add this at line 105 (after the “if( data ) … loop)

// JCC: Just use JQ to center it, not size it.

jQuery(‘#’ + data).css(‘top’, (jQuery(window).height() / 2) – (jQuery(‘#message’:wink:.outerHeight() / 2) );

jQuery(‘#’ + data).css(‘left’, (jQuery(window).width() / 2) – (jQuery(‘#message’:wink:.outerWidth() / 2) );

This keeps my dimensions and centers it in the middle of the screen.

Also, I didn’t like how it just “appeared”, so I changed lines 263 and 264 in the “popoverajax.php” application to use “display:none” instead of “visibility:hidden”

This allows me to do stuff like:

jQuery(‘#darkbackground’:wink:.fadeIn();

jQuery(‘#’ + data).show(‘slow’:wink:;

in the po_loadMessageBox() function so that the popover sort of fades in nicely.

Granted, I hacked the plugin to get exactly what I want, but I would be awesome if you could code that sort of stuff into the settings as options … what easing to use when showing the plugin, keep the dimensions on center, colors, rounded corners, padding, background colors, etc.

That way, we can totally get the look and feel that we want without having to hack. More options the better!

Another question is all of the .js and .css files. Seems to be a lot of duplication and I wasnt sure of which to modify/override.

Thanks for listening.

John Cokos