1
janmetpet
Prevent newsposts by registred users
  • 2004/5/17 12:27

  • janmetpet

  • Just popping in

  • Posts: 78

  • Since: 2004/5/17


Hello,

I have a group of authorized editors that post news, I don't want anyone with a registration just posting news.
Can anyone tell me please how I can prevent registred users from posting news. Thanks in advance!

Jan

2
Herko
Re: Prevent newsposts by registred users
  • 2004/5/17 12:37

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


In order to assing admin rights to specific users, you will have to create a new group in order to set them apart from the regular users. For this, you go to system admin -> groups, and you create a new group, give them the approproate rights, and then assign those users you want to have the rights to the newly created group. Then, edit the registsred users group and clear those admin rights that you don't want them to have.

Herko

3
janmetpet
Re: Prevent newsposts by registred users
  • 2004/5/18 10:32

  • janmetpet

  • Just popping in

  • Posts: 78

  • Since: 2004/5/17


Thanks Herko for your reply. I did just that, but the thing is that people keep seeing the 'post news' button. They can still post it, although it won't publish (admin has to publish). There should be no reference at all to posting news. Is that possible? Thanks.

4
Mithrandir
Re: Prevent newsposts by registred users

News 1.2

*sooon... soon*

5
Bender
Re: Prevent newsposts by registred users
  • 2004/5/18 11:22

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


If you are talking about the main menu entries you could just edit the xoops_version.php in the news module folder and replace these lines:

// Menu
$modversion['hasMain'] = 1;
$modversion['sub'][1]['name'] = _MI_NEWS_SMNAME1;
$modversion['sub'][1]['url'] = "submit.php";
$modversion['sub'][2]['name'] = _MI_NEWS_SMNAME2;
$modversion['sub'][2]['url'] = "archive.php";


by something like

// Menu
$modversion['hasMain'] = 1;
[
b][color=FF3333]//[/color][/b]$modversion['sub'][1]['name']= _MI_NEWS_SMNAME1;
[b][color=FF3333]//[/color][/b]$modversion['sub'][1]['url']= "submit.php";
$modversion['sub'][[b][color=FF3333]1[/color][/b]]['name'] = _MI_NEWS_SMNAME2;
$modversion['sub'][[b][color=FF3333]1[/color][/b]]['url'] = "archive.php";


But this would make it invisible to everyone so you would need to have some kind of custom menu like iMenu for example where you could setup a block or menu point which is only visible for your authorized group with a link to submit.php

This should do the trick. (Don´t forget to update the module)

Someone pointed me to this on the german forum some time ago ... think it was frankblack but i am not sure anymore and can´t find the original posting now.

Login

Who's Online

294 user(s) are online (193 user(s) are browsing Support Forums)


Members: 0


Guests: 294


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