Pagesetter » Unregistered or Anonymous submits

Information

This gives you the possibility to allow unregistered users to submit an item if they have the right permissions. (and possibly also edit an item afterwards!) Use with care and be careful with what you allow! Credits: Aalm and Trekclubs

Installation

Be careful! - you're hacking a core file of pagesetter! To accomplish this, in pneditapi.php, I replaced the lines around 1142-1149:

Code Snippets

Code

// return pagesetterErrorApi(__FILE__, __LINE__, "Missing argument 'user' in 'pagesetter_editapi_createRevisionLogEntry'");

$tid = $args['tid'];
$pid = $args['pid'];
$id = $args['id'];
$prevVersion = $args['prevVersion'];
// added 2005-07-26 by aalm to allow anonymous posts by setting user to 1, the pn_id of the anonymous user
// this allows anonymous users to also edit publications owned by the anonymous user
// so be careful how you use it
if (!isset($args['user']))
{$user = '1';
}else{
$user = $args['user'];}
Alleen ingelogde gebruikers kunnen commentaar plaatsen Inloggen / aanmelden