rodeored
Forum Replies Created
-
Forum: Plugins
In reply to: [Register Plus Redux] How do I search the support for Register Plus Redux?No, its not in the WP_user object. However you can get it with get_user_meta($userId);
Forum: Plugins
In reply to: [Register Plus Redux] How do you get user dataIts in get_user_meta($userId)
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Filter by locationI can’t share a link right now but obviously that code goes on whatever page is showing the calendar. The uid id is the id of the author whose events you want to show. First select all the posts for that user and tnen filter by those posts. As far as I can see this is the same as filtering by author. The disadvantage would be that its liable to be inefficient if the user has hundreds of posts but only a few upcoming events.
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Filter by locationThis seems to work, I don’t know if its breaking any rules or not. I query wp_posts for user specific post ids and then use those to filter.
if($_GET[‘uid’]){
$sql=”SELECT id FROM wp_posts WHERE post_author =”.$_GET[‘uid’];
$posts=dbFetch($sql);
foreach($posts as $post)
$ids[]=$post->id;
}
echo do_shortcode(‘[ai1ec post_id=”‘.implode(“,”,$ids).'”]’);Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Filter by locationThe author’s id must somehow be connected to the events in the database, so I would think its possible to filter by the author in the query.
Which query actually gets the event instances for the calendar?Forum: Plugins
In reply to: [Register Plus Redux] How do I search the support for Register Plus Redux?Once I have acquired the data with Register Plus Redux, is there an API I can use to get the data? I know what table its in but it seems like there should be some functions for this already. It isn’t in get_currentuserinfo() or get_userdata()
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Filter by locationWhat about filter by wordpress user id?
Forum: Fixing WordPress
In reply to: wordpress $wpdb queriesYes, that’s what shows in phpMyAdmin