FluentCommunity Developer Docs is here π§π»βπ»
We are pleased to announce that we have just published comprehensive developer documentation, including full REST API documentation.
Please visit here: https://dev.fluentcommunity.co/
This dev doc includes all the dev-related action & filter hooks, database design, REST API endpoints, Database Models, Query Builder, and so on. And yes, it's beautiful as our code is clean and beautiful as well.
You also edit any doc and send us a full request if you find any typos or need any improvements.
Please let me know in the comments if you have any queries or need any explicit hooks that we have missed.
WoW
π
Ross FCAΒ Worth for waiting :') Better than my Bday
Andrij TkachenkoΒ hope the hooks you needed to improve better messages are added. Thank you Shahjahan JewelΒ
Shahjahan JewelΒ can you please add hook to user popup, so that will be possible to add custom buttons there? π
if there is only javascript hook that will be fine, also nothing besides user_id is not needed.
Or at least add data-user-id attribute to the popup div, so I can catch it with MutationObserver and do it other way.
Would be awesome Shahjahan JewelΒ π
Andrij TkachenkoΒ We are trying to provide a hook here.
hey, Shahjahan Jewel! are this going to be implemented in next major update? :)
ππ
Finally
Very very nice!
Great!!!
Please add a quick link for doc fcom in the space.
Artur AbakarovΒ definitely. I have it bookmarked but it's always helpful.
add_filter('fluent_community/portal_notices', function ($notices) {
$notices[] = [
'type' => 'info', // 'info', 'warning', 'error', 'success'
'message' => 'Welcome to our community! Please read the guidelines.',
'dismissible' => true,
];
return $notices;
});
Output on the FC home page:
[object Object] with a light yellow background.
Helmar RudolphΒ Thanks for sharing...mine is not displaying the welcome message but the message below..
Debo OgunrindeΒ Looks like there's plenty of work for the Fluent team to do. :)
Helmar RudolphΒ ha haβ¦thanks!
Helmar RudolphΒ this worked with the help of chatgpt and adding a link to display the guidelines..
add_filter('fluent_community/portal_notices', function ($notices) {
// Ensure the notices structure is valid
if (!is_array($notices)) {
$notices = [];
}
// Add your upgraded notice WITH guidelines link (new tab)
$notices[] = '
<div class="fc-notice fc-notice-info fc-session-dismiss" style="margin-bottom: 15px;">
<p>
Welcome to our community! Please read the
<a href="/community-guidelines" target="_blank" rel="noopener noreferrer" style="text-decoration: underline;">
community guidelines
</a>.
</p>
</div>
';
return $notices;
});
Debo OgunrindeΒ thank you. Will try and report back.
Debo OgunrindeΒ Working nicely, even though it's not dismissble. There's no close button, and probably no logic not to display it again, right?
Helmar RudolphΒ I know....to add dismiss to the notice, maybe someone here or Shahjahan JewelΒ can help with answering these 2 question:
-
"How do I add a custom dismissible notice to the FluentCommunity portal in a Vue-safe way (so Vue does not re-render or block the dismiss button)?
- Using
portal_noticesdisplays the notice, but Vue prevents any dismiss button logic from working. What is the official way to insert a Vue-compatible dismissible notice?β?
- Using
Debo OgunrindeΒ Shahjahan JewelΒ btw, the above message shows that FC struggles with properly formatting numbered lists. That warrants further investigation.
Helmar RudolphΒ there is a bulleted list function that I didnβt use!
- like this
- Like that
Is there a roadmap for the following:
- Profile Meta Box API
- Profile Navigation Tab Registration API
- Template Hierarchy Documentation
- Custom Activity Type Registration
- Widget/Block Registration System
Brandon MeyerΒ metabox connection for profile would be nice
To be clear, I am not requesting a metabox.io plugin integration in item #1, I am referring to the existing Meta Settings API in Fluent Community. This API allows third-party developers to extend community objects with custom functionality, but it currently only supports 'space' and 'course' object types. My request is to extend the Meta Settings API to include a user object type so developers can extend and customize the features in the user profiles within Fluent Community's own architecture.
The 5 items that I listed, taken together, would blow the doors wide open to deep integrations within Fluent Community's social ecosystem, but without them we are limited to what we can do.
Brandon MeyerΒ 100% with you on this. Requested a structured content type from Shahjahan JewelΒ so that I can add long, chapterized content from -say- books. Right now I'm using a custom shortcode for it, which does work well.
Great news!π
Much appreciated. I was able to update my sidebar menu code after I was able to verify some things in the docs.
Awesome, thank you. I will be making good use of these.
just cloned a copy to my hard drive and built a quick and dirty mcp to access all my fluent dev docs, wp cli, wp db, all my plugins including wpmn plugins for reverse engineering undocumented but exposed hooks, etc. gave my dev environment super claude powers instantly!
Hello Jewel, looks great. I have a question: Is it possible to build an MLM (Multi-Level Marketing) system with 10 levels? Based on a weekly 10 multiple-choice questions, after a month of finding 10 people who also started with the questions and finding 1 sponsor, he or she can grow to the next level. And so on and so on... This is a brief overview of the MLM, which is an educational platform that unites people and supports individuals in need of assistance.
The timing of these docs could not have been better. Awesome!
Oh, I see this is just for FluentCommunity (which I haven't currently found a use for), not for the other plugins. Still, nice work!
Can we get a space link for that, please? For easy access in the future? Shahjahan JewelΒ
J VΒ added
Shahjahan JewelΒ Thx :)
Great news, I would like to implement the custom form template for my own business model (Hotels, Schools, Restaurant). How to?
Good job!
Thank you, the developer docs are very helpful!
Shahjahan JewelΒ - just a heads up that half the text isn't visible on dark mode. Also the Github link isn't working - 404. Claude can't read the page - just the sidebar. I wish we could add/edit quizzes in the near future - it would help me migrate so much quicker. Is there any hope of a fixed answer quiz type too?