Image Upload Pligg Module v1.02 for v9.9.0 of pligg

you.jpgFor the past few weeks i have been following a thread over at the pligg forums for the image upload module http://forums.pligg.com/pligg-mods/7114 … lable.html. This is a module i really wanted to use on a new project but unfortunatley it was broken wih v9.9.0 of pligg, support was first requested on the 8th january for a fix that never appeared. I decided to take a look at the code and see what i could do to get this great module working on v9.9.0.

So after nearly a month of no replies or a fix i present Image Upload Module v1.02 for v9.9.0 of pligg.

Download Image Upload Pligg Module v1.02
http://socialcmsbuzz.com/community/image-upload-pligg-module-t40.html

One edit you will have to make to get this module working with v9.9.0 of pligg is in your /modules/modules_libs.php this is more of a hack until a better solution appears.

OPEN /modules/modules_libs.php

FIND at line 87

function check_actions($location, &$vars)
{
global $module_actions;
$vars['location'] = $location;
if($module_actions){
foreach ( $module_actions as $k => $v ) {
if($k == $location){
foreach ( $v as $kk => $vv ) {
call_user_func_array($kk, array(&$vars));
}
}
}
}
}

REPLACE WITH
function check_actions($location, $vars="")
{
global $module_actions;
$vars['location'] = $location;
if($module_actions){
foreach ( $module_actions as $k => $v ) {
if($k == $location){
foreach ( $v as $kk => $vv ) {
call_user_func($kk, $vars);
}
}
}
}
}

All other edits are included in the modules readme.html file.

Enjoy

If you enjoyed this post, make sure you subscribe to my RSS feed!

Article Details

#

Author: on January 25th, 2008

Category: Pligg Modules

Tags: , , ,

  1. Geoserv says:

    I still can’t figure out why it shows the blackbox. If I click the blackbox, it opens the image though.

  1. [MOD] Image Upload (v.1) - Page 14 - Pligg Forum
  2. [MOD] Image Upload Module (v1.0) -- Now Available - Page 14 - Pligg Forum
  3. [MOD] Image Upload Module (v1.0) -- Now Available - Page 16 - Pligg Forum