Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - __G__

Pages: 1 2 3 [4] 5 6 7 8 ... 19
46
oh damm !!!! i  tryd this this is hella nice i hope someone can implement this with 4images :D i would love this MOD

47
Discussion & Troubleshooting / Re: Admin Setting.php
« on: February 09, 2009, 09:48:00 AM »
V@NO i dont know what to say DUDE You are JUST GREAT Always helping people Thanks a lot V@NO i don't have words Seriously thanks a lot bro >:D<

48
Discussion & Troubleshooting / Re: Admin Setting.php
« on: February 09, 2009, 08:02:14 AM »
Ok another quick update every thing works till i add this code in admin/setting.php


  show_table_separator($setting_group[8], 2, "setting_group_8");
  show_setting_row("report_image_status", "show_report_image_select")



and now page goes blank (WHite PAGE NOW) any suggestions ?? why  again its that report a picture mod

49
Discussion & Troubleshooting / Re: Admin Setting.php
« on: February 09, 2009, 07:51:51 AM »
So a quick update on the problem i removed The Report a picture setting from admin/setting.php and everything works fine :( but in eed that mod this is version 1.76 i just removed the coding from admin/setting.php and its working rite now So i will try to now put that code back on to working copy and see if it works now i willl let u guys know if it works if not than i hope someone can help me out here thanks in advance

50
Discussion & Troubleshooting / Admin Setting.php
« on: February 09, 2009, 07:38:49 AM »
hi i have 4images 1.76 and i have these mods installed

Dynamic Title
Google Youtube VIdeo
Ajax Search Form
Report a picture - v1.0 (Final release & patched version)
On-fly image annotation ( watermark)
Most Ever Users Online v2
Media sites v1.1 (2009-02-02)
Recylce Bin MOD
Tweak MOD: Admin CP / Validate Images (Speed/Popup)
[Mod] Image rateform
Poll v2.0 (with ACP integration) NEW VERSION!!!
Email image validation results to the user v2
[Mod] Puzzle


And now the problem is when in upload a fresh copy of admin/setting.php everything works fine but as soon i upload my edited copy of admin/setting.php it dont work

my copy of admin/setting.php is  rite here

Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: settings.php                                         *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.6                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

define('IN_CP'1);
define('ROOT_PATH''./../');
require(
'admin_global.php');

if ( 
$action == "") {
  
$action "modifysettings";
}

function 
show_template_dir_select($setting_name$setting_value) {
  echo 
"<select name=\"setting_item[".$setting_name."]\">";
  
$handle opendir(ROOT_PATH.TEMPLATE_DIR);
  while (
$folder = @readdir($handle)) {
    if (@
is_dir(ROOT_PATH.TEMPLATE_DIR."/".$folder) && $folder != "." && $folder != "..") {
      
$folderlist[] = $folder;
    }
  }
  
sort($folderlist);
  for(
$i 0$i sizeof($folderlist); $i++) {
    echo 
"<option value=\"".$folderlist[$i]."\"";
    if (
$setting_value == $folderlist[$i]) {
      echo 
" selected=\"selected\"";
    }
    echo 
">".$folderlist[$i]."</option>\n";
  }
  
closedir($handle);
  echo 
"</select>";
}

function 
show_language_dir_select($setting_name$setting_value) {
  echo 
"<select name=\"setting_item[".$setting_name."]\">";
  
$handle opendir(ROOT_PATH."lang");
  while (
$folder = @readdir($handle)) {
    if (@
is_dir(ROOT_PATH."lang/$folder") && $folder != "." && $folder != "..") {
      
$folderlist[] = $folder;
    }
  }
  
sort($folderlist);
  for(
$i 0$i sizeof($folderlist); $i++) {
    echo 
"<option value=\"".$folderlist[$i]."\"";
    if (
$setting_value == $folderlist[$i]) {
      echo 
" selected=\"selected\"";
    }
    echo 
">".$folderlist[$i]."</option>\n";
  }
  
closedir($handle);
  echo 
"</select>\n";
}

function 
show_convert_tool_select($setting_name$setting_value) {
  global 
$convert_tool_optionlist;
  echo 
"<select name=\"setting_item[".$setting_name."]\">";
  foreach (
$convert_tool_optionlist as $key => $val) {
    echo 
"<option value=\"$key\"";
    if (
$setting_value == $key) {
      echo 
" selected=\"selected\"";
    }
    echo 
">".$val."</option>";
  }
  echo 
"</select>";
}

function 
show_image_order_select($setting_name$setting_value) {
  global 
$image_order_optionlist;
  echo 
"<select name=\"setting_item[".$setting_name."]\">";
  foreach (
$image_order_optionlist as $key => $val) {
    echo 
"<option value=\"$key\"";
    if (
$setting_value == $key) {
      echo 
" selected=\"selected\"";
    }
    echo 
">".$val."</option>";
  }
  echo 
"</select>";
}

function 
show_image_sort_select($setting_name$setting_value) {
  global 
$image_sort_optionlist;
  echo 
"<select name=\"setting_item[".$setting_name."]\">";
  foreach (
$image_sort_optionlist as $key => $val) {
    echo 
"<option value=\"$key\"";
    if (
$setting_value == $key) {
      echo 
" selected=\"selected\"";
    }
    echo 
">".$val."</option>";
  }
  echo 
"</select>";
}

function 
show_upload_mode_options($setting_name$setting_value) {
  global 
$upload_mode_optionlist;
  foreach (
$upload_mode_optionlist as $key => $val) {
    echo 
"<input type=\"radio\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
    if (
$setting_value == $key) {
      echo 
" checked=\"checked\"";
    }
    echo 
"> ".$val."<br />";
  }
}

function 
show_auto_thumbnail_resize_type_options($setting_name$setting_value) {
  global 
$auto_thumbnail_resize_type_optionlist;
  foreach (
$auto_thumbnail_resize_type_optionlist as $key => $val) {
    echo 
"<input type=\"radio\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
    if (
$setting_value == $key) {
      echo 
" checked=\"checked\"";
    }
    echo 
"> ".$val."<br />";
  }
}

function 
show_account_activation_options($setting_name$setting_value) {
  global 
$account_activation_optionlist;
  foreach (
$account_activation_optionlist as $key => $val) {
    echo 
"<input type=\"radio\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
    if (
$setting_value == $key) {
      echo 
" checked=\"checked\"";
    }
    echo 
"> ".$val."<br />";
  }
}

function 
show_setting_row($setting_name$value_option ""$htmlspecialchars 0) {
  global 
$config$setting;
$config_value $config[$setting_name];
  
$config_value = ($htmlspecialchars) ? htmlspecialchars($config[$setting_name]) : $config[$setting_name];
  
$setting[$setting_name] = replace_url($setting[$setting_name]);
  if (
$value_option == "") {
    
show_input_row($setting[$setting_name], "setting_item[".$setting_name."]"$config_value);
  }
  elseif (
$value_option == "textarea") {
    
show_textarea_row($setting[$setting_name], "setting_item[".$setting_name."]"$config_value""6);
  }
  elseif (
$value_option == "radio") {
    
show_radio_row($setting[$setting_name], "setting_item[".$setting_name."]"$config_value);
  }
  else {
    echo 
"<tr class=\"".get_row_bg()."\">\n<td valign=\"top\"><p class=\"rowtitle\">".$setting[$setting_name]."</p></td>\n";
    echo 
"<td><p>";
    
$value_option($setting_name$config_value);
    echo 
"</p></td>\n</tr>\n";
  }
  function 
show_report_image_select($setting_name$setting_value) {
    global 
$report_image_optionlist;
    echo 
"<select name=\"setting_item[".$setting_name."]\">";
    foreach (
$report_image_optionlist as $key => $val) {
      echo 
"<option value=\"$key\"";
      if (
$setting_value == $key) {
        echo 
" selected=\"selected\"";
      }
      echo 
">".$val."</option>";
    }
    echo 
"</select>";
}
}

// end of functions

show_admin_header();

if (
$action == "updatesettings") {
  
$setting_item $HTTP_POST_VARS['setting_item'];
  foreach (
$setting_item as $key => $val) {
$val trim($val);
    
$sql "UPDATE ".SETTINGS_TABLE."
            SET setting_value = '
$val'
            WHERE setting_name = '
$key'";
    
$site_db->query($sql);
  }

  if (
$HTTP_POST_VARS['setting_item']['language_dir'] != $config['language_dir']) {
    include(
ROOT_PATH.'lang/'.$HTTP_POST_VARS['setting_item']['language_dir'].'/admin.php');
?>

    <script language="javascript">
    <!--
    top.head.location = '<?php echo $site_sess->url(ROOT_PATH."admin/index.php?action=head"); ?>';
    top.nav.location = '<?php echo $site_sess->url(ROOT_PATH."admin/index.php?action=nav"); ?>';
    top.main.location = '<?php echo $site_sess->url(ROOT_PATH."admin/settings.php?action=modifysettings&settings_msg=".urlencode($lang['save_settings_success'])); ?>';
    // -->
    </script>
<?php
    printf
("<b>%s</b><p>"$lang['save_settings_success']);
    
show_admin_footer();
  }
  else {
    
$msg sprintf("<b>%s</b><p>"$lang['save_settings_success']);
    
$action "modifysettings";
  }
}

if (
$action == "modifysettings") {
  if (isset(
$HTTP_GET_VARS['settings_msg'])) {
    
printf("<b>%s</b><p>"trim($HTTP_GET_VARS['settings_msg']));
  }
  elseif (!empty(
$msg)) {
    echo 
$msg;
  }

  
$sql "SELECT setting_name, setting_value
          FROM "
.SETTINGS_TABLE;
  
$result $site_db->query($sql);
  
$config = array();
  while (
$row $site_db->fetch_array($result)) {
    
$config[$row['setting_name']] = $row['setting_value'];
  }

  
show_form_header("settings.php""updatesettings");
  
show_table_header($lang['nav_general_settings'], 2);
  echo 
"<tr class=\"tablerow\"><td colspan=\"2\">";
  echo 
"<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\"><tr valign=\"top\">\n";
  
$numgroups sizeof($setting_group);
  
$percolumn ceil($numgroups 2);
  
$settingcounter 0;
  foreach (
$setting_group as $key => $val) {
    
$settingcounter++;
    echo 
"<td>";
    
show_text_link($val,"#setting_group_".$key);
    echo 
"<br /></td>\n";
    if (
$settingcounter == 4) {
      echo 
"</tr><tr>";
      
$settingcounter 0;
    }
  }

  echo 
"</tr></table>\n";
  echo 
"</td></tr>";
  
show_table_separator($setting_group[1], 2"setting_group_1");
  
show_setting_row("site_name"""1);
  
show_setting_row("site_email");
  
show_setting_row("use_smtp""radio");
  
show_setting_row("smtp_host");
  
show_setting_row("smtp_username");
  
show_setting_row("smtp_password");
  
show_setting_row("template_dir""show_template_dir_select");
  
show_setting_row("language_dir""show_language_dir_select");
  
show_setting_row("date_format");
  
show_setting_row("time_format");
  
show_setting_row("convert_tool""show_convert_tool_select");
  
show_setting_row("convert_tool_path");
  
show_setting_row("gz_compress""radio");
  
show_setting_row("gz_compress_level");

  
show_table_separator($setting_group[2], 2"setting_group_2");
  
show_setting_row("cat_cells");
  
show_setting_row("cat_table_width");
  
show_setting_row("cat_table_cellspacing");
  
show_setting_row("cat_table_cellpadding");
  
show_setting_row("num_subcats");

  
show_table_separator($setting_group[3], 2"setting_group_3");
  
show_setting_row("image_order""show_image_order_select");
  
show_setting_row("image_sort""show_image_sort_select");
  
show_setting_row("new_cutoff");
  
show_setting_row("image_border");
  
show_setting_row("image_cells");
  
show_setting_row("default_image_rows");
  
show_setting_row("custom_row_steps");
  
show_setting_row("image_table_width");
  
show_setting_row("image_table_cellspacing");
  
show_setting_row("image_table_cellpadding");

  
show_table_separator($setting_group[4], 2"setting_group_4");
  
show_setting_row("upload_mode""show_upload_mode_options");
  
show_setting_row("allowed_mediatypes");
  
show_setting_row("max_thumb_width");
  
show_setting_row("max_thumb_height");
  
show_setting_row("max_thumb_size");
  
show_setting_row("max_image_width");
  
show_setting_row("max_image_height");
  
show_setting_row("max_media_size");
  
show_setting_row("upload_notify""radio");
  
show_setting_row("upload_emails");
  
show_setting_row("auto_thumbnail""radio");
  
show_setting_row("auto_thumbnail_dimension");
  
show_setting_row("auto_thumbnail_resize_type""show_auto_thumbnail_resize_type_options");
  
show_setting_row("auto_thumbnail_quality");

  
show_table_separator($setting_group[5], 2"setting_group_5");
  
show_setting_row("badword_list""textarea");
  
show_setting_row("badword_replace_char");
  
show_setting_row("wordwrap_comments");
  
show_setting_row("html_comments""radio");
  
show_setting_row("bb_comments""radio");
  
show_setting_row("bb_img_comments""radio");

  
show_table_separator($setting_group[6], 2"setting_group_6");
  
show_setting_row("category_separator"""1);
  
show_setting_row("paging_range");

  
show_table_separator($setting_group[7], 2"setting_group_7");
  
show_setting_row("user_edit_image""radio");
/*
MOD RECYCLE BIN FOR IMAGES
BEGIN REPLACE
*/
  
echo "<tr class=\"".get_row_bg()."\">\n<td valign=\"top\"><p class=\"rowtitle\">".$setting['user_delete_image']."</p></td>\n";
  echo 
"<td><p>";
  echo 
"\n<select name=\"setting_item[user_delete_image]\" class=\"categoryselect\" onkeypress=\"if(window.event.keyCode==13)this.form.submit();\">\n";
  for(
$i 0$i count($setting['user_delete_image_array']); $i++)
  {
    echo 
"<option value=\"".$i."\"".(($i == $config['user_delete_image']) ? " selected" "").">".$setting['user_delete_image_array'][$i]."</option>\n";
  }
  echo 
"</select>\n";
  echo 
"</p></td>\n</tr>\n";
/*
MOD RECYCLE BIN FOR IMAGES
END REPLACE
*/
  
show_setting_row("user_edit_comments""radio");
  
show_setting_row("user_delete_comments""radio");
  
show_setting_row("account_activation""show_account_activation_options");
  
show_setting_row("activation_time");
  
show_setting_row("session_timeout");
  
show_setting_row("display_whosonline""radio");
  
show_setting_row("highlight_admin""radio");

  
show_table_separator($setting_group[8], 2"#setting_group_8");
  
show_setting_row("report_image_status""show_report_image_select");

  
/*
    MOD BAN
    START INSERT
  */
    
show_table_separator($setting_group[9], 2"#setting_group_9");
    
show_setting_row("look_hostname""radio");
  
/*
    MOD BAN
    END INSERT
*/

  
show_form_footer($lang['save_changes'], ""2);
}

show_admin_footer();
?>


Can someone please help me and what it does is

I hope someone can help me here plz

51
wow it works great quick question what if we wanna upload a custom thumnail for the  video instead of default youtube or google or yahoo video thumnail i tryd uploading a custom thumnail but still the default one pops up i hope someone can help me here :D

52
Hi was trying to get this work with 4images 1.7.6 it didnt work does any one know how to make it work this is what was happening when i was trying to get it to work



53
hi om6acw user already helping me on this one

54
Im still waiting on someone to help me out here :( please ... . i really need this mod im running 4 images 1.7.4

55
Hi i installed the report a picture mod and that mod is having problem http://www.4homepages.de/forum/index.php?topic=11447.msg131814#msg131814


and i want someone to install this mod for me

http://www.4homepages.de/forum/index.php?topic=23866.0


lemme know if someone can help


THANKS

56
when i fill the form and click "send the report" button than white page comes up bro i sent u a link of my site in your pm bro if u wanna see what i mean

57
i installed the mod now the form comes everything comes but when i try to report the image send the email it redirects to this link

http://www.mysite.com/report_pic.php?action=send_image_report  ( WITH A BLANK WHITE PAGE) anyone knows what could be the problem ??

58
bro on my orignal file setting.php the code is like this

Code: [Select]
MOD RECYCLE BIN FOR IMAGES
  END REPLACE
*/
  show_setting_row("user_edit_comments", "radio");
  show_setting_row("user_delete_comments", "radio");
  show_setting_row("account_activation", "show_account_activation_options");
  show_setting_row("activation_time");
  show_setting_row("session_timeout");
  show_setting_row("display_whosonline", "radio");
  show_setting_row("highlight_admin", "radio");

  /*
    MOD BAN
    START INSERT
  */
    show_table_separator($setting_group[7], 2, "#setting_group_7");
    show_setting_row("look_hostname", "radio");
  /*

So i put 8 on the X is that rite ?

59
Hi bro when i click setting nothin shows up

60
Im having problems installing this mod i will pay 20 USD Who ever can install this mod for me :D PM ME  :D if someone can install this mof for me im runing 4images 1.74

Pages: 1 2 3 [4] 5 6 7 8 ... 19