1
kuplo
Wfsection: How to remove the submit article from registered users?
  • 2004/12/24 18:15

  • kuplo

  • Just popping in

  • Posts: 8

  • Since: 2004/12/24


Im trying to figure out a way of removing the "submit article" wording in my sites main menu from registered users. Basically I dont want registered users to be able to submit an article. I want anon and registered users to be able to read the articles but not submit articles. I can't seem to find any permissions that will restrict registered users from submitting an article.

How can I do this please.

Thank you,

2
WallStArb
Re: Wfsection: How to remove the submit article from registered users?
  • 2004/12/24 21:06

  • WallStArb

  • Just popping in

  • Posts: 75

  • Since: 2004/12/8


I cant even get the latest beta to submit an article... after you press the "submit article" it goes to a page that just displays "heading"

http://www.sluse.com/modules/wfsection/submit.php



http://www.sluse.com/modules/wfsection/

u: admin p: password


Anyone have any ideas?

3
kuplo
Re: Wfsection: How to remove the submit article from registered users?
  • 2004/12/24 21:27

  • kuplo

  • Just popping in

  • Posts: 8

  • Since: 2004/12/24


Where did you get the latest version?

4
Bender
Re: Wfsection: How to remove the submit article from registered users?
  • 2004/12/24 21:52

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Quote:

kuplo wrote:
Im trying to figure out a way of removing the "submit article" wording in my sites main menu from registered users. Basically I dont want registered users to be able to submit an article. I want anon and registered users to be able to read the articles but not submit articles. I can't seem to find any permissions that will restrict registered users from submitting an article.

How can I do this please.
Thank you,



Well it would help if you tell which version of WF-Sections you are using. 1.x, 2.01, 2.07beta1?

However there is a general way to remove such submenus from the main menu which helps with many modules not only ours.
Usually every module has a file xoops_version.php which contains those entries which are added to the main menu.
One way is to just comment them out there.

Example: (wf-sections 2.01)

Line 176-177:
$modversion['sub'][$i 1]['name'] = _MI_WFS_SUBMIT;
            
$modversion['sub'][$i 1]['url'] = "submit.php";


just comment them out with a double "//"

//            $modversion['sub'][$i + 1]['name'] = _MI_WFS_SUBMIT;
//            $modversion['sub'][$i + 1]['url'] = "submit.php";


do the same for the lines 187-188.

Another example is if you wanted to remove the "popular","topten"and "archive" links those would be in lines 193-198
$modversion['sub'][$i 2]['name'] = _MI_WFS_POPULAR;
$modversion['sub'][$i 2]['url'] = "topten.php?counter=1";
$modversion['sub'][$i 3]['name'] = _MI_WFS_RATEFILE;
$modversion['sub'][$i 3]['url'] = "topten.php?rate=1";
$modversion['sub'][$i 4]['name'] = _MI_WFS_ARCHIVE;
$modversion['sub'][$i 4]['url'] = "archive.php";

Just as an example. If you work with another version you could look out for the position of those lines as they should be (nearly) identical.

If you need more help on this issue you can also have a look over to our homepage http://www.wf-projects.com. This is also where you can find the latest version 2.07 which is still in beta. (there is currently no upgrade script available!)

5
Catzwolf
Re: Wfsection: How to remove the submit article from registered users?
  • 2004/12/24 22:02

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Better still, you could turn this option off in the configuration. Yup, its that easy :-p

ATB

Catz

6
Bender
Re: Wfsection: How to remove the submit article from registered users?
  • 2004/12/24 22:23

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Quote:

WallStArb wrote:
I cant even get the latest beta to submit an article... after you press the "submit article" it goes to a page that just displays "heading"

http://www.sluse.com/modules/wfsection/submit.php

http://www.sluse.com/modules/wfsection/

u: ***** p: *****

Anyone have any ideas?



Hmmm ... when i do that on your site i see the correct form. I could even submit an article but i found you have yet no sections defined. I tried to define one in administration and it failed with an error trying to insert it into the database.

I really don´t know what causes this from looking at the error output. Could you try uninstalling the module, deleting it, reuploading the files and install it again.
This error has if i am not mistaken not been mentioned before and i have seen several broken installations lately that were cause by corrupted files.

7
Bender
Re: Wfsection: How to remove the submit article from registered users?
  • 2004/12/24 22:37

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Quote:

Catzwolf wrote:
Better still, you could turn this option off in the configuration. Yup, its that easy :-p

ATB
Catz


I don´t know who that catz dude is but he problably is soooo right.

[size=x-small]/note to self: get more than 4 hours of sleep. think before you write and save time.[/size]

Of course its in module settings:

Resized Image

8
davidl2
Re: Wfsection: How to remove the submit article from registered users?
  • 2004/12/24 22:45

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Aye - i think i've heard of this chap somewhere also

9
kuplo
Re: Wfsection: How to remove the submit article from registered users?
  • 2004/12/24 23:35

  • kuplo

  • Just popping in

  • Posts: 8

  • Since: 2004/12/24


Yeah thanks, I was using the older 1.x script so I've upgraded to the beta which is far and above better and allows me to use it for what I wanted almost right out of the box so to speak.

Thanks,

10
kuplo
Re: Wfsection: How to remove the submit article from registered users?
  • 2004/12/25 4:04

  • kuplo

  • Just popping in

  • Posts: 8

  • Since: 2004/12/24


Quote:

WallStArb wrote:
I cant even get the latest beta to submit an article... after you press the "submit article" it goes to a page that just displays "heading"

http://www.sluse.com/modules/wfsection/submit.php



http://www.sluse.com/modules/wfsection/

u: admin p: password


Anyone have any ideas?


In the preferences page of WFSection, go down near the bottom and turn off the spaw editor for both admin and user.

I didnt have this problem until I messed with the preferences and wanted to see what the spaw editor would allow me to do, after I chose to use the spaw editor for both user and admin I got the same problem you have.

Login

Who's Online

301 user(s) are online (256 user(s) are browsing Support Forums)


Members: 0


Guests: 301


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