61
urbanspacema
Re: XoopsForm and ajax empty response

can you share the code?
tnx



62
urbanspacema
Re: PHP-Debugging without XOOPS

wow pqp is fantastic, tnx Trabis



63
urbanspacema
two uploads one form

Hello all
I'm coming to develop a module but i have an issue with file upload.

My form has 2 field for upload file, one for image and one for a file (mp3/wma in my case)

the code is this (the module was generated from TDMCreate)
//Form podcast_image    
        
include_once XOOPS_ROOT_PATH."/class/uploader.php";
        
$uploaddir_podcast_image XOOPS_ROOT_PATH."/uploads/podcast/podcast/podcast_image/";
        
$uploader_podcast_image = new XoopsMediaUploader($uploaddir_podcast_image$xoopsModuleConfig["podcast_image_mimetypes"], $xoopsModuleConfig["podcast_image_size"], nullnull);

        if (
$uploader_podcast_image->fetchMedia("podcast_image")) {
            
$uploader_podcast_image->setPrefix("podcast_image_") ;
            
$uploader_podcast_image->fetchMedia("podcast_image");
            if (!
$uploader_podcast_image->upload()) {
                
$errors $uploader_podcast_image->getErrors();
                
redirect_header("javascript:history.go(-1)",3$errors);
            } else {
                
$obj->setVar("podcast_image"$uploader_podcast_image->getSavedFileName());
            }
        } else {
            
$obj->setVar("podcast_image"$_REQUEST["podcast_image"]);
        }
        
//Form podcast_file    
        
include_once XOOPS_ROOT_PATH."/class/uploader.php";
        
$uploaddir_podcast_file XOOPS_ROOT_PATH."/uploads/podcast/podcast/podcast_file/";
        
$uploader_podcast_file = new XoopsMediaUploader($uploaddir_podcast_file$xoopsModuleConfig["podcast_file_mimetypes"], $xoopsModuleConfig["podcast_file_size"], nullnull);
        
        if (
$uploader_podcast_file->fetchMedia("podcast_file")) {
            
$uploader_podcast_file->setPrefix("podcast_file_") ;
            
$uploader_podcast_file->fetchMedia("podcast_file");
            
            if (!
$uploader_podcast_file->upload()) {
                
$errors $uploader_podcast_file->getErrors();
                
redirect_header("javascript:history.go(-1)",3$errors);
            } else {
                
//$obj->setVar("podcast_file", $uploader_podcast_file->getSavedFileName());
                
$obj->setVar("podcast_file"$uploader_podcast_file->getSavedFileName());
            }
        }


the image was uploaded coreectly and his name insert in the database.
the file is not loaded.
and get any error message.
can be the upload XOOPS class does not allow two upload from the same form?



64
urbanspacema
Re: Moving to ELGG

ELGG is a good platform for social, +1 for me...



65
urbanspacema
Change the content of this template...

Hello all,
I think I found a small bug easily solved.

I noticed that in version 2.3.3 the variable $xoops_content is never empty because the template file in the folder modules/system/templates/system_homepage.html has a hidden content.

<div style="display: none;">
    <
p>Change the content of this template to fit your needs.p>
div>


I solved by deleting the contents in this file but I have a confirmation on this.

Urban



66
urbanspacema
Profile activity hack by dantom

Hello all!
A XOOPSITALIA honorary member DANTOM, posted on XI a huge hack for Recent Activities in user profile.

HERE a complete posts in italian language + zip file with hack.

Feel free to test and use!



67
urbanspacema
Re: Smarty Time?

hello
I have to show the date of a module and I used this example to make the Italian localization.

there is a way to make the location automatically?



68
urbanspacema
Re: [request] Woopra Module


I tried the module is fantastic!
there is a way to get on the homepage the number of total visitors?



69
urbanspacema
Re: [request] Woopra Module

I understood, then it seems interesting.
This module is already available?



70
urbanspacema
Re: [request] Woopra Module

hello everybody!
I use woopra, finally I have activated the account. But I do not understand the need for a separate module. I put js code directly into preferences -> footer and it works very well. that brings in aseparate module?




TopTop
« 1 ... 4 5 6 (7) 8 9 10 ... 19 »



Login

Who's Online

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


Members: 0


Guests: 162


more...

Donat-O-Meter

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

Latest GitHub Commits