Author Topic: validateimage.php small modification  (Read 8445 times)

0 Members and 1 Guest are viewing this topic.

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
validateimage.php small modification
« 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
« Last Edit: April 25, 2007, 10:26:56 PM by mawenzi »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: validateimage.php small modification
« Reply #1 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']);
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: validateimage.php small modification
« Reply #2 on: June 14, 2006, 03:05:56 AM »
awesome!! just what i wanted! V@no u rock!
thanks :)

Offline Murat

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
    • Lavinya
Re: validateimage.php small modification
« Reply #3 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?
<?php echo 'Hello, World!'; ?>