Search
Search results
Number of search hits: 13
-
Problem with workflow none (Dizkus)
-
Yes, the parameter online=1 will do the trick. But actions for updating and deleting publications were still missing.
Now here's a complete none.xml that seems to work:
None
This is an almost non-existing workflow. Everything is online immediately after creation.
Approved
Content has been approved is available online
Created on Jun 11, 2004
-
admin template (Dizkus)
-
Hi,
just made a holiday...:)
it was good without PC :)
Now work :)
about hacks...i made it, may be it's not 100% what i wont but it works...i do nothing in guppy.php just
First:
Hide panel from all exept admin.
in guppy.php fine the row
as you say, befor
[php] if ($toolbar != null)[/php]
put folowing:
[php]
if (!pnSecAuthAction(0, 'pagesetter::', "$tid::", ACCESS_ADMIN)){
$toolbar = null;
}
[/php]
it would be hide panel tool.
-------------------------------------------------------------
Second:
Permission:
file: pnuserapi.php
change 2 function
pagesetter_userapi_updatePub
line 213..or something like this:
comment:
[quote] [php]
if (!pnSecAuthAction(0, 'pagesetter::', "$tid:$pid:", ACCESS_EDIT))
return pagesetterErrorApi(__FILE__, __LINE__, _PGNOAUTH);
[/php] [/quote]
and put:
[quote] [php]
if (pnUserLoggedIn()) {
$u_id = pnUserGetVar('uid');
}
if (!pnModAPILoad('pagesetter', 'user'))
return pagesetterErrorApi(__FILE__, __LINE__, 'Failed to load Pagesetter user API');
$pubInfo = pnModAPIFunc('pagesetter',
'user',
'getPub',
array('tid' => $tid,
'pid' => $pid) );
// Check access
if (!pnSecAuthAction(0, 'pagesetter::', "$tid::", ACCESS_ADMIN)){
if (pnSecAuthAction(0, 'pagesetter::', "$tid::", ACCESS_EDIT)){
if ($pubInfo['creatorID'] != $u_id)
return pagesetterErrorApi(__FILE__, __LINE__, _PGNOUSEREDIT);
}
}
[/php] [/quote]
and
pagesetter_userapi_deletePub
line 990....not exectly...just find the permission chack and replace it this folowing code
[quote] [php]
//----------::Hack -------------------------------
if (pnUserLoggedIn()) {
$u_id = pnUserGetVar('uid');
}
if (!pnModAPILoad('pagesetter', 'user'))
return pagesetterErrorApi(__FILE__, __LINE__, 'Failed to load Pagesetter user API');
$pubInfo = pnModAPIFunc('pagesetter',
'user',
'getPub',
array('tid' => $tid,
'pid' => $pid) );
// Check access
if (!pnSecAuthAction(0, 'pagesetter::', "$tid::", ACCESS_ADMIN)){
if (pnSecAuthAction(0, 'pagesetter::',
Created on May 23, 2004
-
New/Edit publication type error in latest CVS files (Dizkus)
-
Hi Jorn,
I've checked out the latest files from Sourceforge and I get the following error when I try to add a new Publication type or Edit an existing one.
The error appears as a popup window when I hit the "commit" button:
Error:
[quote]/data/www/svhastel/yf16net/modules/pagesetter/pnadminapi.php(311): Missing argument 'tid' in 'pagesetter_adminapi_updatePublicationType'[/quote]
I've
Created on Dec 03, 2003
Start a new search