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.


Topics - Lesik

Pages: [1]
1
+  (счетчик комментариев не обновлялся если его засунуть в thumbnail_bit.html)

тогда в файле detail.php

найти кусок кода:
Code: [Select]
     redirect(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&mode=".$mode : "").(($page > 1) ? "&page=".$page : ""));
      update_comment_count($id, $user_info['user_id']);
      $msg = $lang['comment_success'];

и заменить на:
Code: [Select]
     update_comment_count($id, $user_info['user_id']);
      $msg = $lang['comment_success'];
      redirect(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&mode=".$mode : "").(($page > 1) ? "&page=".$page : ""));

2
Hello. At me a question how to allocate from EXIF only model of the camera? And to deduce it in details.html

3
 :D  The Truman Show  :D

change in file user_logininfo.html

Code: [Select]
<table width="100%" border="0" cellpadding="4" cellspacing="0">
  <tr>
    <td valign="top" align="left">
    <script language=JavaScript>
        var h=(new Date()).getHours();
        if (h > 23 || h < 7) document.write("Good night");
        if (h > 6 && h < 12) document.write("Good morning");
        if (h > 11 && h < 19) document.write("Good afternoon");
        if (h > 18 && h < 24) document. write("Good evening");
      </script>
  {lang_loggedin_msg}<br /><br />
      &raquo; <a href="{url_lightbox}">{lang_lightbox}</a><br />
  &raquo; <a href="{url_control_panel}">{lang_control_panel}</a><br />
      &raquo; <a href="{url_logout}">{lang_logout}</a></td>
  </tr>
</table>



4
Discussion & Troubleshooting / Image size ???
« on: April 23, 2007, 08:26:42 AM »
Hi.

Help please.
What show size of the file in resize.php in line $imgs .= "<td>".$image_info[0]."x".$image_info[1]." - SIZE IMAGE"</td>";

That to see following, example: 1200х900 - 300Kb

Excuse me for bad knowledge of english.

5
Discussion & Troubleshooting / Read Error
« on: April 05, 2006, 10:46:15 AM »
HELP ME

Warning: getimagesize(): Read error! in admin/resizer.php on line 180

6
Mods & Plugins (Requests & Discussions) / Messages for Admin
« on: November 04, 2005, 08:09:10 AM »
To excuse me for bad English language.
I bring to your attention updating which can more one is required if managers. Updating allows to leave brief messages for other managers in the administrative panel.

Keep all data and make a backup copy 4 images

Brought changes:
admin\home.php
lang\english\admin.php
new file messages.txt

1. Find in a file lang\english\admin.php
Code: [Select]
$lang ['headline_stats'] = " Statistika ";
Also insert after this line
Quote
$lang ['headline_mesag'] = " Messages for admin ";


2. In a file admin\home.php
Find:
Quote
---------------------------------------------------------------------
      $total_images + = $val ['num_images'];
   }
}
---------------------------------------------------------------------
Also insert after last} the following text:

Code: [Select]
// messages for admin's *********************************************************
  printf (" <span class = \ " headline \ "> % s </span> <br/> <br/> ", $lang ['headline_mesag']);

   show_table_header ($lang ['headline_mesag'], 4);

    echo " <table class = \ "".get_row_bg (). " \ " border=0 width=100 %> ";
    echo " <tr class = \ "".get_row_bg (). " \ "> \n ";
    echo " <td> \n ";
    $file=file ("messages.txt");
    while (list ($index, $val) = each ($file)) {
    echo " <font color = \ " * CC3300 \ " size = \ " 2 \ "> <b> ";
    echo (" $val <BR> ");
    echo " </b> </font> ";
    $num = $index;
}
    if (isset ($ _POST ['ok']) ** isset ($ _POST ['id'])) {
    $key = $ _POST ['id'];
    if (! is_numeric ($key)) exit ();
    $key-;
    $file [$key] = $ _POST ['ok.'] " \n ";
    if ($fp = fopen ("messages.txt", "w")) {
    fwrite ($fp, implode (" ", $file));
    fclose ($fp);
    echo " <html> <head> ";
    echo " <META HTTP-EQUIV ='Refresh ' CONTENT = ' 0; URL = ". $ _ SERVER ['PHP_SELF']. " '> ";
    echo " </head> </html> ";
}
}
    echo " <center> \n ";
    echo " <form action=home.php method=post>
    <input type ='text ' size=100 name=ok> <BR>
    <input type ='hidden ' name=id value = ". $ num. ">
    <input type ='submit ' value ='send messages'>
    <input TYPE ='button ' VALUE ='refresh ' ONCLICK ='ReloadButton () '>
     <script>
     function ReloadButton ()
     {
     location.href ='home.php ';
}
     </script>
     </form> ";
   echo " </center> \n ";
   echo " </td> \n ";
   echo " </tr> \n ";
   echo " </table> \n ";
   show_table_footer ();
// messages for admin's *********************************************************

Create a new file in a folder admin - message.txt

7
Mods & Plugins (Requests & Discussions) / Archives of the photos
« on: September 10, 2005, 02:45:17 PM »
We need a MOD an archives of the photos, that takes out the photos by the date of their entrance on the separate pages.
look: http://klick.kl.funpic.de/detail_list.php?sessionid=f805e6ec62f000b2ec49043107c0f1ac

mne nuzhen MOD kotoryi pokazhet vse foto na otdelnoi stranice po date ih postupleniy
-------------------------------------------------------------------------------------------------------------------------
. .  :evil:  ( )
.
, .

1. SEARCH.PHP ALL_IMAGES.PHP

2. :

  if (!empty($search_id['search_new_images']) && $search_id['search_new_images'] == 1) {
$new_cutoff = time() - 60 * 60 * 24 * $config['new_cutoff'];
$sql_where_query .= "AND i.image_date >= $new_cutoff ";
}

:

// if (!empty($search_id['search_new_images']) && $search_id['search_new_images'] == 1) {
// $new_cutoff = time() - 60 * 60 * 24 * $config['new_cutoff'];
$sql_where_query .= "AND i.image_date >= 0";
// }

3. all_images.php search.php all_images.php

4. includes/page_header.php
:

"url_all_images" => $site_sess->url(ROOT_PATH."all_images.php?search_new_images=1"),



"lang_all_images" => $lang['all_images'],

. all_images.php :

$sql = "SELECT DISTINCT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.", "user_name")."
FROM ".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c
LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
WHERE i.image_active = 1
$sql_where_query
AND c.cat_id = i.cat_id AND i.cat_id IN ($cat_id_sql)
ORDER BY ".$config['image_order']." ".$config['image_sort']."
LIMIT $offset, $perpage";
$result = $site_db->query($sql);

:

$sql = "SELECT DISTINCT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.", "user_name")."
FROM ".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c
LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
WHERE i.image_active = 1
$sql_where_query
AND c.cat_id = i.cat_id AND i.cat_id IN ($cat_id_sql)
ORDER BY i.image_date desc
LIMIT $offset, $perpage";
$result = $site_db->query($sql);

5. home.html

<a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;
<a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp;

:

<a href="{url_all_images}"><b>{lang_all_images}</b></a>&nbsp;&nbsp;

6. lang/...../main.php

$lang['all_images'] = " ";


.
Detlev ( ), , .

Lesik

Pages: [1]
Post your comments here