badgeguy
Forum Replies Created
-
Solved it!!!!!!!!!!!
My issues were multiple:
WPPoll utilizes AJAX for storing data, and as such, required access to /wp-admin/admin-ajax.php. This was disabled by selecting (checking) “Prevent Subscribers Access to the WordPress Admin” in the Mingle plug-in settings. When this was unchecked, WPPoll began functioning as expected, but this left the ability for Subscribers to get to the Dashboard.
To override this, it is necessary to add a few lines of code to the functions.php file in your theme to allow access to admin-ajax.php, but nothing else.
add_action( 'admin_init', 'blockusers_init' ); function blockusers_init() { if (! is_super_admin() && $_SERVER['PHP_SELF'] != '/wp-admin/admin-ajax.php' ) { wp_redirect( home_url() ); exit; } }
This will cause any requests into /wp-admin/ to be redirected to the home page if the user is not logged in as an administrator.
Note: Make sure that if your site is not in the root of your domain (e.g. https://www.somesiteurl.net/something/), you will need to add the appropriate directory(ies) to the beginning of the /wp-admin/admin-ajax.php path.
Now the code will run and the directory is not easily accessible.
Additional information that may help is that you must place the list of tag names in quotes (e.g.
[ nggtags gallery='tag1,tag2,tag3' ]
) for it to work.I have this working now, so, if I can offer any assistance, please let me know here.
I have just had some success. You can not use non-alphanumeric characters in tags. Even dashes will cause a match to fail.
Now on to the next problem… trying to get the nggallery.css file to load on pages generated with the do_shortcode() call.
Same issue here. Running 3.4.1 with the latest NextGenGallery and shortcodes do not work, even on a basic page. Looking to do exactly what you have described above with do_shortcode.
I am having a very similar issue.
I am using the WP Mingle plug-in and having members register their accounts through it.
Members registered through Mingle can not vote and after clicking the Vote button, are directed to their Mingle Activity page.
Administrators may vote without issue though.
Could this be a conflict between WP Mingle and WordPress Poll?
This issue occurs even if I set the voting option to “Anyone can poll.”
Any thoughts?