SilverBrick Posted August 18, 2017 Share Posted August 18, 2017 i was thinking how to code a forum in which their is category and sub category too , does anybody have any piece of code which i could use to integrate with mysidia Quote Link to comment Share on other sites More sharing options...
Digital Posted August 18, 2017 Share Posted August 18, 2017 I am not terribly familiar with Mysidia directly, however perhaps @Dinocanid, @LuciBeingLuci, or @SugarFoxKym may know a little more as I believe they use Mysidia. Quote Link to comment Share on other sites More sharing options...
Dinocanid Posted August 18, 2017 Share Posted August 18, 2017 I don't know how to code a forum from scratch, which sounds like what you're trying to do, but a lot of mysidia sites use myBB since there's already information on the support forums on how to get it integrated with mysidia. (Just use an online proxy browser like NordVPN or Hide.me to reach the mysidia support forums) Here's my simple tutorial, but it requires CPanel or any file manager that has softaculous apps installer: Spoiler For those who had difficulty doing it manually (like I did), there is an installer available on cPanel. Log into cPanel and find the category that says "softaculous apps installer" (If your cPanel doesn't look like this, you may have to change its theme from "x3" to "paper_lantern" like I did) Click on myBB, click "install now" and fill out the form. The domain should be the exact same URL as your adoptables site (without www or https) Click install and you should be done! Please note that you will still have to go to config_forum.php (located in the inc folder) and fill in the information. For mysidia 1.3.4, you will need this as well. I currently use SMF for my forum, but it's not integrated. I'll probably look into how to integrate it in the future. 1 Quote Link to comment Share on other sites More sharing options...
SugarFoxKym Posted August 18, 2017 Share Posted August 18, 2017 (edited) (Redacted, saw who made the post.) Edited August 18, 2017 by SugarFoxKym Quote Link to comment Share on other sites More sharing options...
SilverBrick Posted August 19, 2017 Author Share Posted August 19, 2017 @Digital - well i am coder for sugarfoxkym website and @Dinocanid - i already know how to integrate mybb or other forum packages but i want to code an scratch forum which is directly and fully integrated with the site Quote Link to comment Share on other sites More sharing options...
Digital Posted August 19, 2017 Share Posted August 19, 2017 @SilverBrick The general structure of a simple forum system should be: categories id name (varchar) description (varchar or text) icon (varchar) parent_id (int) is_public (bool) threads id name (varchar) forum_id (int) member_id (int) content (text) is_visible (bool) comments id thread_id (int) member_id (int) content (text) is_visible (bool) I do not have any code, but the above could be turned into database tables, and code written against it to develop what you are seeking. This is at least a structure of what you'd probably start with. Basically, you have categories that are in a hierarchy. Basically top level categories would have a parent_id of 0. Sub-categories would have a parent_id of their parents id. This in theory can support endless nesting of categories, but category + 1 level deep is enough for most forums. Threads belong to a forum, and contain a reference to a user. Any comments to that thread are linked to the Thread by the thread_id, and also reference a user. I included some bool to control if something is visible or not (threads and comments), as well as whether a forum was public or not. These are rudimentary moderation controls, you can use them to determine appropriate actions. Quote Link to comment Share on other sites More sharing options...
SilverBrick Posted August 23, 2017 Author Share Posted August 23, 2017 thanks for the help @Digital i am finally able to do it with @Dinocanid Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.