Results 1 to 4 of 4
  1. #1
    Casual Pligger swese44's Avatar
    Joined
    Apr 2008
    Posts
    39

    Fileupload doesn't actually upload files

    My Image Upload Module doesn't save a file anywhere. I can go through the process of selecting the image and submitting a new story, the page takes longer to load as if it's uploading the image, but an image is never uploaded. I check the image directory in my site root and nothing has been uploaded there.

    I have spent hours configuring every little detail and making every code change to enable the Image Upload module. I am 99% sure I've done everything correctly, however images will not upload.

    I am on Pligg 9.9 Beta. Extra Fields enabled, module enabled, all code changes made, images folder created in root directory with 777 permissions, and made change to module_libs.php to get rid of the warning.

    The only part of the process I wasn't clear on was for the change to submit.php. Can somebody familiar with Image Upload for Pligg 9.9 look at this function from submit.php and tell me if it correct?

    Code:
    // submit step 3
    function do_submit3() {
    	global $db;
    
    	$linkres=new Link;
    
    	$linkres->id=$link_id = strip_tags($_POST['id']);
    	$linkres->read();
    
    	totals_adjust_count($linkres->status, -1);
    	totals_adjust_count('queued', 1);
    
    	$linkres->status='queued';
    
    	$vars = array('linkres'=>$linkres);
    	check_actions('do_submit3', $vars);
    
    	$linkres->store_basic();
    	// START: Image Upload Module
    	check_actions('image_upload_process');
    	// END: Image Upload Module
    	$linkres->check_should_publish();
    	
    	if(!empty($_POST['trackback'])) {
    		require_once(mnminclude.'trackback.php');
    		$trackres = new Trackback;
    		$trackres->url=trim($_POST['trackback']);
    		$trackres->link=$linkres->id;
    		$trackres->title=$linkres->title;
    		$trackres->author=$linkres->author;
    		$trackres->content=$linkres->content;
    		$res = $trackres->send();
    	}
    
    	header("Location: " . getmyurl('upcoming'));
    	die;
    
    }
    You can view my site at JoomlaVote.com
    Thanks!

  2. #2
    New Pligger fredericd's Avatar
    Joined
    Apr 2008
    Posts
    6
    Quote Originally Posted by swese44 View Post
    My Image Upload Module doesn't save a file anywhere. I can go through the process of selecting the image and submitting a new story, the page takes longer to load as if it's uploading the image, but an image is never uploaded. I check the image directory in my site root and nothing has been uploaded there.

    I have spent hours configuring every little detail and making every code change to enable the Image Upload module. I am 99% sure I've done everything correctly, however images will not upload.

    I am on Pligg 9.9 Beta. Extra Fields enabled, module enabled, all code changes made, images folder created in root directory with 777 permissions, and made change to module_libs.php to get rid of the warning.

    The only part of the process I wasn't clear on was for the change to submit.php. Can somebody familiar with Image Upload for Pligg 9.9 look at this function from submit.php and tell me if it correct?

    Code:
    // submit step 3
    function do_submit3() {
    	global $db;
    
    	$linkres=new Link;
    
    	$linkres->id=$link_id = strip_tags($_POST['id']);
    	$linkres->read();
    
    	totals_adjust_count($linkres->status, -1);
    	totals_adjust_count('queued', 1);
    
    	$linkres->status='queued';
    
    	$vars = array('linkres'=>$linkres);
    	check_actions('do_submit3', $vars);
    
    	$linkres->store_basic();
    	// START: Image Upload Module
    	check_actions('image_upload_process');
    	// END: Image Upload Module
    	$linkres->check_should_publish();
    	
    	if(!empty($_POST['trackback'])) {
    		require_once(mnminclude.'trackback.php');
    		$trackres = new Trackback;
    		$trackres->url=trim($_POST['trackback']);
    		$trackres->link=$linkres->id;
    		$trackres->title=$linkres->title;
    		$trackres->author=$linkres->author;
    		$trackres->content=$linkres->content;
    		$res = $trackres->send();
    	}
    
    	header("Location: " . getmyurl('upcoming'));
    	die;
    
    }
    You can view my site at JoomlaVote.com
    Thanks!
    I have the same problem installed the latest image uplod mod for pligg 9.9
    Change the code as instructed nothing works ....

  3. #3
    Casual Pligger swese44's Avatar
    Joined
    Apr 2008
    Posts
    39
    Checked all settings again, GD installed, I have a feeling it is something wrong with the support.php. The tutorial was written for 9.8 or an older version, I guess that in 9.9 this code has to go in submit.php instead of submit_step_3.tpl, is this correct?

    Code:
    // START: Image Upload Module
    check_actions('image_upload_process');
    // END: Image Upload Module
    Can somebody with Image Upload working in 9.9 please post the code to their submit.php? Thank you.

  4. #4
    Casual Pligger swese44's Avatar
    Joined
    Apr 2008
    Posts
    39

    Solved

    Well I got this one solved. The problem was that I had downloaded an old version (.04). Undoing the code changes was a pain, but I got it all sorted out and upgraded to the newest version of 1.03.

    If you're having this same problem, make sure you've upgraded to the newest version. While you're undoing your code changes make sure to take a look at the "Upgrading from v.0.1+" section of the ReadMe.

Similar Threads

  1. How to upload files in pligg?
    By vidhu in forum Questions & Comments
    Replies: 6
    Last Post: 05-15-2011, 08:16 AM
  2. PHP include doesn't work for me( PHP in template files)
    By Kamilo23 in forum Questions & Comments
    Replies: 2
    Last Post: 06-17-2010, 11:06 AM
  3. Upload Files, Rate, and Download ?
    By onelessthang in forum Questions & Comments
    Replies: 2
    Last Post: 04-19-2010, 08:21 AM
  4. ok so which EXACT folder do you suppose to upload the files to?
    By remyxo in forum Questions & Comments
    Replies: 6
    Last Post: 12-29-2007, 06:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting