1
hervet
How to know when comments are enabled or disabled ?
  • 2004/2/1 13:19

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hi,

Inside my module I need to know if comments are enabled or disabled. Is there a way to do it ?

Thanks in advance

Bye,
Hervé

2
Mithrandir
Re: How to know when comments are enabled or disabled ?

Comments are enabled/disabled on a per module basis.
Can I assume that you have added comments to your module?

From the News module with included files, I see
include_once XOOPS_ROOT_PATH.'/include/comment_constants.php';
if (
XOOPS_COMMENT_APPROVENONE != $xoopsModuleConfig['com_rule']) {

Which as I read it, should say, whether comments are enabled/disabled for that module.

3
hervet
Re: How to know when comments are enabled or disabled ?
  • 2004/2/1 13:31

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hi,

Quote:

Mithrandir wrote:
Comments are enabled/disabled on a per module basis.
Can I assume that you have added comments to your module?

Yes, I'm working on a revisited version of the news.

Quote:

From the News module with included files, I see
include_once XOOPS_ROOT_PATH.'/include/comment_constants.php';
if (
XOOPS_COMMENT_APPROVENONE != $xoopsModuleConfig['com_rule']) {

Which as I read it, should say, whether comments are enabled/disabled for that module.

It runs perfectly.
Thanks a lot for this !

Bye,
Hervé

4
Mithrandir
Re: How to know when comments are enabled or disabled ?

Which changes do you have in mind? Anything, which should be in the official News module?
If your ideas have uses for the general public, I'll be very interested in working with you to get it in there.

5
hervet
Re: How to know when comments are enabled or disabled ?
  • 2004/2/1 14:10

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


First a "modification" :
If comments are disabled, I DON'T WANT TO SEE THIS F...G link "Comments" and some other minor changes.

Secondly, I would like, for this module and some others, a new "concept" : Trustworthy people

For this concept, there are 2 points

For my intranets, some people have been declared "Trustworthy people".

First point :
When they submit something, we don't need to moderate it, it's immediatly published, no, it MUST be immediatly published.

Second point :

In the case of the news module, the submit (submit.php) interface must contains the two textareas (introduction and main text) when the submiter is a "Trustworthy people".

I know that I can give the rights so that some groups of people can gain access to the admin area, but they don't want and don't need to learn an other web interface. From the usual interface they know, they must be able to submit and moderate informations. For "us", the admin interface is not a problem, not for some "basic" users.

Except from this "new" concept, and particulary for this module, I want (may be some of my needs already exists) :
1) A simple and quick upload area to be able to join pictures (yes I know wf section) to articles
2) A moderation block, no need to go to the administrative panel
3) Some modifications (i have already made) about the author name (what to see : surname, full name, nothing ?)
4) Syndication
5) Rights
6) May be the spaw module.
7) Import/Export
8) The "submit" link must be enabled for some groups only
9) Many other things

If I can help....

Bye,
Hervé



6
Mithrandir
Re: How to know when comments are enabled or disabled ?

What I have already done with the News Module:
a) Set up two people groups (not usergroups): Submitters and Approvers. If a user is member of a group, which has submit privilege, he'll have the "Submit News" link in the main menu. Non-submitters/approvers won't have that link.
Approvers will also have the "Submit News" link, but will have full access to all fields in the news form. That is, both textareas and the fields to approve and set publish/expiry dates.
This also has the extra benefit that I operate with only one submit form - where the fields available depend on the submitter's privileges.

b) Show news by topic instead of just the 5/10/25... latest news stories

I am waiting with the moderation outside the Admin area, until I have some more issues resolved with the other module devs and core devs regarding the waiting contests

As soon as we find a cross-browser WYSIWYG editor, I'll want it to replace the textareas

I think that you have some very good ideas regarding this and would love to cooperate with you instead of having 2-3 different News modules doing more or less the same with a few differences.
If you are interested, I'll talk to w4z004 about getting you on the team.

7
hervet
Re: How to know when comments are enabled or disabled ?
  • 2004/2/1 15:05

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hi again,

Quote:

Mithrandir wrote:
What I have already done with the News Module:
a) Set up two people groups (not usergroups): Submitters and Approvers. If a user is member of a group, which has submit privilege, he'll have the "Submit News" link in the main menu.

VERY NICE !

Quote:

Non-submitters/approvers won't have that link.
Approvers will also have the "Submit News" link, but will have full access to all fields in the news form. That is, both textareas and the fields to approve and set publish/expiry dates.

So, "Approvers" will have to rewrite something... hummm...
not sure to use it.

Quote:

This also has the extra benefit that I operate with only one submit form - where the fields available depend on the submitter's privileges.

it was my idea too.

Quote:

b) Show news by topic instead of just the 5/10/25... latest news stories

I was going to ask you something about this.
But "take care", this module has an advantage, it is "simple", keep it like this.

Quote:

I am waiting with the moderation outside the Admin area, until I have some more issues resolved with the other module devs and core devs regarding the waiting contests

Imagine this :
You are working in a compagny, this compagny have a web site (internet or intranet or extranet). You are NOT a programmer, you just use computers for your job. One day, your boss assign you the task to publish some informations on this site. You know it (the site) because you read it often, but you ARE not a programmer and you don't know Xoops, you even don't care about it. You really don't need to know an other interface. You want to publish you articles with the usual UI.... That's my case, "my" users are like this.

Quote:

As soon as we find a cross-browser WYSIWYG editor, I'll want it to replace the textareas

And may be you could, as I have made in newbbex, include an option to remove the "non" profesionnal things, such as smilies and post icons.


Quote:

I think that you have some very good ideas regarding this and would love to cooperate with you

thanks a lot ! Me too. I even agree to test a beta version with my web sites.

Quote:

instead of having 2-3 different News modules doing more or less the same with a few differences.

That's also my opinion, I will LOVE to see people working on a same "project" (in this case a module) to work together.

Quote:

If you are interested, I'll talk to w4z004 about getting you on the team.

I have already submited my candidature (by email) last week to herko and catzwolf but I did not yet received an answer.

Bye,
Hervé

8
Mithrandir
Re: How to know when comments are enabled or disabled ?

The display of news by topic or the "classic" way of displaying them is set in the module settings and will not be available for the users to select.

I'm waiting for development in the waiting contests, because we may come up with a way to have a "plugin" function on the waiting contests instead of hard-coding them. I don't want to spend too much time and effort making a page with access to special people if there will be a standard way to do so.

Quote:
So, "Approvers" will have to rewrite something... hummm...
not sure to use it.

I'm not with you on this one. If you are an "Approver" you will be presented with a form like the one you can get through the Administration Menu today. If you are only a "Submitter" you will get the standard form as the one today from the main menu.

If a submitter writes a news post, he will only have access to the normal textarea, just like today, so yes, if the approver feels that it should be divided over the two areas, he'll have to copy-paste it down there. If not, then he doesn't have to rewrite anything.

9
hervet
Re: How to know when comments are enabled or disabled ?
  • 2004/2/1 18:11

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Quote:

Mithrandir wrote:
I'm waiting for development in the waiting contests, because we may come up with a way to have a "plugin" function on the waiting contests instead of hard-coding them. I don't want to spend too much time and effort making a page with access to special people if there will be a standard way to do so.

Yes but will it be created ?

Quote:

I'm not with you on this one. If you are an "Approver" you will be presented with a form like the one you can get through the Administration Menu today. If you are only a "Submitter" you will get the standard form as the one today from the main menu.

It's not clear, the Approver is here to write articles or to approuve them ?


10
Mithrandir
Re: How to know when comments are enabled or disabled ?

I don't know yet. I've told myself that I wait a bit (also because I am very busy) and if there is no development, I make my own page.

An approver is a submitter with extended privileges, so both able to write and approve them.

Login

Who's Online

229 user(s) are online (49 user(s) are browsing Support Forums)


Members: 0


Guests: 229


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits