The Users menu item no longer lists the users. I get an empty page.
If I don’t allow anonymous questions the user does not get a good error message when they try to ask a question when not logged in. It just says “Sending Question” and then no error. I’m pretty sure we use to get an error with the last version.
I’m attempting to override the user menu order as requested here http://open-wp.com/questions/question/1548/how-can-i-reorder-the-output-of-the-user-profile-menu/
Taking from anspress-user.php I’m using the following function in my functions.php
function custom_ap_user_menu(){ $userid = ap_get_user_page_user(); $user_page = get_query_var('user_page'); $user_page = $user_page ? $user_page : 'profile'; $menus = array( 'profile' => array( 'name' => __('Profile', 'ap'), 'link' => ap_user_link($userid), 'icon' => 'ap-icon-user'), 'favorites' => array( 'name' => __('Favorites', 'ap'), 'link' => ap_user_link($userid, 'favorites'), 'icon' => 'ap-icon-star'), 'questions' => array( 'name' => __('Questions', 'ap'), 'link' => ap_user_link($userid, 'questions'), 'icon' => 'ap-icon-question'), 'answers' => array( 'name' => __('Answers', 'ap'), 'link' => ap_user_link($userid, 'answers'), 'icon' => 'ap-icon-answer'), 'badges' => array( 'name' => __('Badges', 'ap'), 'link' => ap_user_link($userid, 'badges'), 'icon' => 'ap-icon-badge'), 'followers' => array( 'name' => __('Followers', 'ap'), 'link' => ap_user_link($userid, 'followers'), 'icon' => 'ap-icon-users'), 'following' => array( 'name' => __('Following', 'ap'), 'link' => ap_user_link($userid, 'following'), 'icon' => 'ap-icon-users'), 'edit_profile' => array( 'name' => __('Edit Profile', 'ap'), 'link' => ap_user_link($userid, 'edit_profile'), 'icon' => 'ap-icon-pencil', 'own' => true), //'settings' => array( 'name' => __('Settings', 'ap'), 'link' => ap_user_link($userid, 'settings'), 'icon' => 'ap-icon-cog'), ); /* filter for overriding menu */ $menus = apply_filters('custom_ap_user_menu', $menus); $o =''; foreach($menus as $k => $m){ if(!((isset($m['own']) && $m['own']) && $userid != get_current_user_id())) $o .= '<a href="'. $m['link'] .'">'.$m['name'].'</a>'; } $o .= ''; echo $o; } add_filter ( 'ap_user_menu' , 'custom_ap_user_menu' , 10, 2 );
My custom menu order displays correctly, but it is now throwing an error from within the plugin:
Warning: Invalid argument supplied for foreach() in /home/teatrade/public_html/dev.prometheusfire.me/interview-hacks/wp-content/plugins/anspress-question-answer/includes/anspress-user.php on line 509
Can you help me please sort this out. Everything looks right in the code as far as I can tell so I can’t see why I’m getting the error. Ultimately, I don’t care how its done, what I really want is to move the Favorites link next to the Profile link.
Nice to do. But im unable to upload pictures from ipad?
Can users create content posts that can be seen in their profile like a personal blog?
Hi guys:
I just update wordpres to 4.1 and Anspress stop working properly.
You can see there are questions in the categories but the questions doesn’t show, you can see it here:
http://cemaer.org/campusvirtual/foroplatino/
Hope you can help me fix it.
Regards,
Diego
I would like to modify the bar above the results. I really only need to show Newest/Unanswered/Unsolved
Thanks
As you can see in the image below, the page which contain the shortcode “” loads the plugin below and above the title on page.
How do I solve this issue?
note: Sory, my english is not very good 🙂
Hi,
This is very nice and i’d love to use it to my blog.
But, i have a question about function that not active : ap_user_can_ask()
when this is not active ask form will be showing and unregistered user don’t know about login.
or i’ve missed where is ap_user_can_ask() function ?
Thanks, i hope you understand with my limited english .
ivo
Helo Rhull,
the registration still doesn’t work,the user enabled in WP settings, are activated and nothing happens. Do i need any extra plugin for this?
All the best