windmark
Forum Replies Created
-
Forum: Plugins
In reply to: [NextGEN Download Gallery] Select All / Deselect AllThank you for this!
I did it in my own way, creating one button with Select/Deselect and adding this codevar $selected = 0; <?php /* reveal "select all" button and active it */ ?> $("input.ngg-download-selectall").show().click(function() { if ($selected == 0) { $(this.form).find("input[name='pid[]']").prop({checked: true}); $selected = 1; } else { $(this).closest("form").find("input[name='pid[]']").prop({checked: false}); $selected = 0; } });I’m sure there’s a more elegant way of doing this, but this was the most simple.
By the way, why is not all buttons linked to the language files? I can’t, for instance, find the select all text in the po-file.
Forum: Plugins
In reply to: [NextGEN Download Gallery] Repositon download buttonsAh that worked just fine, thank you very much!
/Marcus Windmark
Forum: Plugins
In reply to: [Login Logout Menu] Add username to logged in textI don’t know if there is a specific way to do that with the plugin, but it’s really easy if you edit the php code. Just add the following code where you are sure that a user is logged in.
$current_user = wp_get_current_user();
echo “You are logged in as ” . $current_user->user_login;You can get much info from that function, as this page shows http://codex.ww.wp.xz.cn/Function_Reference/wp_get_current_user