professor99
Forum Replies Created
-
Hi LordOfChaosPT
This problem is weird as is_user_logged_in() is a standard WordPress function.
I have activated WordPress Access Control on both my WordPress 3.4.2 and 3.5.1 sites with the development version of Frontend without problems so it’s related to your site. However some users have experienced the same problem with WordPress Access Control.
In order to help I’m going to ask you a few specifics so I can nail down the problem. If that doesn’t work admin access might be required.
1. What is your version of WordPress?
2. What is your version of WordPress Access Control?
3 .Does Frontend work with WordPress Access Control deactivated?
4. When does the Fatal Error occur. On activation of Frontend? On display of main page?
5. Does it occur when logged in as admin?
6. What options of Frontend have you changed (Screen Shot link or email would help)
7. What options of WordPress Access Control have you changed (Screen Shot link or email would help)If you want to email me your links or give me admin access your can send them to me at abruinATihugDOTcomDOTau
For wp student and those wanting the ability to specify a redirect url you can amend the code as follows to allow the redirect option of the add post shortcode to include urls. For example [wpuf_addpost redirect=”http://wordpress.org/support/plugin/wp-user-frontend”%5D
In the function submit_post() change the following lines from
//Set after post redirect switch ($_POST['wpuf_redirect']) { case "auto": if ($_POST['wpuf_close'] == true) { $redirect_url = $_POST['wpuf_referer']; } else { $redirect_url = $_POST['wpuf_self']; } break; case "current": $redirect_url = $_POST['wpuf_self']; break; case "last": $redirect_url = $_POST['wpuf_referer']; break; case "new": $redirect_url = get_permalink( $post_id ); break; default: $redirect_url = ""; }to
//Set after post redirect switch ($_POST['wpuf_redirect']) { case "auto": if ($_POST['wpuf_close'] == true) { $redirect_url = $_POST['wpuf_referer']; } else { $redirect_url = $_POST['wpuf_self']; } break; case "current": $redirect_url = $_POST['wpuf_self']; break; case "last": $redirect_url = $_POST['wpuf_referer']; break; case "new": $redirect_url = get_permalink( $post_id ); break; default: if ( $_POST['wpuf_redirect'] ) { //Redirect to url given by wpuf_redirect $redirect_url = htmlspecialchars( $_POST['wpuf_redirect'], ENT_QUOTES, "UTF-8" ); $redirect_url = add_query_arg( 'wpuf_referer', $_POST['wpuf_referer'], $redirect_url ); } }Of note the redirect bug found by wp student a few posts back only occurs if the add post page is called directly from the address bar. This will never be the case in a normal installation as all referrals will come from an html link. However it will be fixed in the next development version.
Hi Jonga,
I have never seen this ‘X-Frame-Options’ error before. It may be related to using https so try it again with just http.
As to getting logs off Firebug the following two tools are what I use.
To enable the ability to save a ‘Net’ log install the following Firebug extension NetExport and restart Firefox
Using the ‘Export’ option on the ‘Net’ option in the Firebug bar save the log as a ‘HAR’ file.
To save the console log along in a similar manner use ConsoleExport.
Send both to me at abruinATihugDOTcomDOTau
‘Override the post edit link’ in the ‘Others’ tab
Admin Only
Hi wp student,
Not sure if your mean as code or as the redirect shortcode option.
The shortcode redirect to a custom url is not implemented yet. My prior discussion with you mentioned it as a good idea for the next release.
If your doing it in code you need to change $redirect_url at the end of submit_post() in wpuf-add-post.php and wpuf-edit-post.php. However there is a filter ‘wpuf_post_redirect’ provided especially for that case which you can add to your functions.php file in your theme.
Hi Rkarel,
To get a WP gallery why don’t you just set the editor to a ‘Rich Text’ editor and select ‘Gallery’ as the ‘Post Format’. The old Attachment fields is only useful if you want to restrict your users to a ‘Plain Text’ editor but still allow the uploading of attachments.
Hi wp_student,
Congratulations you have won the 2nd Prize in the bug reporting competition! Can confirm your report on the featured image remaining is indeed a bug.
As to the thank you message since most users don’t want a thank you message the redirect option (and most easily implemented) is the best option to satisfy most.
For the meantime to I fix the bug if the image remaining is a problem you can already set the redirect and close options in the shortcode to return to the originating page (see the Readme).
Not clear on what isn’t exactly not working.
To redirect to WPUF dashboard instead of the WordPress dashboard you need to set the “Admin area access” option in the “Others” tab to whoever you want to allow normal WordPress dashboard access
Sounds weird.
What do you mean by “lightbox and static page”?
What browser are you using?
Try it in a different browser to see if it is a browser problem.
As to a “Thank you Message” that would be a good idea especially for complaints departments :). Note some people have requested redirecting to a different page which could achieve this. Perhaps amending the redirect argument in the wpuf_addpost shortcode to include urls would be the best solution.
Try disabling all other plugins and then trying again after clearing your recent history (cache specifically).
Hi Rajun,
Thanks for your input. Me, Tareq, and gpspake all monitor the forum for what users wish to have in frontend but don’t always respond as we try mostly to put our time to developing frontend and solving bugs.
Of course in my case my impetus is to add features for my clients but in the spirit of GPL I am happy to pass these on.
Anyway as to your list I will respond with a mixture of requests for clarification and what I was already considering.
01. Have ability to add meta keywords (restricted to 5 or 6 keywords) and post excerpt to be use as meta description.
Need clarification on what you mean by meta description.
02. Minimum and maximum words required to publish a post (say ..Min 500 words and Max 1000 Words)
I was already considering setting minimum and maximum characters for all text fields which is much more useful in most cases. I was going to combine this with a much more streamlined WPUF admin
03. Restriction in Title (Min 5 to max 120 character)
As above.
04. Comment notification to Author to moderate.
Not considering this but would be useful.
05. Comment moderation by Author from dashboard …. and then Admin or vice-versa.
As above.
05. Author can save the post as “drafts” or “publish”. And can delete only the “drafts”.
Can already save the post as “drafts” or “publish” in the development release. WordPress roles and capabilities as well as WPUF can be used to disallow allow deletes of posts. Would be easy to add an option to WPUF to restrict this to only drafts.
06. Edit option in posts have a nice button.
Can already be done by editing css for edit links.
07. Upload/Insert/Manage Image directly from post and remove the Add Media button from the above of editor menu.
Need clarification of what you mean by “directly from post”. Are you talking about adding a button to the editor buttons?
08. Uploaded feature image also shown on the top-right corner of the post (text area) to avoid same image upload again.
Not really sure what you mean by this. Showing the featured image in the editor window would require probably require the replacement of the whole editor by a custom editor
09. If there is no image uploaded/inserted, a default image for selected category set as featured image but not show in the post. (Only used to show thumbnail of the post in the home page or category page).
Not so hard to provide a default featured image but otherwise requires extensive modification of WordPress.
10. Live preview when posting or editing.
Already being considered in the next development release.
11. Option to add poll (may be integrated with other wp poll plugin).
Need clarification of what you mean by this.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Bug with other Plugin ShortcodesHi Mikko,
Seems you missed what I was trying to say here
Commenting out this line doesn’t stop your indexing.
//add_action(‘save_post’, ‘relevanssi_edit’, 99, 1);
Reason being is that the following line a few lines down from the one above already does the required indexing (with fix included)
add_action(‘wp_insert_post’, ‘relevanssi_insert_edit’, 99, 1 );
To me it seems this line was added as a fix to this problem but for some reason the original line wasn’t removed.
Note that the action wp_insert_post always directly follows the action save_post in the two places it occurs (both in \wp-includes\post.php)
wp_insert_post() & wp_publish_post().So without this fix you are effectively indexing twice and introducing a bug as well.
Without this fix we get an infinite loop as stated in my given link as the expansion of the shortcode results in a recursive call.