21
luciorota
Re: Module permissions
  • 2019/4/13 14:18

  • luciorota

  • Module Developer

  • Posts: 218

  • Since: 2007/4/20


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, ...
- ...



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

  • luciorota

  • Module Developer

  • Posts: 218

  • 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
le="color: #000000"><?php / ------------------- 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' => '' ];



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

  • luciorota

  • Module Developer

  • Posts: 218

  • Since: 2007/4/20


Hi
tell us more please



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

  • luciorota

  • Module Developer

  • Posts: 218

  • Since: 2007/4/20


Hi Mamba
Everything checked

I think it is a Xoops limit...



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

  • luciorota

  • Module Developer

  • Posts: 218

  • Since: 2007/4/20


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

le="color: #000000"><?php $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



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

  • luciorota

  • Module Developer

  • Posts: 218

  • 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?



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

  • luciorota

  • Module Developer

  • Posts: 218

  • Since: 2007/4/20


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



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

  • luciorota

  • Module Developer

  • Posts: 218

  • 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



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

  • luciorota

  • Module Developer

  • Posts: 218

  • Since: 2007/4/20


This code works

le="color: #000000"><?php 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(); } }



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

  • luciorota

  • Module Developer

  • Posts: 218

  • 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?

le="color: #000000"><?php ... $formFile = new XoopsFormFile('files', 'files[]', 0); $formFile->setExtra('multiple', 'multiple'); ...


Someone can suggest me a solution?




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



Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits