professor99
Forum Replies Created
-
This isnt that easy unlike input text fields.
The easiest way to do it is to add the red required * to the featured image label and use the class=”requiredField” attribute on the “UploadImage” button with javascript updates
Change
<label for="post-thumbnail"><?php echo wpuf_get_option( 'ft_image_label' ); ?></label> <div id="wpuf-ft-upload-container"> <div id="wpuf-ft-upload-filelist"></div> <a id="wpuf-ft-upload-pickfiles" class="button" href="#"><?php echo wpuf_get_option( 'ft_image_btn_label' ); ?></a>to
<label for="post-thumbnail"><?php echo wpuf_get_option( 'ft_image_label' ); ?> <span class="required">*</span></label> <div id="wpuf-ft-upload-container"> <div id="wpuf-ft-upload-filelist"></div> <a id="wpuf-ft-upload-pickfiles" class="button requiredField" href="#"><?php echo wpuf_get_option( 'ft_image_btn_label' ); ?></a>Then add code to the featImgUploader and removeFeatImg functions in wpuf.js to check for that a featured image is present and remove/add the class=”requiredField” to the “UploadImage” button to suit.
This one is definitely a bug. I think wpuf_user_edit_profile_form() should be $edit_profile->show_form() in wpuf-editprofile.php.
To change yourself find the file wpuf-edit-user.php and change the function wpuf_edit_users() to this:
function wpuf_edit_users() { global $edit_profile; ob_start(); //if user is logged in if ( is_user_logged_in() ) { //this user can edit the users if ( current_user_can( 'edit_users' ) ) { $action = isset( $_GET['action'] ) ? $_GET['action'] : 'show'; $user_id = isset( $_GET['user_id'] ) ? intval( $_GET['user_id'] ) : 0; $userdata = get_userdata( $user_id ); switch ($action) { case 'edit': //if user exists if ( $user_id && $userdata ) { $edit_profile->show_form( $user_id ); } else { printf( __( "User doesn't exists", 'wpuf' ) ); } break; case 'wpuf_add_user': wpuf_add_user(); break; default: wpuf_show_users(); } } else { // user don't have any permission printf( __( "You don't have permission for this purpose", 'wpuf' ) ); } } else { //user is not logged in printf( __( "This page is restricted. Please %s to view this page.", 'wpuf' ), wp_loginout( '', false ) ); } return ob_get_clean(); }I certainly can see the trend there in your given link. The user obviously didn’t read the WordPress Access Control main page which states “Requires: 2.9 or higher” WordPress. is_user_logged_in() has existed in WordPress since version 2.0.
As mentioned in my earlier post we need details in other to help you.
Hi Runamok81
Thanks heaps for this info.
I haven’t yet updated to WordPress 3.5 so this is great news. Also knowing it works on IIS6 is a help.
I’m intrigued that you mentioned it doesn’t work with IE8 compatibility mode. I gather you mean “Compatibility View” which makes IE8 emulate IE7. This works fine for the website I am currently developing and I did test this extensively with the WordPress 2010/2011 themes. Could you please send me details of how it breaks. Extra details such as the WordPress Theme you are using and the DOCTYPE of the webpages it breaks on would be useful.
Also did you get a chance to test it on IE9?
Thanks
The ProfessorThanks Reigel for mentioning http://reigelgallarde.me/programming/wp-user-frontend-multiple-forms/. It certainly looks interesting. Tareq mentioned to me earlier that he was thinking about something like this and I was not so sure of the possibilities till I saw your YouTube video.
If you are interested in forking my development version on GitHub and adding your code I got one more update in the works which should be published by the end of this week. This is mostly a security update just to make FrontEnd conform with WordPress Roles and Capabilities and tighten up some areas. After this is done it would be great if we can integrate both for development purposes.
Tareq has mentioned he is thinking of updating his code to do much the same but implemented in a different manner. However he is currently time limited because of work commitments and this could be a while in the making. However he is quite impressed with that others such as us are making such efforts to improve FrontEnd.
Hi ivomasterche,
Actually Tareq (the author of Frontend) has already fixed it in the github repository https://github.com/tareq1988/WP-User-Frontend and it is included in the development version I am working on http://wordpress.org/support/topic/frontend-updates-2rrr-fork.
Tareq would be very interested in a Bulgarian translation. He can be directly contacted via his website tareq.wedevs.com
Cheers
TheProfessorHi Viraladmin,
As you had found plugin conflicts are often the case of why Frontend doesn’t work on some WordPress installations.
Thanks for info on this conflict. WordPress Access Control certainly looks like an interesting and useful plugin. It probably uses WordPress Filter and Action hooks to implement it’s functions which may conflict with Frontend and cause the behaviour you have observed.
We don’t normally investigate conflicts with other plugins unless they are popular but we do point users to probable areas in our code to investigate if given enough information as pointed out in my earlier post above. Of course this should be done in conjunction with the support forum for the other conflicting plugin.
Cheers
TheProfessorWhoops, forgot to include the Silverlght plugin version.
Mines 4.1.10329.0Thanks heaps Runamok for testing this.
Ive tried this on my install without problems with attachment.php set to use only silverlight so it may be a compatabilty problem. Below is my standard help message with my configuration. Post me back on this email address (abruinATihugDOTcomDOTau with your configuration. Also see if flash has the same problem. I also noticed in other posts that you had similar problems with previous versions of frontend as well. PS It would be great if you could tried this updated version of Frontend on your IE9 machine as well.
Thanks TheProfessor
Add Your Info (myinfo)
Server
——-
WordPress Version (3.4.2)
Apache Version (2.2.22)
PHP Version (5.2,5.3)
MySQL version (5.1.65)
Versions of all other installed WordPress plugins.
error messagesClient
——–
Platform (IBM PC/MAC etc) – (IBM PC)
Browser Version (IE7, IE8)
error messagesHi leoly,
If you want help you firstly have to provide specifics.
ie.
Server
——-
WordPress Version
Apache Version
PHP Version
MySQL version
Versions of all other installed WordPress plugins.
error messagesClient
——–
Platform (IBM PC/MAC etc)
Browser Version
error messagesAll
—
Outline of how the error occurred plus steps to repeat it.We may also ask later for a private email and test site URL and a login but don’t post these here as this is a public site.
Cheers
The ProfessorPS. This plugin works fine for WordPress 3.3 -> 3.4.2, PHP 5.2.4 and higher, MySQL 5.0 and higher, and most popular browsers released within the last 3 years. WordPress 3.5 has just been released and this hasn’t been tested yet but should be fine. Some other plugins may cause problems with WP USer Frontend
My moneys on setnaps for this. A few themes seem to forget about wp_footer() and this breaks a lot of plugins. It’s omission also means that no plugins can be added to the footer by the WordPress dashboard
Basically this error means that wp-includes/js/jquery/ui/jquery.ui.sortable.min.js hasn’t been loaded which is done by javascript inserted into your page footer by this function.
A quick check is to view the page source in your browser and do a find for jquery.ui.sortable.min.js. If it’s not there then this is the problem for sure.
Try one of the default WordPress themes 2010 or 2011. If Frontend image upload works on these then your theme has definitely omitted wp_footer(). If so look at your themes footer file wp-content/themes/<your theme>/footer.php to see if wp_footer() is there. This isn’t a 100% check as some themes do not use this file.
Cheers
The ProfessorThis very much depends on how that plugin is filtering the categories.
Frontend uses two standard wordpress calls to get the categories.
For dropdowns it uses wp_dropdown_categories().
For checklists it uses wp_terms_checklist().
Try the various Frontend category display options in case Restrict Categories Plugin already filters one of these.
Else this is really a question for Restrict Categories Plugin support.
eg Does Restrict Categories Plugin filter wp_dropdown_categories() and wp_terms_checklist()? If not what WordPress category functions does it filter?
With that info you could code Frontend (or Restrict Categories Plugin) to suit
What version of Safari are you using? Should work for Safari 4.1+. Otherwise you need to provide some more info on your platform (Apple/Windows operating system) and server (WordPress and PHP servers) plus what it does work on.