xoops forums

Forum Index


Board index » All Posts (luciorota)




luciorota

Module Developer
Posted on: 4/13 14:18
luciorota
luciorota (Show more)
Module Developer
Posts: 192
Since: 2007/4/20
#1

Re: Module permissions

Quote:

...driving an automated permissions page, similar to the about page


That's exactly what I'm looking for!

2 or more kind of permissions:
- "global permissions" for example: print, user extendee editor, ...
- "per item permissions" for example: read or write into a category, ...
- ...


luciorota

Module Developer
Posted on: 4/11 19:47
luciorota
luciorota (Show more)
Module Developer
Posts: 192
Since: 2007/4/20
#2

Module permissions

Hi fellas!
Do you know if has anyone tried to move the definition of permissions in the 'xoops_version.php' file?

example
/ ------------------- Perms ------------------- //
$i 0;

$modversion['gperm'] = array();

$modversion['gperm'][] = [
    
'name' => 'itemR',
    
'title' => '_MI_PERM_ITEMR',
    
'description' => '_MI_PERM_ITEMR_DESC',
    
'itemid' => true,
    
'trueifadmin' => true,
    
'category' => ''
];
$modversion['gperm'][] = [
    
'name' => 'itemW',
    
'title' => '_MI_PERM_ITEMW',
    
'description' => '_MI_PERM_ITEMW_DESC',
    
'itemid' => true,
    
'trueifadmin' => true,
    
'category' => ''
];
$modversion['gperm'][] = [
    
'name' => 'itemRW',
    
'title' => '_MI_PERM_ITEMrW',
    
'description' => '_MI_PERM_ITEMRW_DESC',
    
'itemid' => true,
    
'trueifadmin' => true,
    
'category' => ''
];
$modversion['gperm'][] = [
    
'name' => 'print',
    
'title' => '_MI_PERM_PRINT',
    
'description' => '_MI_PERM_PRINT_DESC',
    
'itemid' => false,
    
'trueifadmin' => true,
    
'category' => ''
];


luciorota

Module Developer
Posted on: 1/3 10:24
luciorota
luciorota (Show more)
Module Developer
Posts: 192
Since: 2007/4/20
#3

Re: Watermark Hack for Xoops Core Imagemanager

Hi
tell us more please


luciorota

Module Developer
Posted on: 12/15 11:37
luciorota
luciorota (Show more)
Module Developer
Posts: 192
Since: 2007/4/20
#4

Re: Database: How do I set a column value to NULL

Hi Mamba
Everything checked

I think it is a Xoops limit...


luciorota

Module Developer
Posted on: 12/14 22:15
luciorota
luciorota (Show more)
Module Developer
Posts: 192
Since: 2007/4/20
#5

Re: Database: How do I set a column value to NULL

Thanks Mamba
I would like to reset time_update value to NULL
When i use an expression like this:

$itemObj->setVar('myDate'NULL);


does note set 'MyDate' field to NULL but to '0000-00-00'
are there some tips to solve my question?

Thanks again


luciorota

Module Developer
Posted on: 12/12 15:43
luciorota
luciorota (Show more)
Module Developer
Posts: 192
Since: 2007/4/20
#6

Database: How do I set a column value to NULL

I have a question.

I have to set a database column value to NULL but ...
My object is an extension of XoopsPersistableObject class.
Var 'date' data type is XOBJ_DTYPE_DATE
Database field is defines as
date DATE NULL DEFAULT NULL

Any suggestion?


luciorota

Module Developer
Posted on: 12/3 15:54
luciorota
luciorota (Show more)
Module Developer
Posts: 192
Since: 2007/4/20
#7

FOREIGN KEY

Hi everybody
How can I set FOREIGN KEY on module tables when I use Xoops modules installation procedure?
Thanks
Lucio


luciorota

Module Developer
Posted on: 2018/10/15 18:17
luciorota
luciorota (Show more)
Module Developer
Posts: 192
Since: 2007/4/20
#8

Smarty 3.1.33

Hi to everybody
why not update Xoops 2.5.10 Smarty version to 3.xx trunk?
I did not find compatibility problems in my tests.

Lucio


luciorota

Module Developer
Posted on: 2018/9/12 20:12
luciorota
luciorota (Show more)
Module Developer
Posts: 192
Since: 2007/4/20
#9

Re: Xoops uploader

This code works

for ($i 0$i count($_FILES['files']['name']); $i++) {
    echo 
"[{$i}]";
    if (
$uploader->fetchMedia('files'$i)) {
        if (!
$uploader->upload()) {
            echo 
$uploader->getErrors();
        } else {
            echo 
'<h4>File uploaded successfully!</h4>';
            echo 
'Saved as: ' $uploader->getSavedFileName() . '<br>';
            echo 
'Full path: ' $uploader->getSavedDestination();
        }
    } else {
        echo 
$uploader->getErrors();
    }
}


luciorota

Module Developer
Posted on: 2018/9/12 12:13
luciorota
luciorota (Show more)
Module Developer
Posts: 192
Since: 2007/4/20
#10

Xoops uploader

Hi
In my experience XoopsMediaUploader class does not support miltiple uploads.

For example, how can I upload files in this case?

...
$formFile = new XoopsFormFile('files''files[]'0);
$formFile->setExtra('multiple''multiple');
...


Someone can suggest me a solution?



TopTop
(1) 2 3 4 ... 15 »