lonnieezell / forum-example

An in-progress sample forum application built on CodeIgniter 4.
MIT License
43 stars 10 forks source link

Logged in users should be able to create a new post #9

Closed lonnieezell closed 1 year ago

lonnieezell commented 1 year ago

A new button should be present in the sidebar titled "Start a Discussion". This is only available when the user is logged in. When clicked, this should present a form for the user to start a new discussion.

The form should appear on a new page.

The following fields should be available:

Note: new posts should support Markdown, but old posts that we would import would need to support BBCode. Viewing a post already supports both languages.

michalsn commented 1 year ago

Any suggestions regarding markdown/bbcode editor? Seems like we will have to use two different ones.

datamweb commented 1 year ago

I've done a little work on this, but I'd love for you to do it. I used tiny in my implementation, however there are some limitations that don't seem to be useful. I tried to find a better one but failed.

Screenshot 2023-09-04 225507

datamweb commented 1 year ago

Currently, the CI forum uses the following package. https://github.com/samclarke/SCEditor

lonnieezell commented 1 year ago

I would make the priority here Markdown, personally. My original thoughts were that all new posts would be Markdown, and the BBCode support was primarily there to support the thousands of posts that would be imported. I don't see very many BBCode posts at all needing to be edited after the switch, so I think it's fine if that experience is sub-par personally.

As for recommendations, it's been awhile since I was looking, but I had this page bookmarked to research into a bit more. Also EasyMDE. Years ago I used MarkitUp but that requires JQuery to be pulled in and not sure we want to go down that path if we don't need to.

My goal for the editor was something that was simple and clean, but could support GitHub flavored markdown and be easily extendable.

michalsn commented 1 year ago

I'll try to do some more research today on what options we have. But definitely, jQuery is out.

michalsn commented 1 year ago

It seems to me that to simplify things at the beginning, we should just forget about the editor for bbcode.

Old bbcode entries after import should only be available for editing by moderation and they can do without an editor. This way we can focus on Markdown only.

michalsn commented 1 year ago

I think we can give EasyMDE a try... I also found:

Other than that, there are not that many possibilities that aren't older than ~5 years.

Anyway, we can always make a switch later.