making a forum ?

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

 
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:

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)

f325178808fee986b868046fbe30f0a3.png.7c6ac7e6a0cfa32e384a73eebc040a8b.png


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.

 
@Digital - well i am coder for sugarfoxkym website  :glad:  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 

 
@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.

 
Back
Top