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;
} Thanks!





Linear Mode




