Forum Replies Created
0.0.5 version released in both app stores. Here’s a demo. Check out the filter category and block user features!
The iOS version of my bbPress mobile app is now released!
The new Android version of my bbPress mobile app is now published with login, posting, replying, liking and more. Here’s the link to the play store: https://play.google.com/store/apps/details?id=com.tmkpro.utehub
Here are some details:
— Ute Hub (@Ute_Hub) July 23, 2017
Hi @sambhal I followed the instructions with regards to the wordpress config and htaccess settings and USED this plugin on the wordpress side: https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/
The front end depends on what library you are using.
TESTED ON A REAL DEVICE AND WORKING! Since the last app update I’ve implemented a login which keeps you logged in basically forever unless you logout. Once logged in a user can post new topics, reply to topics or other replies, and vote with the thumbs up/down.
Ute Hub mobile app update: New pending features include creating topics, replying, thumbs up/down & more! Coming in a day or two! pic.twitter.com/N1QhNQ4YR7
— Ute Hub (@Ute_Hub) July 22, 2017
Hmm. I see that there was a recaptcha issue on the contact form. Turned it off for now pending fixing it.
You can contact me via http://www.utehub.com/contact or via twitter @thegolfspace – not sure what “couldn’t contact you…” means. Is there an error or something?
@sambhal I followed the instructions with regards to the wordpress config and htaccess settings for this plugin: https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/
Thanks @casiepa! I’m just barely ahead of you now. I think if we can nail down the recent posts and some of the paging stuff I’ll release a full working version with login and posting in the next week or two.
I now have all new topics, replies posting to/from the API working on the bbPress mobile app! Close to doing a 2nd release.
You will need to look at your php error log to find the issue. Probably a compatibility difference between hosts.
Hi @kabebi if you would like to discuss with me I’m happy to talk to you privately.
Hey @zcodiaphotography I received an email notification about your inquiry but don’t see the post here. It might be caught in bbpress’s spam system.
Since my last post I’ve gotten the following working on my development version of my bbPress mobile app:
- User Login/Logout
- Post New Topic
- Post Reply to Topic
- Rich text editor in topic/reply content area
Woohoo! The first version of my bbPress app for Android is now available! It’s read only, as there’s no API for posting or logging in yet.
Do you have author/avatar in replies too? Then there would be no need for users end point. Paging is huge. I’m using @mapofemergence API for paging currently.
I’ve now joined the #bbpress slack!
Wow am I so brain dead that I created that users end point on my own branch of your version 1.0.2 and don’t even remember? (just read previous posts and yes, apparently I did!) All I’m getting from that service is name and avatar, but that was because those were not in the latest topics or replies. If both of those had author name and avatar, I might have no need for a users endpoint unless one wanted to list posts or replies by user.
I’m very close to releasing a read-only version of my app. A day or two likely.
I just joined the WP slack but that’s way too busy and focused on wp core. I think a separate channel for bbPress or the api would be good.
I’ve set up a new slack account.
Team URL: tkserver.slack.com
This was missing from bbp-api.php:
register_rest_route( 'bbp-api/v1', '/users/(?P<id>\d+)', array( 'methods' => 'GET', 'callback' => 'bbp_api_users_one', ) );
and users.php was also missing.
I’m guessing that was intentional?
Ok @casiepa I’m trying v1.0.3 of your api. Some of the routes are different.
The users routes do not seem to work in 1.0.3
Still checking… Will post more findings if there are any.
Ok now that we are on the topic of subforums, I see an issue on the API end.
I have a forum which is a parent of about six other forums. That forum has 10 posts in it. The sub forums have 121 posts in them. The total for the parent is showing as 131 because it is counting the subforums. The problem with this is that for my paging I’m using the topic count which breaks the app. The total topics are 131, but there’s only 10 topics to show.
Does that make sense?
Well oops. I fell a little silly. I thought my paging was broken in the sub-forum scenario. It wasn’t. Turns out the parent form had only 10 total topics. So when I would go to page 2, there was nothing to show. LOL.
I’ve made my own pagination which then makes sure the http calls are only for the number of records requested. I’m showing the subforums fine, and linking to them. The thing is a forum can be a parent of other forums so it can have posts in it along with the subforums. Somehow the paging is getting broken because I’m not accounting for posts vs subforums. I need to make some logic for that specific scenario.