PEAK XOOPS - permission level and upload directory for users in englishin japanese

permission level and upload directory for users

  • As this forum is only for commentation, you cannot open a new topic
  • Guests cannot post into this forum
Target Downloads
Subject FCKeditor on XOOPS
Summary == XOOPS用 FCKeditor ==●利用法アーカイブを解凍し、XOOPS_ROOT_PATH直下においてください。XOOPS_ROOT_PATH/common/という形になります。すでに、なんらかのcommonファイルを入れていれば、commonフォルダがあるはずですし、なければ新しくcommonフォルダを作る形にな...
Previous post - Next post | Parent - Children.1 | Posted on 2007/8/7 10:56
hiebo  二等兵   Posts: 1
How nice fckxoops is!

I would like to permit uploads from reliable users.
Are there any problems in the following changes in config_and_auth.inc.php?

1. The upload directory for a user is assigned as

if( $xoopsUser->getVar('rank') == 7) {
define( 'FCK_UPLOAD_PATH' , XOOPS_UPLOAD_PATH.'/fckeditor');
define( 'FCK_UPLOAD_URL' , XOOPS_UPLOAD_URL.'/fckeditor');
} else {
define( 'FCK_UPLOAD_PATH' , XOOPS_UPLOAD_PATH.'/fckeditor' . '/' . $xoopsUser->uname()) ;
define( 'FCK_UPLOAD_URL' , XOOPS_UPLOAD_URL.'/fckeditor' . '/' . $xoopsUser->uname()) ;
}

2. We lower the authentication level to rank=1.

We also would like to add delete & rename functionalities and implement thumbnail images such as http://www.mcpuk.net/fbxp/.
What do you think?
Votes:5 Average:8.00
Previous post - Next post | Parent - No child | Posted on 2007/8/10 6:03
GIJOE  先任軍曹   Posts: 4110
hi hiebo.

Quote:

1. The upload directory for a user is assigned as

if( $xoopsUser->getVar('rank') == 7) {
define( 'FCK_UPLOAD_PATH' , XOOPS_UPLOAD_PATH.'/fckeditor');
define( 'FCK_UPLOAD_URL' , XOOPS_UPLOAD_URL.'/fckeditor');
} else {
define( 'FCK_UPLOAD_PATH' , XOOPS_UPLOAD_PATH.'/fckeditor' . '/' . $xoopsUser->uname()) ;
define( 'FCK_UPLOAD_URL' , XOOPS_UPLOAD_URL.'/fckeditor' . '/' . $xoopsUser->uname()) ;
}
It sounds good idea.

Quote:
2. We lower the authentication level to rank=1.
You can control it by $fck_canupload/$fck_isadmin.

Quote:
We also would like to add delete & rename functionalities and implement thumbnail images such as http://www.mcpuk.net/fbxp/.
It is not so difficult.
But I don't have time to implement it.
Votes:3 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!