dochara
Forum Replies Created
-
Forum: Plugins
In reply to: [Theme My Login] Logout LinkI think it is to do with the way I set up the widget. I’ll detail that in case it helps. I don’t think it should be that odd a use, but maybe it is.
- I am not using a widget when the user is logged out.
- I am not using the title in the widget.
- The only two options I’ve set are
- Show when logged in
- Show login link (because I assumed it would revert to log out when the user was logged in)
I see now that my assumption that login would simply become ‘log out’ was not correct. The logout link is actually appended to the title, which I am not using. I was not aware of that.
So, my change fixed it for me, but it was not really ‘fixing’ anything, just making it work in my particular set up. It would be nice to have a ‘Show logout link” option, that would just say ‘log out’.
I hope that explanation helps.
Forum: Plugins
In reply to: [Theme My Login] Logout LinkI had the same problem.
When adding the widget to a sidebar, the logout link appears as ‘Welcome’.
This issue appears to be on line 737 of class-theme-my-login-template.php of version 6.3.8 which reads:
echo '<li><a href="' . wp_logout_url() . '">' . self::get_title( 'logout' ) . '</a></li>' . "\n";
I edited that to hard code the logout link for now:
echo '<li><a href="' . wp_logout_url() . '">Logout</a></li>' . "\n";
There is nothing to see in the admin. This is what you need to do:
- Create a new form, with the post fields you want the form to update
- Create a new page
- Add the form to the page
- Link to the page with ?gform_post_id=123 at the end of the URL (replace 123 with the actual ID of the post you want to edit)
The solution I have come up with (provisionally) here, is to switch the choices with a gform_pre_render function. However, since your plugin already does this, would it work do you think?
If not, I suppose I can just use ordinary dropdown/checkboxes fields, switch them, and handle the taxomomy in a post_submission function.
Unless you see something better?
Forum: Plugins
In reply to: Restricting users to seeing only comments on their posts in adminI meant to come back and update this with a solution, though I can’t remember now where I found it.
# ------------------------------------------------------------ # Ensure that non-admins can see and manage only their own comments # ------------------------------------------------------------ function myplugin_get_comment_list_by_user($clauses) { if (is_admin()) { global $user_ID, $wpdb; $clauses['join'] = ", wp_posts"; $clauses['where'] .= " AND wp_posts.post_author = ".$user_ID." AND wp_comments.comment_post_ID = wp_posts.ID"; }; return $clauses; }; // ensure that editors and admins can moderate everything if(!current_user_can('edit_others_posts')) { add_filter('comments_clauses', 'myplugin_get_comment_list_by_user'); }
Hopefully will save someone some time.
Thanks, I’d appreciate that very much.
I’ve resorted to a ‘preform’ which determines what form to show the various people, which isn’t ideal but works for picking one taxomomy or any number, but I still have an issue allowing people to pick two only.
May help. I (accidently) discovered that if you make a user an admin, thus giving them Gravity Form rights, and then return them to the custom role their rights to Gravity forms are maintained. In my case the custom role is ‘Siteadmin’, which allows must admin functions except plugin, theme and edit file access.
You could I suppose call this a bug, but in this case it’s a useful one for me at least ??
Forum: Plugins
In reply to: get rid of “no categories” messageJust in case anyone is still looking for a solution to this, there is a simple small addition to your functions file that works perfectly here:
https://www.category-icons.com/2009/07/how-to-hide-no-categories-if-there-are-no-subcategories/
Forum: Fixing WordPress
In reply to: [Plugin: WP-Marketer] 404 error for links?I’ve figured out what’s causing the problem with wp marketer – in my case anyway – though not how to fix it.
If you have index.php in the root and WordPress in it’s own directory, the links are incorrect.
Forum: Fixing WordPress
In reply to: [Plugin: WP-Marketer] 404 error for links?Did anyone ever resolve this?
Forum: Plugins
In reply to: [Plugin: Stray Random Quotes] Remove refresh linkYep, it’s perfect now – thanks!