Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Gleb Mazovetskiy
    @glebm
    Robert Fraktar
    @fraktar
    How do I enable mail confirmation for new registrations?
    Robert Fraktar
    @fraktar
    Is anyone still using this channel?
    Joel Oliveira
    @jayroh
    @fraktar - yup. People are just not here every day, day in and day out.
    And new user registrations are the responsibility of the main parent app - thredded does just the messageboard/forum stuff.
    Not user creation, user management, sign in, sing out, etc.
    Andrea Schiavini
    @metalelf0
    hi everybody, yesterday I submitted a couple PRs to the project
    now I'm looking into another thing I'd like to add, and I'd like to ask about it here before doing any actual work
    I'd like to add an option to toggle the first messageboard topic automatic creation on or off
    I was thinking of an option like Thredded.auto_create_first_messageboard_topic in config/initializers/thredded.rb and then using this in the CreateMessageboard command. Would this be an accepted implementation?
    Mohamed Sami
    @melsatar
    Dears, I'm just new for thredded, I have nested routes for my user profile, and I do not know how to change that in the thredded initializer. Also, I would like to embed the forum into the main layout and change some of the navigations menus. Do you know how to do that? Thank you in advance
    Mohamed Sami
    @melsatar
    Dears, I have my default local as follow http://example.com/en/forum but therdded keeps using http://example.com/en/forum?locale=en how I can stop this? any clue?
    Tim Diggins
    @timdiggins
    @glebm sorry I broke the whole demo. just working out how to reseed
    Tim Diggins
    @timdiggins
    @glebm ok normal service resumed. written up at thredded/thredded#682
    thepanu
    @thepanu
    Hi, I was wondering if there are any resources someone could point me towards regarding importing messages from legacy forum?
    My initial idea was just to make a task which creates topics and messages. But is there something specific to take into account?
    Gleb Mazovetskiy
    @glebm
    @thepanu Have a look at the Forem to Thredded migration in the wiki
    thepanu
    @thepanu
    Thanks for the tip. But I think I managed to figure it out, almost done.
    And now that I look at it, it would've been overkill. My legacy forum is super simple so I'll just loop through topics and replies and create topics and posts based on that. Works for this case.
    thepanu
    @thepanu
    I think I have almost everything figured out now. Suits my needs perfectly.
    One thing though, if any one can point me to right direction. I would like to have forum only available to logged in users. But I have a GuestUser which inherits from User. And this passes thredded_require_login!. What would be the simplest way to fix this for me?
    thepanu
    @thepanu
    Now I solved that issue with permission methods but the forum is still accessible and clicking on notification settings or private message throws a bunch of errors when the current_user is not really a user.
    thepanu
    @thepanu
    Hmm.. I ended up making my own before_action method. It doesn't raise the error and instead just redirects to login form with a flash message. I wonder if there are any drawbacks to this approach?
    Henry Wright
    @henrywright
    Hey
    Any plans to include the username in user URLs?
    At the moment I see an ID is used
    Gleb Mazovetskiy
    @glebm
    @henrywright This URL is configurable via Thredded.user_path, see the initializer
    Henry Wright
    @henrywright
    Great thanks
    Henry Wright
    @henrywright
    Hey again
    Do you have a list of sites using Thredded?
    3JM Coding
    @Daemonlord92
    Hey new here, I've been trying to input an image into the header nav bar but its not appearing if I put into the SCSS, or into the if statement in the _header.html.erb file, so my question is what is the best way to impletment an image in the header bar
    3JM Coding
    @Daemonlord92
    So i'm now at deployment and the forum part of the site won't load the fourm Cause of a 2018-07-22T18:26:52.804480+00:00 app[web.1]: F, [2018-07-22T18:26:52.804421 #35] FATAL -- : [cde01619-fc97-430a-b340-1068f2532f53] ActionView::Template::Error (undefined local variable or method `destroy_user_session_path' for #<#<Class:0x0000000004c807b8>:0x0000000004c5ff18>
    the code I think they are talking about is this one
    <% if current_user %>
    <%= link_to current_user.display_name, user_path(current_user) %>
    |
    <%= link_to "Logout", (destroy_user_session_path), method: :delete %>
    <% else %>
    <%= link_to "Login", new_user_session_path %>
    <% end %>
    heroku is not being very clear on the error, or I still pretty new and not understanding completely
    Joel Oliveira
    @jayroh
    Thredded doesn’t handle any of the user management stuff - so I imagine that’s in one of your views that that is creating the error?
    if you do rake routes it should list all of the routes out and you should be able to see something like destroy_user_session or destroy_session on the left
    Andrew Brown
    @drusepth
    Might also need the main_app from https://github.com/thredded/thredded#reference-your-paths-so-that-thredded-can-find-them for the destroy_user_session_path call
    Tim Diggins
    @timdiggins
    @glebm @jayroh Hi :wave: I was just going through issues (as I'm about to add to them...) and was going to see if I could answer a few oldish ones. Would it be ok if I closed some of the ones that seem like no further action is required (e.g. thredded/thredded#727 because it's done, but probably not thredded/thredded#583 because although there's a workaround documented, it still represents an requested unimplemented feature).
    Gleb Mazovetskiy
    @glebm
    @timdiggins Hi! Thanks for all the work! I've reviewed all the PRs (all except one approved)
    thredded/thredded#583 has actually been implemented but I forgot to update the issue
    Tim Diggins
    @timdiggins
    Great. I'm assuming some of the question issues are just open "because they haven't been closed yet" -- I might go ahead and close as I see it (and then you can always reopen if I've called them wrong).
    Gleb Mazovetskiy
    @glebm
    Yes please!
    Tim Diggins
    @timdiggins
    Just looking at thredded/thredded#746.
    why .order(case_insensitive.column_for_order(:asc)) and not .order(case_insensitive.column_for_order => :asc) -- do :asc and :desc influence column choice?
    Gleb Mazovetskiy
    @glebm
    I think the latter might not work with Arel
    if we return an Arel object from that method, then it could be: .order(case_insensitive.column_for_order.asc)
    Tim Diggins
    @timdiggins
    oh, I think you do order(COLUMN_NAME => :asc) -- in active record queries (but not arel)
    but I only brought in arel, to do the .lower fudge
    Gleb Mazovetskiy
    @glebm
    For some databases case_insensitive.column_for_order won't simply be a column name (e.g. for sqlite it'll be something like Arel.sql('name COLLATE NOCASE'))
    Tim Diggins
    @timdiggins
    ah ok -- fine.