Peter
Forum Replies Created
-
Hi, there is some discussion on how to use it here:
http://www.theblog.ca/peter-forum/peters-login-redirect/redirect-by-user-name
But generally, you just put [variable]username[/variable] as part of your redirect URL and it will be dynamically replaced by the logged in user’s username.
As for creating a page that is only accessible to that user, the typical case is to use one page (and template) for that purposes. In that template simply fetch the relevant content based on the current logged in user’s information, thus preventing the possibility that a user is viewing information relevant to another user.
Hi,
Regarding the “WordPress Login :: Red Rokk Widget Collection” plugin, looks like it needs to pass the third parameter as per the login_redirect hook expectations:
You’ll see that it does it properly here:
http://plugins.trac.wordpress.org/browser/login-widget-red-rokk-widget-collection/trunk/login.php?rev=593031#L1220I wouldn’t recommend taking out the last argument in the redirect_wrapper function, but instead fixing any function(s) that aren’t providing it.
Try using the $user variable that is passed to the function instead of trying to grab $current_user separately.
$pullcharter = $wpdb->get_row("SELECT post_name FROM {$wpdb->posts} WHERE post_author={$user->ID} AND post_type='captain'", ARRAY_N);I haven’t looked at this scenario yet, so I can’t provide any useful advice at the moment. However, I’d certainly be interested in hearing people’s experiences with this!
Try entering it with http:// and without the “www”
Thank you very much for pointing that out. This should now be fixed in version 2.5.3, and the upgrade routine should also fix it for existing installs.
Sorry to hear! I can assure you, however, that the plugin as coded by me does not inject any ads. Perhaps it was downloaded from somewhere else (if so, I’d like to know where!) and they injected some self-serving code; or, the cause must be from somewhere else.
Forum: Plugins
In reply to: [Peter's Post Notes] [Plugin: Peter's Post Notes] Hide from normal usersIf you want it selectively displayed based on user permissions, unfortunately this is not possible at the moment.
If anybody has suggestions for the proper WP way to implement this, I could add it to the next version of the plugin.
There are many approaches, some outlined here: http://www.theblog.ca/wplogin-redirect#comment-11089
I know the plugin authors of SimpleModal had hooked in a specific link to my plugin since they don’t use the standard WordPress login hooks. I’d suggest checking to make sure you have the latest version of SimpleModal and if so, contacting their support.
Looks like an issue with your theme hooking into the login redirect function in WordPress and acting before my plugin. I’ve detailed this here, since you also asked the same question here:
http://www.theblog.ca/peter-forum/peters-login-redirect/redirect-based-on-roles
No, a primary key should not be necessary. Unfortunately, at the moment I don’t know what else could be the issue.
Is this a fresh install or an upgrade? Also, is this a multi-site install? The appear might indicate that the wp_login_redirects table is not installed correct. I’d suggest inspecting your database manually. If you’re on a multi-site install, you have to activate the plugin per install.
Forum: Plugins
In reply to: [Peter's Post Notes] [Plugin: Peter's Post Notes] Add HTML option?You can set the “$ppn_allow_html” setting in the plugin code to true. For now there’s no support for a formatting buttons, but with that setting on, you should be able to directly type in the HTML.
If I’m translating correctly, that error implies that the group is missing one of: a name, a contributor, or a moderator. To create a group, it requires all three. (You can add more contributors and moderators to a group after it is created.)