• Members 2 posts
    Oct. 3, 2018, 9:30 p.m.

    Hello and thanks to all the creators of Misago!

    I have been playing with misago for a while as I want to deploy it as the forum for my project.
    Users in my app use custom django user model with some extra fields.

    You will find an example attached to this message :D

    as you can see, I have the avatar and the title as in misago user,
    but I also add 3 "achievements" and a "border"

    I have changed the misago model definition and added:

    border = models.CharField(max_length=255, null=True, blank=True)
    title = models.CharField(max_length=255, null=True, blank=True)
    achievement_1 = models.CharField(max_length=255, null=True, blank=True)
    achievement_2 = models.CharField(max_length=255, null=True, blank=True)
    achievement_3 = models.CharField(max_length=255, null=True, blank=True)
    

    this will store the paths to those images.

    I want to change how misago users are shown so it looks closer to what I have in my app

    I forked the whole misago repo, but:

    1- Any change I make on the react files, is ignored, I only manage to change the django templates
    2- How can I change the color of the big purple bar on top of the forum? I tried changing the theme css file, but none of those fields make reference to that big bar

    I come from a Vue.js background, so I think im missing something with Misago, Doesnt matter what I change i see notihng new on my running copy of the forum (I have tried both with and without docker)

    I guess I have to compile the react files somehow.

    Can you give me little indication on how to do it, or at least, where should I start reading to make it work?

    Thanks!

    Screen Shot 2018-10-03 at 22.09.40.png

    PNG, 224.4 KB, uploaded by awein on Oct. 3, 2018.

  • Oct. 4, 2018, 8:46 a.m.

    Hi @awein!

    I have changed the misago model definition and added:

    Misago implements custom profile fields framework that allows you to add new fields to user profiles without need for mantaining fork:

    misago.gitbook.io/docs/profilefields#writing-custom-profile-field

    If you are starting from cratch (or don't have any production data to loose), I would also see if custom user model is an option: docs.djangoproject.com/en/2.1/topics/auth/customizing/#substituting-a-custom-user-model

    Can you give me little indication on how to do it, or at least, where should I start reading to make it work?

    Readme is your friend: github.com/rafalp/Misago#frontend

    gulp watch and gulp build in frontend directory should do the trick

  • arrow_forward
  • Members 2 posts
    Oct. 4, 2018, 9:29 a.m.

    Oh Thank you very much, I have been reading the documentation but missed that part about the front end!

    I have a custom user model in my project, but I am not merging my project and misago.

    Im running on django 2.1 and merging it with misago 1.11 seemed like more effort than its worth

    Thanks again!

    I'll be sure to send you a link when its running on production

  • Oct. 4, 2018, 9:34 a.m.

    Im running on django 2.1 and merging it with misago 1.11 seemed like more effort than its worth

    In one of next feature releases Misago will let you connect its auth to anything you want by creating special cookie in your "primary" site and redirecting user back to Misago. Misago will then read this cookie, create or update user account in its database based on this cookie's contents, and login user to this account.