Link to home
Start Free TrialLog in
Avatar of phoenix128
phoenix128Flag for Italy

asked on

How to disable flash uploader for existing Joomla extensions?

Since release of Adobe Flash 10 Joomla flash uploader (for files and images) has stop working.
Since joomla ver. 1.5.8 it is possible (trough main configuration) to disable such flash uploader and the standard form is displayed.

Existing extension like JAM (Joomla Advanced Message) were based on joomla flash uploader and now is impossible to use it.

Where can I start from to make existing extensions working with standard upload form?
Avatar of binarygeek
binarygeek
Flag of Pakistan image

goto Site->Global Configuration

Hit The "System" tab

scroll down a bit

Check the last option of media settings
Avatar of phoenix128

ASKER

Unfortunately, this option is valid for Joomla core components but not automatically valid for third-party extensions such as JAM witch implements some custom code to call upload field from Joomla libraries.

For example, in my case, JAM import all mootools staff needed to create the upload field alngoside with some custom JS code to call FancyUploader (attached to this comment).

I'd need to Know some guidelines to convert this fancyuploader with standard upload form.
var uploader;
function JAMAttachments(){
	if(!jam_attachmentslimit){
		return false;
	}
	
	uploader=new FancyUpload(
		$('JAMAttachment'),
		{
			url:document.adminForm.attachmenturl.value,
			swf:'/media/system/swf/uploader.swf',
			queueList:'upload-queue',
			container:$('upload-swf'),
			limitSize:jam_attachmentsizelimit,
			limitFiles:jam_attachmentslimit,
			onAllComplete:function(){
				document.adminForm.attr.value='1';
				JAM.Ajax()
			}
		});
		
		$('upload-clear').adopt(new Element('input',{type:'button',events:{click:uploader.clearList.bind(uploader,[false])},value:jam_clearcompleted}));
}
		
function JAMNewAttachments(show){
	var attachments=$('attachments');
	if(!attachments){
		return;
	}
	if(show){
		attachments.setStyle('display','block');
	}else{
		attachments.setStyle('display','none');
		uploader.clearList(true);
	}
}

Open in new window

check the file

libraries/joomla/html/html/behavior.php

if that helps
ASKER CERTIFIED SOLUTION
Avatar of binarygeek
binarygeek
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial