21
luciorota
Module permissions
  • 2019/4/11 19:47

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


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' => ''
];



22
luciorota
Re: Watermark Hack for Xoops Core Imagemanager
  • 2019/1/3 10:24

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


Hi
tell us more please



23
luciorota
Re: Database: How do I set a column value to NULL
  • 2018/12/15 11:37

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


Hi Mamba
Everything checked

I think it is a Xoops limit...



24
luciorota
Re: Database: How do I set a column value to NULL
  • 2018/12/14 22:15

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


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



25
luciorota
Database: How do I set a column value to NULL
  • 2018/12/12 15:43

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


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?



26
luciorota
FOREIGN KEY
  • 2018/12/3 15:54

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


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



27
luciorota
Smarty 3.1.33
  • 2018/10/15 18:17

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


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



28
luciorota
Re: Xoops uploader
  • 2018/9/12 20:12

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


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();
    }
}



29
luciorota
Xoops uploader
  • 2018/9/12 12:13

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


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?



30
luciorota
Re: Wfdownloads 3.30 Beta-1 for XOOPS 2.5.9 and PHP 5.6+
  • 2018/6/9 19:47

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


Hi
I fork to test but I cannot install.

Fatal error: Class 'WfdownloadsUtility' not found in C:\wamp64\www\xoops.259\modules\wfdownloads\include\oninstall.php on line 49





TopTop
« 1 2 (3) 4 5 6 ... 17 »



Login

Who's Online

236 user(s) are online (162 user(s) are browsing Support Forums)


Members: 0


Guests: 236


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits