WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 17.09.2017 11:14:17

casi
Mitglied

Notice Section

Hi. Is there a way or an addon to display a "notice section" in the backend to write down general information for the registered user? For example how big the picture size shall be, etc... Thank you.

Offline

#2 17.09.2017 12:28:58

florian
Administrator

Re: Notice Section

Yes. You can use code2 for it. The modes "admin comment" and "internal comment" generate no frontend output. The difference between admin and internal comment is that the admin comment is only visible for administrators.
Please notice that users can edit the content of the comments nevertheless.

Offline

#3 17.09.2017 12:32:27

casi
Mitglied

Re: Notice Section

Thank you. Is there an alternative way as well. I have not given the "customer" user the right to see the code2 module?

Offline

#4 17.09.2017 12:47:47

florian
Administrator

Re: Notice Section

If your frontend template has an invisible block, eg. a block with is not called with page_content() in the template but only defined with $block[99]='invisible'; in the info.pph of the template, you can take a wysiwyg section, put this section into the invisible block and place the information there. It's not very elegant and your customer might be puzzled, but this is at the moment the fastest way.
Another solution could be a modification of the code module, but this takes some time.

Offline

#5 18.09.2017 20:40:57

stefanek
Core-Team

Re: Notice Section

Hello Casi,

you could do me a great favor by testing the attached module.
It's actually really old and I wrote it with a completely different purpose in mind. I only today reworked it so it could be used as something for Internal Comments (which I missed all along myself).

As it is old it may be that the backend is a bit off or doesn't match the backend theme you use... but the module itself should do its job well.

The module has additonal settings and the admin can set who is supposed to edit the comments (by group) or who can only see them. It's also possible to hide the comments from specific groups. However, those settings are only possible for the admin (of group ID = 0), which is OK I believe. Further sophistication of permissions settings in this little module would be an overhead.

Please give it a go and let me know if you have any issues or questions.

Kind regards,
Christian

P.S. when a section of type "comment section" is added the sections public end date will be set to current time automatically. That's because otherwise the module's view.php would output a section anchor in the frontend. So don't worry about that. Additionally you'll be in the known when the comment was initially created.


[Download removed. Newer version down the thread.]

Beitrag geändert von stefanek (19.09.2017 09:18:51)


“Success is the progressive realization of a worthy ideal.” ― Earl Nightingale

Offline

#6 19.09.2017 08:15:52

casi
Mitglied

Re: Notice Section

Hi Christian

I have a test environment and gladly will test the module and give feedback here.

Kind regards
Casi

Offline

Liked by:

stefanek

#7 19.09.2017 08:30:20

stefanek
Core-Team

Re: Notice Section

Cool, thanks.

Let me know if it's useful. If so, I will implement internal security methods to the forms (FTAN/IDKEY).

The settinsgs of the module can be found on the right side top corner of the section, it is a small wrench icon or something like that.

If you can, please test with different user groups. If you have several user groups log in as one of those who didn't get the right to "change" the comments but can "read" them and other scenarios.

At the moment when a new comment section is created only admin and the group the person belongs to who created the section can read/change the comment.

Kind regards,
Christian

Beitrag geändert von stefanek (19.09.2017 08:42:52)


“Success is the progressive realization of a worthy ideal.” ― Earl Nightingale

Offline

#8 19.09.2017 09:17:49

stefanek
Core-Team

Re: Notice Section

Hello Casi,

here is an update of the module.

Please test this version instead. I've implemented the FTAN Security check to the form.
And there was also a little bug that prevented from saving the comment. Now handled.

C.

[Download removed. Newer version down the thread.]

Beitrag geändert von stefanek (19.09.2017 09:54:28)


“Success is the progressive realization of a worthy ideal.” ― Earl Nightingale

Offline

#9 19.09.2017 09:53:43

stefanek
Core-Team

Re: Notice Section

OK, same as before but with multilingual support.

English, German and Polish are implemented.

Have fun.
Chris

Download removed, now can be found in this thread:
https://forum.wbce.org/viewtopic.php?pid=14308#p14308

Beitrag geändert von stefanek (19.09.2017 10:22:15)


“Success is the progressive realization of a worthy ideal.” ― Earl Nightingale

Offline

#10 19.09.2017 09:58:55

casi
Mitglied

Re: Notice Section

Hi Christian

yes the alpha did not work: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE section_id = '21'' at line 1

but 0.0.3 works actually fine and in my eyes a great help to allow end users to gain information, for example what picture size shall I use or what class do I need to add to a picture to make it responsive, etc...

as you mentioned, with a little bit of aesthetic to keep up with the so beautifully created admin panel this could become a very helpful addon.

Cheers
Casi

Offline

#11 19.09.2017 10:04:32

stefanek
Core-Team

Re: Notice Section

OK, thanks Casi.

Keep me informed if you find any new issues with the latest update.

As to aesthetics... yeah... just change it as you see fit.

Christian


“Success is the progressive realization of a worthy ideal.” ― Earl Nightingale

Offline

Fußzeile des Forums

up