Welcome to Geeklog, Anonymous Wednesday, May 01 2024 @ 04:38 pm EDT

Geeklog Forums

Registered Users cannot submit articles.


Rosamunda

Anonymous
Hello all!
I´m having a bit of truble figuring out how to avoid anyone writing except the administrators...
I want to show the articles only to registered users... but I want to avoid registered users to write anything also.
Can I do that with Geeklog? I thing I can... I only don´t know how... Mr. Green

Your help would be very much appreciated!

Thanks in advance!

Rosamunda
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Rosamunda: Can I do that with Geeklog?

You could hide the "contribute" link, but Geeklog will not prevent anyone from submitting an article if they go directly to the submit.php.

bye, Dirk
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
Quote by Dirk:You could hide the "contribute" link, but Geeklog will not prevent anyone from submitting an article if they go directly to the submit.php.

How about removing submit.php at all? If nobody's allowed to write except administrators then this file is dispensable.
Geeklog Polish Support Team
 Quote

Status: offline

tstockma

Forum User
Full Member
Registered: 07/22/03
Posts: 169
Rosamunda, I glanced thru the config.php file for 1.3.11, and found this:


// +---------------------------------------------------------------------------+
// | MISCELLANEOUS SETTINGS |
// | |
// | These are other various Geeklog settings. The defaults should work OK |
// | for most situations. |
// +---------------------------------------------------------------------------+

// this lets you select which functions are available for registered users only
$_CONF['loginrequired'] = 0; // all of them, if set to 1 will override all else
$_CONF['submitloginrequired'] = 0;
$_CONF['commentsloginrequired'] = 0;
$_CONF['linksloginrequired'] = 0;
$_CONF['pollsloginrequired'] = 0;
$_CONF['calendarloginrequired'] = 0;
$_CONF['statsloginrequired'] = 0;
$_CONF['searchloginrequired'] = 0;
$_CONF['profileloginrequired'] = 0;
$_CONF['emailuserloginrequired'] = 0;
$_CONF['emailstoryloginrequired'] = 0;


I haven't tried these, perhaps this will let you disable non-logged-in users from submitting.

I'm not sure anything in here will prevent logged-in users from submitting, the previous suggestion of taking "submit" away from your menu and other places is good, although if your users are savvy enough to GL to directly enter the "submit.php" URL you'll still get some.

Depending on your skills, you could rename "submit.php" to something different and that'll cut down on more...you could conceivably move it to a new sub-directory, password protected with .htaccess, and that'd begin to bring in Apache's password-protect abilities on running the script.

As for disabling non-logged-in-visitors from reading stories, I haven't tested this, but I believe in the admin screens for each Topic, you can disable "anonymous" from having read access.

HTH
Tom
www.southparkcity.com
 Quote

Rosamunda

Anonymous
Thanks! I could successfully avoid unregistered people to read the articles.
And for safety purposes I´ve renamed the submit file Very Happy

Thanks!!!!!

Rosamunda
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Quote by Rosamunda:
And for safety purposes I´ve renamed the submit file Very Happy



Just keep in mind that if you remove the submit.php some additional features like submitting links or events won´t work either and you will have to clean up the templates to remove the broken links.

Also it´s not because you can submit a story, it will show up automatically as a submission still needs to be approved or rejected.

In addition if you would include a e.g. forum for your users to "talk" you could use one of the available hacks to move a submission to the forum.

Not so sure it will be an advantage to remove submit.php

Still think Dirk´s solution is the cleanest.

Just my Just my two cents

Boris


Vanrillaer.com - our Family Portal
 Quote

Rosamunda

Anonymous
Thanks Boris! Mr. Green I think you´re right...

Its a deal - shaking hands
 Quote

All times are EDT. The time is now 04:38 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content