professor99
Forum Replies Created
-
This issue was mentioned by me on this forum post with a fix provided. My development version includes this fix which is enabled by setting the admin “Others” tab option “User can edit their posts” to “Default”
Runamok81 the notes in the last post should get rid of the “please wait” message on the button. However I think there is more to your problem. Can you change the files wpuf-add-post.js wpuf-add-post.js as mentioned above and retest. Thanks.
Much thanks ellsweb for your work in finding the jquery $ bug. That’s probably justinwhedon’s problem as well.
As you have found the fix is to replace $(…) with jQuery(…) in the files wpuf-add-post.js wpuf-add-post.js.
The other javascript files are wrapped in the function($) anonymous function which is another way of avoiding this problem.
The cause is a conflict with another plugin or theme that uses a library such as Prototype or Mootools which uses $ for it’s own uses.
More on ways of addressing this problem here.
the_ID() only works for posts being displayed by the loop
From it’s Codex desciption
Displays the numeric ID of the current post. This tag must be within The Loop.
.
In any case there’s more too it that just using the preview=true url with the id of the post.
FrontEnd uses the WordPress wp_editor() function to edit the post which displays the post in the TinyMCE editor.
To preview the post you could try emulating the code for the Preview buttons for the standard admin Add New Post (post-new.php) and Edit Post (post.php) pages.
It would be nice to have this as a feature of Frontend so if you have any luck please let us know.
Cheers
TheProfessorHi adaldesign,
Here’s a link to the preliminary update to the development fork with Post Format included. You will have tick the “Allow post format” option in the “Frontend Posting” options tab for it to show.
It would be appreciated if you can email me feedback at [ redacted ] as follows so I can confirm its operation on a number of platforms.
Server
——-
WordPress Version
PHP Version
error messages (if any)Client
——–
Platform (IBM PC/MAC etc)
Browser Version
error messages (if any)All
—
Outline of any errors that occurred plus steps to repeat it.If you can test it on Internet Explorer 9 and 10 that would be great.
Thanks
TheProfessorAlso helpful would be if you can email me at abruinATihugDOTcomDOTau a link to your add post page and give me a login/password as a user with contributor role (that way all test posts will be given pending status and wont appear on your website).
Thanks justinwhedon for the info.
Submit Post Problem
———————
Version 1.1 behaviour is totally different in this area. For the fork for Add Post on pressing “Submit Post” the button should change to “Please Wait…” as you have seen. On success a info message “Post published sucessfully” should appear above the button and the button should change back to “Submit Post”.The article is submitted by Ajax and the info/submit button changes are done by javascript. Either the Ajax callback may not be happening or the javascript has a problem. I’ve run the code with the same PHP version you have (5.2) and didn’t have a problem. My WordPress version is 3.4.2 and yours is 3.3.2 so it could be related to that but don’t update yet because I would like to see whats going on in case others have the same problem.
What you can do which would be enormously helpful is to open Firefox and then select from the menu Tools->Web Developer -> Web Console.
This may be different on your MAC.Tick all the logging options (Net,JS,Logging) except for CSS.
Then load your new post page.
Add your info to the new post and press the submit button.
Select and copy all the output from the web console and post it to me as a text file at the following address abruinATihugDOTcomDOTau
YouTube
——–As for the contributor problem this is a WordPress capability problem. In order to embed code like this you need the “unfiltered_html” capability which only admin has. See this post for more info.
In that post there is the following submission by zer0ruth which outlines the solution I mentioned earlier.
Youtube Solution 1.
——————-I had the same exact problem: admin tries to embed video, no problem. Author tries to embed same video (same exact code) and it shows up as a link instead.
This is because wordpress has the Author user role defined as someone who can only write and edit their own posts AND cannot post javascript or complicated html.
to change this you have to modify the default user capability. Thankfully, this is easy to do.
Open up the functions.php file in your theme folder. At the top of this file add the following code:
// get the "author" role object $role = get_role( 'author' ); // add "organize_gallery" to this role object $role->add_cap( 'unfiltered_html' );Basically, you are just giving the author user role access to post any kind of code they want by adding the ‘unfiltered_html’ capability. Just make sure that you can trust all of your authors before adding this, because without html filtering, a user could do considerable harm to your site if they decided to post some nasty javascript
YouTube Solution 2
——————A much better way is outlined here.
Simply watch the video on you tube and copy the youtube address from the browsers address bar and paste it directly into the visual area of the editor.
YouTube Solution 3
———————Also mentioned in the same article is shortcodes that give you more control over your video window
Thanks justinwhedon for testing this.
Issue1
======Need to know a few things more about Issue 1.
1. Are you referring to a previous development fork update or the official 1.1 version when you refer to past behaviour?
2. Please check to see if the submitted post got submitted to the database despite the continuous “Please Wait” .
3. See if Edit Post has the same behavior as Add Post on post submission
4. Do the delete/close buttons work?
Can you provide me with these following details
Server
——-
WordPress Version
PHP Version
error messagesClient
——–
Platform (IBM PC/MAC etc)
Browser Version
error messages (Firefox – Firebug Console Messages?)Other Issues
============1. Admin user accounts can add a post and include a youtube embed code, but any other user type cannot?
Need to know more on how you do this
2. Admin, Editor & Author user accounts show the upload/insert for images, etc. above the Description area… Contributors does not show this?
This is a WordPress editor default as contributors (or subscibers) don’t have the “upload_files” capability. See http://codex.wordpress.org/Roles_and_Capabilities for more info. You may be able to change this by using the following function http://codex.wordpress.org/Function_Reference/add_cap appropriately in your themes functions.php file
This sounds like a configuration issue with your homepage. It could be only displaying posts from a certain category or author or only certain posts.
We really need to know much more as follows to help you as a million reasons could be causing this.
1. Have you changed any of the default options for Frontend and WordPress?
2. Is your home page customized or does it just use the default theme settings.
Also please provide the following details
Server
——-
FrontEnd Version
WordPress Version
WordPress Theme
Versions of all other installed WordPress plugins.
error messagesWe also need a link to your home page so we can see what you are talking about.
Tareq is the author of WP User Frontend. The taxonomy code is already in Frontend but is incomplete and commented out.
However I have started to implement this in my development fork. It should be tested and released by the end of next week.
Meanwhile it might be worth trying the development fork as is to see if it is what you need otherwise and works in your situation.
Not sure what you mean by this. Need much more information. WP User Frontend isn’t responsible for displaying posts on your home page. It only acts as a frontend replacement to the admin pages (for adding and editing posts)
Check out the development fork http://wordpress.org/support/topic/frontend-updates-2rrr-fork?replies=13. This may be what you are looking for.
If your talking about post formats such as “gallery” and “aside” these are not implemented. These are really a taxonomy (post_format) and might be implemented with the custom taxonomy feature that Tareq has been working on. In any case it might be nice to have this as an option to emulate the normal wordpress add post page.
I’m assuming you mean post type? If so for Add Post use post_type shortcode option. If not please elaborate.
* Shortcode examples::
*
* [wpuf_addpost]
* [wpuf_addpost close=”false”]
* [wpuf_addpost close=”false” redirect=”none”]
*
* Shortcode options:
*
* post_type: post | <otherPostType>
* post: (default)
* <otherPostType>: other post typesThe next release of this development fork 4.0 is now available.
This update sets WP User Frontend default edit/add/delete post permissions to WordPress defaults. Old installations retain previous settings.
This hasn’t yet been tested on Internet Explorer 9 & 10 and I would be grateful if someone could test this especially with the WordPress 2010 and 2011 themes.
The main differences from 1.1-fork-2RRR-3.0 follow:
* Added “Users can post?” option.
* Added “default” parameter for “Users can edit post?” option.
* Added “default” parameter for “Users can delete post?” option.
* Added “default” parameter for “Post Status” option.
* Added version to support option page.
* Added Downgrade menu
* Better language support for info div
* Enhanced security
* Added $post_type parameter to wpuf_can_post filter.
* Added $post_id parameter to wpuf_can_edit filter.
* Added wpuf_can_delete filterOther changes are listed in the README at the following link
http://2rrr.org.au/downloads/wp-user-frontend/2RRR_4_0/README_2RRR_4_0.txt
Screenshots for the edit page can be found at the following links (Same as 3.0)
http://2rrr.org.au/downloads/wp-user-frontend/2RRR_4_0/screenshot_top_2RRR_4_0.png
http://2rrr.org.au/downloads/wp-user-frontend/2RRR_4_0/screenshot_bottom_2RRR_4_0.png
It currently has only been tested in the following configurations.
WordPress 3.4.2
Apache Server
PHP 5.2 & 5.3
WordPress 2010 Theme
WordPress 2011 Theme
Firefox 16.0.2
Safari 5.0.533.16 (should work 4.1+)
Chrome 23.0.1271.95m (should work 5.0+)
Internet Explorer 7.0 & 8.0
Windows XPBug Reports for other configurations would be greatly appreciated.
The update can be downloaded at the following link
http://2rrr.org.au/downloads/wp-user-frontend/2RRR_4_0/wp-user-frontend_1_1_2RRR_4_0_alpha.zip
A Github repository is available at the following link
https://github.com/professor99/WP-User-Frontend/tree/2RRR
Cheers
TheProfessor