Wrong activation/confirmation link in email

It seems to use (src): $message .= network_site_url( “wp-login.php?action=rp&key=$key&login=” . rawurlencode( $user_login ), ‘login’ ) . ‘&wp_lang=’ . $locale . “\r\n\r\n”; but not wp_lostpassword_url(), most likely because of the extra arguments, like key and wp_lang and a different action value. You could look into the network_site_url filter during the lostpassword_post action, that is fired within … Read more

Is there existing plugins to “Click-to-Launch” embedded Flash / SWF content?

You can use something like this: Embed this script: http://jquery.lukelutman.com/plugins/flash/jquery.flash.js Then in your functions.js (function($) { $(document).ready(function (){ $(“.flash”).click(function(e) { $(this).parent().empty().flash({ src: $(this).attr(‘href’) }); e.preventDefault(); }); }); })(jQuery); Your markup would be something like: <div class=”flash-container”> <a href=”https://wordpress.stackexchange.com/questions/40287/flash.swf”><img src=”placeholder.jpg”></a> </div> For more info check http://jquery.lukelutman.com/plugins/flash/ i hope this makes some sense 🙂 Btw: this isn’t … Read more

Activate a plugin via a SQL query

If your goal is automated plugin activation you don’t have to do it via SQL. You could, of course, but why not use functionality that comes with WordPress? As I mentioned in my comment, the data has been serialized so you just have to unserialize the data, add your plugin, re-serialize the data, and update … Read more

Clean way to initialize plugin in newly-added site when plugin has been network activated?

After looking through Make WordPress, it looks like this is a known issue that won’t be fixed due to scalability concerns with large networks. That same issue linked above recommends doing exactly the solution discussed above. Specifically, that would look something like this: public static function 145561_activate_new_blog($blog_id) { if (is_plugin_active_for_network(plugin_basename(__FILE__))) { // do activation for … Read more

Apparent errer when installing plugin

I found the problem. I didn’t realize this was a generic message for pretty much all errors. I stripped everything out of the activation routine (similar to above) and ran it… got no errors. Started adding “stuff” back. And it appears a call to flush() at the end of the activation function trying to force … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)