1
theory
'submit news' & 'archive' buttons help pls...
  • 2003/10/22 15:33

  • theory

  • Just popping in

  • Posts: 4

  • Since: 2003/10/22


how do I make the 'submit news' & 'archive' buttons only available for webmasters, and unavailable for anonymous users and registered users?

as it stands anonymous users cannot post, but they can still see the button.

registered users can actually post news on the frontpage! eek!

any help would be gladly appreciated :)

2
Herko
Re: 'submit news' & 'archive' buttons help pls...
  • 2003/10/22 19:23

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Easiest way to do this is edit the xoops_version.php file in the modules/news folder. Either comment out the submenu items you find in there (add // in front of the relevant lines) or add some admin detection code before the submenu items, eding it after the items. If the latter option isn't available to you due to no XOOPS coding experience, you can do the first option, the submit and archive links will no longer appear to anyone. Admins can still access the submit news item pages through the admin panel, tho.

Herko

3
theory
Re: 'submit news' & 'archive' buttons help pls...
  • 2003/10/22 23:58

  • theory

  • Just popping in

  • Posts: 4

  • Since: 2003/10/22


Thank you Herko, I did the edit out thingy as I doubt I could do the other thing just yet. Might I ask you where I could find a guide so I can learn?

Thanks again, you've helped me a lot and I appreciate it loads :)

4
Herko
Re: 'submit news' & 'archive' buttons help pls...
  • 2003/10/23 7:30

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Check out this thread.

Herko

Login

Who's Online

107 user(s) are online (65 user(s) are browsing Support Forums)


Members: 0


Guests: 107


more...

Donat-O-Meter

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

Latest GitHub Commits