My-Little-Forum / mylittleforum

A simple PHP and MySQL based internet forum that displays the messages in classical threaded view (tree structure)
GNU General Public License v3.0
121 stars 47 forks source link

Change HTML and CSS for system messages #656

Closed auge8472 closed 1 year ago

auge8472 commented 1 year ago

Until now there are three classes of system messages (.ok, .caution, spam-note) for paragraphs with system messages. Additionally the code contains the reuse of the class .caution (in example in the user settings for warning about account deleting) and the class .spam for marking the subject of an entry, that is classified as spam and with roughly the same rules as .spam-note.

With the introduction of an additional class for all the system messages, called .notice, we can distinct the system messages from the reuse of class .caution. We can handle the spam classes in the similar way by renaming the class .spam-note to .spam and by the distinction of subjects of class .spam from system messages by using .notice.spam. That way it is also possible to outsource some of the rules for .ok, .caution and spam (formerly .spam-note) to notice.