4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: ascanio on June 13, 2006, 06:56:33 PM

Title: validateimage.php small modification
Post by: ascanio on June 13, 2006, 06:56:33 PM
Hi im trying to modify the validateimages.php cuz i don't want to be able to change the owner of the image when i validate an image
and anther reason is becuase it takes a lot of time more than 50 seconds to load the whole list of users so it make the process of validation really slow, ive been trying to makes the changes myself but when i save validate the image it change the owner to the admin

i know that what i have to change is this line right here but i don't know how to change it

Quote
show_user_select_row($lang['user'], $image_row['user_id']);

this is what is would like to have
(http://img69.imageshack.us/img69/8665/sshot24zl.png)
Title: Re: validateimage.php small modification
Post by: V@no on June 14, 2006, 02:25:44 AM
replace that line with this:
Code: [Select]
  show_hidden_input("user_id", $image_row['user_id']);
  $sql = "SELECT ".get_user_table_field("", "user_name")."
          FROM ".USERS_TABLE."
          WHERE ".get_user_table_field("", "user_id")." = ".$image_row['user_id'];
  $result = $site_db->query_firstrow($sql);
  show_custom_row($lang['user'], $result['user_name']);
Title: Re: validateimage.php small modification
Post by: ascanio on June 14, 2006, 03:05:56 AM
awesome!! just what i wanted! V@no u rock!
thanks :)
Title: Re: validateimage.php small modification
Post by: Murat on April 25, 2007, 09:47:38 PM
hello all.
I have same problem.

vono thanks for fix.

But .../admin/?goto=images.php%3Faction%3Deditimage%26amp%3Bimage_id%3D609
and removeimage. How to fix?