WordPress.org

Ready to get started?Download WordPress

Forums

125

WP User Frontend
[closed] Frontend Updates 2RRR Fork (135 posts)

  1. professor99
    Member
    Posted 1 year ago #

    Hi all,

    The code updates I have been mentioning in various packages are finally to a point where they can be released.

    The Readme follows.

    [ Moderator note: Backticks inserted, you really don't need to post that here. A link would have sufficed. ]

    README 2RRR 1.0 For WP User Frontend Version: 1.1 fork: 2RRR 1.0 alpha
    ========================================================
    
    Introduction
    ------------
    
    This is a fork from WP User Frontend Version 1.1.
    It currently only applies to the Add Post and Edit Post functionality on WP User Frontend.
    Use of AjaxForm for Ajax style posts is the next step in this project.
    It focuses on both useability and ease of customerization.
    There are some bug fixes included as well.
    
    Some of these changes are outlined by the following items on the WP User Frontend support forum.
    
    http://wordpress.org/support/topic/custom-editors
    http://wordpress.org/support/topic/plugin-wp-user-frontend-redirecting-after-posting
    http://wordpress.org/support/topic/allow-to-choose-category-filter
    http://wordpress.org/support/topic/close-button-and-return-on-post
    http://wordpress.org/support/topic/security-problem-doesnt-observe-user-capabilities
    
    Changes from WP User Frontend Version 1.1
    -----------------------------------------
    
     * Main Changes from Version 1.1:
    
     * Custom editor option added.
     * Editors use max availiable width.
     * Close button added as shortcut option and redirects set to suit.
     * wpuf_allow_cats filter added.
     * Security checks updated.
     * Code updated to allow use of wpuf_can_post filter for non logged in users.
    
    Status
    -------
    
    This code is ALPHA! Use it at you own risk!
    
    It currently has only been tested in the following configuration.
    
    Wordpress 3.4.2
    Firefox 16.0.2
    IBM PC
    
    This code is a public development fork of WP User Frontend.
    It is not written by or supported by the author of WP User Frontend (Tareq Hasan) and is not an official release of WP User Frontend.
    So please be aware this code may not be included in the next official release of WP User Frontend.
    
    Bugs
    -------
    
    Please report bugs via this special topic on the WP User FrontEnd forum 
    
    http://wordpress.org/support/topic/frontend-updates-2rrr-fork
    
    Please report only bugs here. 
    
    All suggestions for updates to WP User Frontend need to go to the normal support forum.
    
    http://wordpress.org/support/plugin/wp-user-frontend
    
    Download
    --------
    
    http://2rrr.org.au/downloads/wp-user-frontend/wp-user-frontend_1_1_2RRR_1_0_alpha.zip
    
    Installation
    ------------
    
    This update requires the pre-installation of WP User FrontEnd version 1.1.
    If you have another version of WP User Front End installed this update will not work.
    Changed code is in /wp-user-frontend in the same directory structure as the original files.
    Before using make a copy of your original files for safe keeping just in case something breaks.
    Then copy the files across.
    
    Examples
    --------
    
    Examples of use are provided in the directory /examples.
    
    Add Post Shortcodes
    -------------------
    
    Shortcode examples::
    
    	[wpuf_addpost]
    	[wpuf_addpost close="false"]
    
    Shortcode options:
    
    	post_type: post | <otherPostType>
    		post: (default)
    		<otherPostType>: other post types
    	close: true | false
    		true: will display close button and redirect to last page on close (default)
    		false: 
    
    Edit Post Shortcodes
    -------------------
    
    Shortcode examples::
    
    	[wpuf_edit]
    	[wpuf_edit close="false"]
    
    Shortcode options:
    
    	close: true | false
    		true: will display close button and redirect to last page on close (default)
    		false: 
    
    Last word
    ----------
    
    Hope you find this useful. Please report bugs as mentioned above.
    
    Big thanks to Tareq Hasan for his work putting together WP User Frontend.

    Cheers
    TheProfessor

    http://wordpress.org/extend/plugins/wp-user-frontend/

  2. professor99
    Member
    Posted 1 year ago #

    The next release of this development fork is now available. This version adds Ajax form style updates and better error and info messages. It also adds a redirect option for Add/Edit Post pages and the ability to filter options. There are lots of other changes as well including bug fixes plus visual changes to buttons and attachments for the Add/Edit Post pages.

    Here's a link to a screenshot of the Edit Post Page.

    And here's the readme

    [ Moderator note: Backticks inserted, you really don't need to post that here. A link would have sufficed. ]

    README WP User Frontend Version: 1.1-fork-2RRR-2.0 alpha
    ========================================================
    
    Modified Code: Andy Bruin (professor99)
    Original Code: Tareq Hassan (tareq1988)
    
    Introduction
    -------------
    
    This is a fork from WP User Frontend Version 1.1.
    It is a major update of WP User Frontend concentrating on useability and customerisation.
    It focuses on Add Post and Edit Post functionality.
    There are some bug fixes included as well.
    
    This version adds Ajax form style updates and better error and info messages.
    It also adds the ability to filter options.
    There are some additional bug fixes included as well.
    
    Some of these changes are outlined by the following items on the WP User Frontend support forum.
    
    http://wordpress.org/support/topic/custom-editors
    http://wordpress.org/support/topic/plugin-wp-user-frontend-redirecting-after-posting
    http://wordpress.org/support/topic/allow-to-choose-category-filter
    http://wordpress.org/support/topic/close-button-and-return-on-post
    http://wordpress.org/support/topic/security-problem-doesnt-observe-user-capabilities
    
    Status
    ------
    
    This code is ALPHA! Use it at you own risk!
    
    It currently has only been tested in the following configuration.
    
    Wordpress 3.4.2
    Firefox 16.0.2
    IBM PC
    
    This code is a public development fork of WP User Frontend.
    It is not written by or supported by the author of WP User Frontend (Tareq Hasan).
    Also is not an official release of WP User Frontend.
    So please be aware this code may not be included in the next official release of WP User Frontend.
    
    Bugs
    -----
    
    Please report bugs via this special topic on the WP User FrontEnd forum 
    
    http://wordpress.org/support/topic/frontend-updates-2rrr-fork
    
    Please report only bugs here. 
    
    All suggestions for updates to WP User Frontend need to go to the normal support forum.
    
    http://wordpress.org/support/plugin/wp-user-frontend
    
    Download
    --------
    
    http://2rrr.org.au/downloads/wp-user-frontend/wp-user-frontend_1_1_2RRR_2_0_alpha.zip
    
    A Github repository is availiable
    
    https://github.com/professor99/WP-User-Frontend
    
    Examples
    ---------
    
    Examples of use are provided in the directory /examples.
    
    AddPost Shortcodes
    --------------------
    
    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 types
    	close: true | false
    		true: will display close button and redirect to last page on close (default)
    		false:
    	redirect: none | auto | current | new | last
    		none: do nothing
    		auto: If close==true will load last page on post.
    		      Else will reload current page on post. (default)
    		current: will reload current page on post
    		new: will load new page on post
    		last: will load last page on post 
    
    EditPost Shortcodes
    ------------------
    
    Shortcode examples::
    
    	[wpuf_editpost]
    	[wpuf_editpost close="false"]
    	[wpuf_editpost close="false" redirect="none"]
    
    Shortcode options:
    
    	close: true | false
    		true: will display close button and redirect to last page on close (default)
    		false:
    	redirect: none | auto | current | new | last
    		none: do nothing
    		auto: If close==true will load last page on post.
    		      Else will reload current page on post. (default)
    		current: will reload current page on post
    		new: will load new page on post
    		last: will load last page on post 
    
    Installation
    ------------
    
    This update requires the pre-installation of WP User FrontEnd version 1.1.
    If you have another version of WP User Front End installed this update will not work.
    Changed code is in /wp-user-frontend in the same directory structure as the original files.
    Before using make a copy of your original files for safe keeping just in case something breaks.
    Then copy the files across.
    
    Changelog
    ---------
    
    = 1.1-fork-2RRR-2.0 professor99 =
    * Now uses jquery.form to do Ajax style updates.
    * Post redirect shortcut option added.
    * Better info and error messages.
    * Suppress "edit_post_link" on WP User Frontend pages
    * Added wpuf_get_option filter
    * Removed wpuf_allow_cats filter
    * Re-styled buttons
    * Re-styled attachment display
    * Added wpuf prefix to some css classes
    
    = 1.1-fork-2RRR-1.0 professor99 =
    * Custom editor option added.
    * Editors use max availiable width.
    * Close button added as shortcut option and redirects set to suit.
    * wpuf_allow_cats filter added.
    * Security checks updated.
    * Code updated to allow use of wpuf_can_post filter for non logged in users.
    
    Last word
    ---------
    
    Hope you find this useful. Please report bugs as mentioned above.
    
    Big thanks to Tareq Hasan for his work putting together WP User Frontend.
    
    Cheers
    TheProfessor
  3. professor99
    Member
    Posted 1 year ago #

    Bugfix for servers where PHP version < 5.3

    Download here

    Big thanks to Carlos-Vazquez for reporting this. Can you re-test?

    Cheers
    TheProfessor

  4. professor99
    Member
    Posted 1 year ago #

    The next release of this development fork 3.0 is now available.

    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-2.1 follow:

    - Optionally add Excerpts to the Add/Edit Post forms.
    - Add/Edit Post forms re-styled to suit excerpts.
    - Publish and expiration times can now be edited on the Edit Post form.
    - A Delete button can be optionally added to the Edit Post Form.
    - Attachment/Featured Image buttons fixed for Flash/Silverlight.
    - CSS has been strengthened for use in other themes.
    - CSS has been rearranged and formatted for readability.
    - CSS has been tested and fixed for popular browsers using 2010/2011 WordPress themes.

    Other changes are listed in the README at the following link

    http://2rrr.org.au/downloads/wp-user-frontend/2RRR_3_0/README_2RRR_3_0.txt

    Screenshots for the edit page can be found at the following links

    http://2rrr.org.au/downloads/wp-user-frontend/2RRR_3_0/screenshot_top_2RRR_3_0.png

    http://2rrr.org.au/downloads/wp-user-frontend/2RRR_3_0/screenshot_bottom_2RRR_3_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 XP

    Bug 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_3_0/wp-user-frontend_1_1_2RRR_3_0_alpha.zip

    A Github repository is available at the following link

    https://github.com/professor99/WP-User-Frontend/tree/2RRR

    Cheers
    TheProfessor

  5. raisonon
    Member
    Posted 1 year ago #

    Good work - Hope you merge with the original too.

  6. Runamok81
    Member
    Posted 1 year ago #

    Just tested your fork with IE8. It has some issues, But I've found some fixes. You can get attachments working in IE8, if you remove silverlight from the runtimes on line 50 of your attachment.php

    The next issue I'm working for is the upload progress percentage is not showing while uploading a file in IE8....

  7. professor99
    Member
    Posted 1 year ago #

    Thanks 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 messages

    Client
    --------
    Platform (IBM PC/MAC etc) - (IBM PC)
    Browser Version (IE7, IE8)
    error messages

  8. professor99
    Member
    Posted 1 year ago #

    Whoops, forgot to include the Silverlght plugin version.
    Mines 4.1.10329.0

  9. Reigel
    Member
    Posted 1 year ago #

    hello... I want to share this too...

    http://reigelgallarde.me/programming/wp-user-frontend-multiple-forms/

    also, I was thinking if we could use the wp native attachment api... I have not researched about it yet, but I think that would be better.

  10. Runamok81
    Member
    Posted 1 year ago #

    Professor99,

    I believe I have this resolved. My webserver (IIS6) did not have the silverlight mimetypes registered of the box. This caused me to think silverlight was broken and explains why I resorted to stripping out silverlight in order to force flash on IE. My webserver didn't recognize or want to serve files with a silverlight file extension. After I registered the silverlight mimetypes on IIS6.0 everything seems to work!

    Here is some info on my setup. The PHP/MySQL versions are from the Microsoft WebPI 4 installer. WP is updated to 3.5

    Server
    -------
    WordPress Version (3.5)
    IIS Version (6.0) (+silverlight mimetypes)
    PHP Version (5.3.18)
    MySQL version (5.1.66-community)

    Client
    --------
    Platform (Windows 7 Enterprise x64)
    Browser Version (IE8 reset to defaults)

    Another IE8 tip. Compatibility mode will break the plugin.
    Hope this helps another soul who may be following in my footsteps!

  11. professor99
    Member
    Posted 1 year ago #

    Thanks 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.

  12. professor99
    Member
    Posted 1 year ago #

    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 Professor

  13. professor99
    Member
    Posted 1 year ago #

    The 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 filter

    Other 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 XP

    Bug 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

  14. justinwhedon
    Member
    Posted 1 year ago #

    Hey TheProfessor. Thanks for the update. Not sure if it's got what I need in it and with testing I've found an issue...

    * Issue 1 - When I used to submit a post it would confirm and I can't rememeber if it went to the dashboard then, or cleared the add post form, but now (even though it IS submitting the post) it just sits there and says 'Please wait...'

    What I'm needing/trying to do/having issues with...

    1. Admin user accounts can add a post and include a youtube embed code, but any other user type cannot?

    2. Admin, Editor & Author user accounts show the upload/insert for images, etc. above the Description area... Contributors does not show this?

    Any thoughts or ideas would be greatly appreciated.

    ~ Justin

  15. professor99
    Member
    Posted 1 year ago #

    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 messages

    Client
    --------
    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

  16. justinwhedon
    Member
    Posted 1 year ago #

    Professor... thanks so much for the quick reply... I'll try to answer as best as I can but if I leave anything out I'll try to post those later on tonight if possible.
    --------------------------------------------------------------------
    1. Are you referring to a previous development fork update or the official 1.1 version when you refer to past behaviour?

    Official 1.1 version

    2. Please check to see if the submitted post got submitted to the database despite the continuous "Please Wait" .

    The submitted post DOES get submitted to the database.

    3. See if Edit Post has the same behavior as Add Post on post submission
    4. Do the delete/close buttons work?

    I'll have to answer this later

    Can you provide me with these following details

    Server: Linux (GoDaddy)
    -------
    WordPress Version: 3.3.2
    PHP Version: 5.2

    Client
    --------
    Platform (IBM PC/MAC etc)
    Browser Version - Mac FF & Chrome (sorry, not sure what versions as I'm not at home)

    ============

    1. Admin user accounts can add a post and include a youtube embed code, but any other user type cannot?

    Basically any 'user type' except Admin. If I use the Front End to publish a post. You go to YouTube, choose share, embed and it gives you an iFrame snippet of code...

    <iframe width="560" height="315" src="http://www.youtube.com/embed/cKZStlBECHo" frameborder="0" allowfullscreen></iframe>

    If I put that in the description (HTML) and publish it will completely disappear as if it was never there... unless it's an Admin account then it posts fine.

    I hope that answers enough... if you need more info please et me know... Again, thank you so much.

  17. professor99
    Member
    Posted 1 year ago #

    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

  18. professor99
    Member
    Posted 1 year ago #

    Also 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).

  19. EllsWeb
    Member
    Posted 1 year ago #

    I'm currently having a small issue with your fork.
    The submit button says "Please Wait", but it never changes anything on the posting page after that. It just stays at "Please Wait". I know it's done because the page refresh at the top of the browser stops.

    But, if I go to the user dashboard, the post is there and can be edited. I'm using WP 3.5, Catchbox Theme.

    I don't have much else activated on that site.

    Also, once the post is made, then the contents of the "Attachment Label" shows up above the attachment. There shouldn't be anything showing from the labels on the add post page. This I think I can correct myself.

    Otherwise, Thanks for the fork. I like the improvements.

  20. EllsWeb
    Member
    Posted 1 year ago #

    Update to my last post.
    I followed your suggestion Professor99.
    I have looked at the process through the console in firefox and found the following with regard to adding post, editing a post and attempting to delete a post from the edit post page and the add post page. If I go to the dashboard and delete a post, it works fine.

    Here is what I found using the console.
    TypeError: $ is not a function wpuf-add-post.js:47
    Clicking on the link "wpuf-add-post.js:47" the code highlighted is "success = $('success', responseXML).text();"

    TypeError: $ is not a function wpuf-edit-post.js:50
    Clicking on the link "wpuf-edit-post.js:50" the code highlighted is "success = $('success', responseXML).text();"

    TypeError: $ is undefined wpuf-edit-post.js:90

    Clicking on the link "wpuf-edit-post.js:90 the code highlighted is "$.ajax({" exactly.

    I hope this helps you see what is happening.
    I have php 5.4.10
    latest versions of ff and chrome.

  21. EllsWeb
    Member
    Posted 1 year ago #

    Okay.... here is the solution to the issue of the add post and edit post and delete post from the add post page and edit post page.

    All instances of the "$(" in the two files I mentioned above (according to what they say to do on this page http://elementdesignllc.com/2009/08/wordpress-jquery-is-not-a-function/ )

    I replaced the $ with jQuery and it's working as it should.
    Everything gets updated and the success messages show.

    The issue I have with the Label text for attachments showing up in the post is still there. Any assistance with that being printed in the post would be appreciated..

    Thanks for this fork..

  22. EllsWeb
    Member
    Posted 1 year ago #

    Oh, I am so tired.. It's time for me to leave this alone.
    I figured out what the Label is for... DUH!!!

    So I changed it to "Attachment(s)" and it shows the attachments below it. I was thinking the Label was like the "Help text"...
    Disregard my issue.. it's only local... lol

  23. Runamok81
    Member
    Posted 1 year ago #

    I am experiencing a degradation in attachment functionality.

    WP: 3.5
    IIS: 6.0
    PHP 5.3
    Browsers: IE8, Chrome 23, FF 17

    Users can delete an attachment, but when they upload attachments they are not being rightfully attached and associated to their posts, instead they are going to the media gallery as unattached. From their perspective, the submit button simply changes to "please wait..." and nothing happens. Any advice on where to start troubleshooting this?

  24. professor99
    Member
    Posted 1 year ago #

    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.

  25. professor99
    Member
    Posted 1 year ago #

    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.

  26. Runamok81
    Member
    Posted 1 year ago #

    It turns out my issue was a plugin conflict with the popular Relevanssi "better search" plugin. Activating Relevanssi introduces the problem, deactivating it removes the problem. I confirmed the conflict on a few of my other sites.

    Professor99, this issue is also present in the main fork.

  27. justinwhedon
    Member
    Posted 1 year ago #

    This worked perfectly... Thanks everyone!

  28. justinwhedon
    Member
    Posted 1 year ago #

    Hey... a few more issues...

    1. I downloaded a User Roles plugin and gave Contributors the ability to 'unfiltered uploads' and 'unfiltered html'... this did NOT solve my problem of Contributors not being able to embed YouTube videos... it looks like the post works but then where the video would be it's just blank

    2. Now Contributors can upload featured images and upload/insert images into posts, but the featured images button ONLY gives the option to upload a featured image. Is there a way to let them choose from the library on the featured images also?

    Thanks again for all your help...

    ~ Justin

  29. professor99
    Member
    Posted 1 year ago #

    Thanks Runamok81 for the info. Some other users have been reporting similar problems with attachments and I would like to know more.

    I checked out Relevansi and installed it on my website without any problems with Attachments (though I confirmed the jquery$ "Please Wait problem). I'm keeping Relevansi on my site as it's quite a good search tool and it's search stats are very useful.

    Could you install Firebug on your Firefox browser and check is there is any Javascript errors on pressing "Submit Post"? Also interested in the contents of the returned net message (if any).

    Better still if you can give me a contributor login I can look into this more thoroughly. 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). Obviously I will need the Relevanssi plugin enabled to see the problem

  30. professor99
    Member
    Posted 1 year ago #

    Hi justinwhedon.

    Did you try the option of just using the youtube url as mentioned? It seems to be the easiest way. But then again I'm supposing your trying to make life easy for your contributors by letting them do things the old way though it's potentially risky. Otherwise probably you need to add another capability though I can't say what. Check if it works for authors and then just look at the differences in capabilities for clues.

    The featured image button is only intended to add a new featured image for each post (for everybody allowed to upload images) so this isn't a contributor specific problem. I don't see a huge need for using the library here. However it may be consistent and useful to have it given the editor uses it so I will see if it can be easily done.

125

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic