Hi,
After updating to the last commit, I get this when I go to the user profile page:
FATAL ERROR: CALL TO UNDEFINED FUNCTION AP_GET_POINTS() IN C:\DATA\PROJECTEN\RESOLVETHIS\DEV2.0\SITE\WORDPRESS\WP-CONTENT\PLUGINS\ANSPRESS-MASTER\INCLUDES\USER.PHP ON LINE 1205
Is this due to the separation of the user-profile in a separate module?
If so, can I solve this issue by installing the extension?
It would be great if a user can subscribe to a tag and be notified of new questions related to that specific tag.
Hello,
How can I let my website viewers to create their own user profiles as followings;
How can I have my website viewers to create their own user profile using anspress plugin?
How can I have my website viewers to create their own user profile using anspress plugin?
My website is as follows;
http://snowykyoko.com/caselaw/legal-answers-2/
Please tell me how to ASAP.
Set WP4.1 and AnsPress.
Installed WP is in a subfolder “site.in/qa/”
When you click on “ask”, the opens main page (qa&ap_page=ask).
When you press any of the buttons sorting opens the first entry (qa/?ap_s=&sort=voted).
1. When I enter user profile user have not any `follow` button.
2. When I click in user profile `followers` or `following` button
Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in C:\xampp\htdocs\sr\wp-content\plugins\anspress-master\includes\user.php on line 641
3. Only when I post comment main question last comment will appear at the bottom of the page. This only appears when someone post only main question not other answers. Also it only shows lates comment at the bottom.
4. Also `flag` button is not working.
Thank you
Is there any reathon why `title` bottom of the anwer page ?
Hi,
When we ask a question on this site and someone answers, we get a notification email.
Is that part of AnsPress or do you use another plugin for that.
Hi,
I see both code for Favorites and Subscription in the code-base.
Will these two concepts exist in AnsPress 2.0? Or is Favorites “old” code and Subscription the new concept?
Hi,
In anspress-master\includes\user.php
the user-profile page is rendered and each tab in the menu is rendered by this code:
$o .= '<li'.( $user_page == $k ? ' class="active"' : '' ).'> <a href="'. $m['link'] .'" class="ap-user-menu-'.$k.$class.'">'.$m['title'].'</a> </li>';
This is near line 604 in https://github.com/wp3/anspress/blob/master/includes/user.php
.
I would like a change in this rendering because the current implementation has issues when you add a custom tab and use a font-awesome icon as tab-icon. Since the icon class is applied to the anchor tag, the font of the link text is affected by the font-awesome style. So could you please change the tab rendering to something like this:
$o .= '<li'.( $user_page == $k ? ' class="active"' : '' ).'> <a href="'. $m['link'] .'" class="ap-user-menu-'.$k.'"><i class="'.$class.'"></i>'.$m['title'].'</a> </li>';
So I added a container for the icon.
Only remaining issue with this replacement code is that it does not add a space between the icon and the link text. Though that should be handled in CSS (I think) and I’m not an expert in that area, so I leave that to people with more experience 🙂
Thanks,
Michiel
Hi,
I figured out how to add a custom tab to the user-profile.
I love the extension-pattern that you applied! Thanks!
One issue I found was that the tab-page which I registered with
ap_register_user_page('testtab', __('Test tab', 'ap'), array('AnsPress_User_Page_Test', 'output'));
came first in the menu list. Probably because I called the ap_register_user_page
too early.
Anyway, it started me thinking that things might get nasty when multiple plugins want to add a tab -> in which order will they be added?
So I have made some changes to the anspress-master\includes\user.php file in such way that you can now specify an order when registering a tab:
ap_register_user_page('testtab', __('Test tab', 'ap'), 90, array('AnsPress_User_Page_Test', 'output'));
If you agree to it, you can find the changes here: https://www.dropbox.com/s/l2mu2mtfv1kiwwa/user.php?dl=0
I have all the changed sections marked with the //MVRM
comment, so you can easily find my changes.
Greetings,
Michiel