professor99
Forum Replies Created
-
Wont be too long a wait for the Pro version. We already have the basic version up and running and mostly tested but we may add more features before it is released. It probably would have a price tag as we have great plans for future development and as is more complex it will require a higher level of support than the piecemeal support we can afford for standard Frontend due to time commitments.
However we will continue to develop standard Frontend with some of the features from Pro trickling down as time proceeds. Some minor changes will be added in the next development version in the next day or two. Have you tried it yet. It is quite a step up from version 1.1. Would very much appreciate any comments on it.
Thanks for the code above. It will greatly help other Frontend users that have the same problem
Hi Kyle,
You forgot to add the links to the screenshots.
Otherwise I’m not too sure what your after.
As to the gallery I actually posed the question in the reply to Rkarels comment in the link in my post above to what users would like to see here.
Also have you tried the Rich Editor option. This allows users to insert images in the post.
The development version has some changes in this area which may fix the problem
Sorry but your Anglais (excuse my spelling) is a little bit to hard to understand. I’m not sure what your really after but we are about to release a Pro version of Frontend in which just about everything is customizable. We have a bit more testing to do but it will be worth the wait.
Alternately you can fix Access Control as mentioned here
Forum: Plugins
In reply to: Error using WP User Frontend and WordPress AccessControlSee this thread for the cause and solution
This is actually caused by a slight Access Control bug.
Access Control hooks the WordPress get_page() function during plugin load. Unfortunately it calls the pluggable function is_user_logged_in() which means it will crash WordPress if any other plugin calls this function after during plugin load.
Code from wordpress-access-control.php.
add_filter( 'get_pages', array( 'WordPressAccessControl', 'get_pages' ) ); ... class WordPressAccessControl { ... function get_pages( $pages ) { // Don't affect the display of pages when viewing the list in the admin if ( is_admin() ) { return $pages; } // Whether or not the user is logged in $auth = is_user_logged_in(); ... } ... }The ideal solution is to obtain the user id without using the pluggable functions and apply this hook before the plugins load but this isn’t so easy (try following the trail in pluggable.php).
A less perfect solution is to forgo the filtering of the pages during plugin load and apply the action hook at high priority at the action hook ‘init’ which occurs after pluggables have been loaded and the user has been authenticated as follows.
New code (NB delete old get_pages filter)
add_action( 'init', array( 'WordPressAccessControl', 'add_get_page_hook' ), 0 ); class WordPressAccessControl { ... function add_get_page_hook() { add_filter( 'get_pages', array( 'WordPressAccessControl', 'get_pages' ) ); } ... }However there is the slight risk that other plugins with this hook at priority 0 that use get_page will miss out. You can use the following code to remove that possibility but no guarantees it will be future proof. It simply does what $wp->init() does in wp-settings.php a little bit earlier to no ill effect.
New code (NB delete old get_pages filter)
add_action( 'after_setup_theme', array( 'WordPressAccessControl', 'add_get_page_hook' ), 0 ); class WordPressAccessControl { ... function add_get_page_hook() { wp_get_current_user(); add_filter( 'get_pages', array( 'WordPressAccessControl', 'get_pages' ) ); } ... }As far as I can see this is the only Access Control hook that has this problem.
As to other plugins that cause this problem the one that has the most reports is WP User Frontend Version 1.1 but there is a new development version of this that fixes the problem.
Cheers
TheProfessorHave found the problem!!!!
Basically during the loading of Frontend it calls a function wpuf-get-option() in the file:function attachment.php:__construct() which is called during the construction of the class WPUF_Attachment in which it resides.
This eventually results in the calling of the file:function wpuf-functions.php: wpuf_get_pages() which calls WordPress function get_pages().get-pages() normally works fine until WordPress Access Control is enabled which hooks this function. The problem is that the WordPress Access Control hook function calls is_user_logged_in() which is a WordPress pluggable function which isnt loaded till after all plugins have been loaded. Hence the Fatal Error.
In summary this is a WordPress Access Control bug as it shouldn’t be using a pluggable function in it’s hook.
The development version doesn’t use wpuf-get-option during the construct phase anymore so it doesn’t have a problem (NB The attempt to load the development version reported above failed leaving the old version and error intact)
The new development release caches the results of a function that calls this. Try it to see if it solves your problem and please report back the results
Stay tuned. Redirects to url are included in the next developement release in a day or two or just edit the developement release as stated near the current end of the development thread above
Check your email
That actually is normal behaviour for Version 1.1.
The development version displays it as a list
Weird stuff. Haven’t come across this behaviour before with the.”Upload/Insert button”. Try the development version to see if that fixes it.
What do you mean by “Kitchen Sink”. It’s strangely the name of a new theme I just created yesterday for WordPress but Im sure thats got nothing to do with it.
Frontend Version 1.1 only has problems with uploading into the image library in WP Version 3.5.1. The latest development version of frontend includes a fix for this. Alternatively if you want to stick with version 1.1 code fixes are provided here.
Probably a CSS conflict. Could be different on every browser so there is really nothing here for us to be able to help you. Thousands of possibilities so this is one for you to figure out. Try using Firefox and Firebug. Alternatively use Google Chrome with it’s developer tools. Both these tools are essential for making sure your website plays nice on all browsers except Internet Explorer which has it’s own set of tools and is generally incompatible with itself and everybody else unless you use strict DOCTYPEs.