LjasonH
Forum Replies Created
-
I saw update 1.4.30…you guys are fast!
Forum: Plugins
In reply to: [AnsPress - Question and answer] Disable Anspress ProfilesI await the release.
Thank you.
Forum: Hacks
In reply to: WP nonce on Admin TablesI typed too soon.
Used an a few if blocks to check for single and bulk
if (nonce is set) { if (bulk is set) { set bulk data array } elseif (single is set) { set single data array } else { die(some bad nonce) }Considered closed.
Forum: Hacks
In reply to: WP nonce on Admin TablesI have single links working now using:
wp_create_nonce('deny-app_' . $item['id']) and !isset($_REQUEST['_wpnonce']) || !check_admin_referer('deny-app_' . $_REQUEST['appid'])Any ideas how I would go about this for bulk actions, and would I have to change the ‘appid’ portion of it to accommodate for bulk actions?
Forum: Hacks
In reply to: WP nonce on Admin TablesBefore I go ahead and paste it, is it bad to set different nonce’s to each action button.
E.g:
$nonce_deny= wp_create_nonce('deny-users'); 'deny' => sprintf('<a href="?page=%s&action=%s&appid=%s&_wpnonce=%s">Deny</a>', $_REQUEST['page'], 'deny', $item['id'], $nonce_deny)And then trying to check with:
case 'deny': if (!wp_verify_nonce($_REQUEST['_wpnonce'], "deny_users")) { die("Wrong Deny Nonce"); }Different method of nonce:
I was setting wp_nonce_field(‘mcwl-nonce’); within my form, and then checking it with check_admin_referer( ‘mcwl-nonce’)
This doesn’t fail, however it says “Are you sure you want to do this?”If needed I’ll post the required code for either method I’ve tried.
EDIT:
Would it matter if this is a subpage of the plugins admin area?I have fixed the issue and added some extra checks with the WangGuard plugin.
That link is very useful as the registrations came from the WP registration, not UU.
Thank you for the support.
~ Closed.– see below –
I am currently using Wordfence and reCaptcha (not sure if I havr to load the API for it), but in about 16 hours I have 180 registrations (I get new user registered email from WP – not from UserUltra).
Are these accounts made from the wp register, and not UserUltra – and would that Spam plugin help with this?
Thank you,
Jay.Solved!
Forum: Hacks
In reply to: Two sites one users databaseI believe they would be as mine would be on separate domains.
Anyone have any other info to help me out, or do I just have to live with single-site dbs?
Forum: Hacks
In reply to: Can't restrict user access for pagesI have decided to not use the WP plugin management system and opt for just a check if the user id is != 0 and post the content accordingly.
~ Solved.
Forum: Hacks
In reply to: Call plugin function from button and then forwardI seem to have fixed it somehow :s (not sure if I had removed all my outputs before the header call).
Thank you all for the help!
Forum: Hacks
In reply to: Call plugin function from button and then forwardAll variables are set and the statements run well and forwards with ‘header’ after I stop other output exit(0);.
However, if I call a function that redirects and stops output
header("Location: http://my.page/error/"); exit(0);it will pull up the ‘Too many redirects’ page.
Is there any way around this (as it won’t work without the exit)?
Note: I have come a little off topic but I feel opening a new thread isn’t necessary.
Forum: Hacks
In reply to: Call plugin function from button and then forwardHmm…The way I posted doesn’t seem to work. No errors output either.
Are there any other ways to check for errors other than (to see why the call isn’t working):
define( ‘WP_DEBUG’, true );
ini_set(‘display_errors’, 1);
error_reporting(E_ALL);