xoops forums

Forum Index


Board index » All Posts (luciorota)




luciorota

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

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: 204
Since: 2007/4/20
#22

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?


luciorota

Module Developer
Posted on: 2018/6/9 19:47
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#23

Re: Wfdownloads 3.30 Beta-1 for XOOPS 2.5.9 and PHP 5.6+

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



luciorota

Module Developer
Posted on: 2016/6/29 7:59
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#24

Re: Is there a working newsletter module?

this is my latest...
https://github.com/luciorota/xnewsletter


luciorota

Module Developer
Posted on: 2016/6/8 13:08
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#25

Re: strtotime in edit mod

Hi
In my latest modules I solved the date format problem using the php DateTime object in this way

in form ...
// set date in a timestamp format
$item_date = ...
// form datetime element
$form->addElement(new XoopsFormDateTime(_ITEM_DATE'item_date'15$this->getVar('item_date'), true));


in form request handler...
// get date in a timestamp format
$dateTimeObj DateTime::createFromFormat(_SHORTDATESTRING$_REQUEST['item_date']['date']);
$dateTimeObj->setTime(000);
// date timestamp
$item_date $dateTimeObj->getTimestamp() + $_REQUEST['item_date']['time'];
unset(
$dateTimeObj);


I think it's a solution that could work well

Bye Lucio


luciorota

Module Developer
Posted on: 2015/6/19 9:22
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#26

Re: force password change

Good!
I'm working on a module too
but i have conflict problems with Profile module.
Preload system chould be improved.


luciorota

Module Developer
Posted on: 2015/6/13 7:47
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#27

force password change

Is there a way to force the change of password periodically, i.e. every 90 days?


luciorota

Module Developer
Posted on: 2015/3/12 16:47
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#28

Re: XOOPS MyMenus 1.51 RC-1 released for testing

Are we ready to release?


luciorota

Module Developer
Posted on: 2015/2/24 17:05
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#29

Re: The future of XOOPS?

Thanks Kevin for your sincerity

But...

What can you do for Xoops?


luciorota

Module Developer
Posted on: 2015/2/23 17:22
luciorota
luciorota (Show more)
Module Developer
Posts: 204
Since: 2007/4/20
#30

Re: MyMenus Module with Drag & Drop (1.50 Beta 1)

Committed last changes

https://github.com/luciorota/mymenus

changelog

<u>Version 1.51 Beta 3 (2015-02-23)</u>
- TODO: use Xmf libraries
- TODO: reintroduce hooks ...
- TODO: create infinite levels menu
- TODO: inline edit link vars
- fixed bug in update procedure (luciorota)
- added treemenu (LioMJ)
- standardize module to latest code style standards (luciorota)
- merged @zyspec and @luciorota code (luciorota)

what about working from this point?



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