RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
Wordpress integration

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload
View previous topic :: View next topic  
Author Message
INTERNOZEROUNO



Joined: 23 Mar 2011
Posts: 8

PostPosted: May 03, 2011 5:02 pm    Post subject: Wordpress integration Reply with quote

Hi, I am trying to integrate Xupload with a Wordpress installation... Well, the easyest way is to put the form inside a iframe, but I don't like it.

I found out the problem is jQuery, disabling it Xupload works. What's the problem with jQuery? How can I make Xupload work even if jQuery is used in the same page?
Back to top
View user's profile Send private message
INTERNOZEROUNO



Joined: 23 Mar 2011
Posts: 8

PostPosted: May 04, 2011 9:27 am    Post subject: Reply with quote

Searching for a solution, I found this and it really works:

Change every $ in xupload.js into $$
Change the settings part in upload.cgi into this:
Code:
if($ENV{QUERY_STRING} =~ /^settings/)
{
   $c->{pass_required} = $c->{upload_password}&&1;
   print"Content-type: text/html\n\n";
   print"$_='$c->{$_}';" for qw(ext_allowed ext_not_allowed max_upload_files max_upload_size enable_file_descr pass_required email_required);
   print qq[if(\$\$('x_max_files'))\$\$('x_max_files').innerHTML = '$c->{max_upload_files}';];
   print qq[if(\$\$('x_max_size'))\$\$('x_max_size').innerHTML='$c->{max_upload_size}';];
   print q[if($$('x_password')){$$('x_password').style.display='block';}] if $c->{pass_required};
   print q[if($$('x_folder')){$$('x_folder').style.display='block';}] if $c->{allow_ext_folder};
   exit;
}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group