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 - e-trader_2002

Pages: [1] 2 3 4
1
Hi,

when searching the forum, I could not find any info about how to download the complete ZIP-files of older versions of 4images. Can anybody please tell me where I can find these files?
The download section seems to offer the most recent version of 4images only (at this time 1.7.11).
If the info is not hidden anywhere else in the forum and I was to stupid to find it, this might be a topic for the FAQ section of the forum.

Thanks in advance ...

2
Downloaded !  :D

Thanks a lot, Nicky

e-trader_2002

3
Hi,

the download link above doesn't work any longer. Can anybody please post the Lithuanian Language Files?

Thanks
e-trader_2002

4
Mods & Plugins (Releases & Support) / Re: [Mod] Mini-Top
« on: July 15, 2008, 11:16:21 PM »
Hi folks,

I've added this nice little mod a long time ago to my 4images website. Recently I realized, that the generation of the page with the minitop mod is considerably delayed by one of the mySQL-Queries of this mod. But a small change will speed-up the page generation again.

Find this mySQL-Query in minitop.php
Code: [Select]
$sql = "SELECT 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, i.image_postcards".$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 AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")".$selection_cutoff[$cnt]."
        ORDER BY i.image_".$selection[$cnt]." DESC, i.image_".$selection_alt[$cnt];

and change it by adding ."LIMIT 1" at the end of the query:
Code: [Select]
$sql = "SELECT 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, i.image_postcards".$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 AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")".$selection_cutoff[$cnt]."
        ORDER BY i.image_".$selection[$cnt]." DESC, i.image_".$selection_alt[$cnt]." LIMIT 1";

Maybe someone will find this little advice useful.

e-trader_2002

5
Hi there,

this is a great mod (after implementing the last changes described above by "thunderstrike").
It will save me tremendous amounts of time.
Thanks a lot!  :D

e-trader_2002

6
Language Packs / Re: [Language] Finnish for V1.7
« on: March 20, 2008, 09:53:44 AM »
That's what I was asking for. Thank you very much. I'll try to install the language pack over the Easter days.

7
Mods & Plugins (Releases & Support) / Re: [MOD] Sitemap v1.0
« on: October 16, 2006, 08:45:47 AM »
Hi sekoras,

the file is already attached to the first post of this thread (see the link at the bottom of the post just after Step 5):

Quote
* sitemap v1.0.zip (5.95 KB - downloaded 34 times.)
« Last Edit: September 17, 2006, 06:10:19 PM by V@no »

e-trader_2002

8
Mods & Plugins (Releases & Support) / Re: Signature image v2.22
« on: September 24, 2006, 08:17:44 AM »
Hi,

there is a way to dynamically display the 4images version of your site in signature.php. Dynamically means, you can do it without defining it as a constant in signature.php itself and it will change automatically if you upgrade your version of 4images. In order to use this, it may be necessary to increase the height of your signature#.png files in \signatures also. You may use a grafic editor of your choice to do this.

To do this insert the red code-fragtments into signature.php:

[qcode]
$lang_online = "Online: ";
$lang_comments = "Comments: ";
$lang_version = "4images Version: ";
// --------- End Config ----------
[/qcode]

[qcode]
$current_time = time();
if (!$time || (($current_time - $time) > $expire || ($current_time - $time) < 0) || $debug)
{
  $show = array();
  include(ROOT_PATH.'config.php');
  include(ROOT_PATH.'includes/constants.php');
  include(ROOT_PATH.'includes/db_mysql.php');
  define('MEDIA_PATH', ROOT_PATH.MEDIA_DIR);
  define('THUMB_PATH', ROOT_PATH.THUMB_DIR);
  define('MEDIA_TEMP_PATH', ROOT_PATH.MEDIA_TEMP_DIR);
  define('THUMB_TEMP_PATH', ROOT_PATH.THUMB_TEMP_DIR);
  define('TEMPLATE_PATH', ROOT_PATH.TEMPLATE_DIR."/".$template);
  define('ICON_PATH', ROOT_PATH.TEMPLATE_DIR."/".$template."/icons");
  include(ROOT_PATH.'includes/functions.php');
  $site_db = new Db($db_host, $db_user, $db_password, $db_name);
  $version = SCRIPT_VERSION;

// --- Random image -----
[/qcode]

[qcode]
  //array with data:
  //[0] - font type
  //[1] - offset
  //[2] - text
  //[3] - color (i.e. "text_color" will use $text_color variable)
  $stats = array(
                  array(array($fsize, $offset2+$tiny, $lang_images, "text_color"), array($fsize, $far, $show['total_images']." (".$show['total_new_images']." new)", "text_color")),
                  array(array($fsize, $offset2+$tiny, $lang_cat, "text_color"), array($fsize, $far, $show['total_categories'], "text_color")),
                  array(array($fsize, $offset2+$tiny, $lang_comments, "text_color"), array($fsize, $far, $show['comments'], "text_color")),
                  array(array($fsize, $offset2+$tiny, $lang_users, "text_color"), array($fsize, $far, $show['total_users'], "text_color"), array($fsize, $far+strlen($show['total_users'])*($fsize+4), " and ".$show['total_users_awaiting']." not activated", "text_color")),
                  array(array($fsize, $offset2+$tiny, $lang_online, "text_color"), array($fsize, $far, $total_online, "red"), array($fsize, $far+strlen($total_online)*($fsize+4), $online, "text_color")),
                  array(array($fsize, $offset2+$tiny, $lang_new_user, "text_color"), array($fsize, $far, $show['new_user'], "text_color")),
                  array(array($fsize, $offset2+$tiny, $lang_version, "text_color"), array($fsize, $far, $version, "text_color"))
  );
  if ($signature_template_random)
[/qcode]

You can see the result in my signature below.

e-trader_2002

9
Hi,

I'm using this clever and timesaving MOD quite often to move images among categories. It is ok if you can select the images via the provided search-fields.
But as a new frequent task I have to move a lot of images from different categories into a single target category. But the problem is that those images don't fit any simple, single search-condition.
I would like to gather all the images manually into the lightbox for transfer. So I needed three things as a little ADD-ON to this MOD:

==> Don't forget to backup every module before applying changes !!!

#1: A radio button saying "Process images in lightbox only".

To have this insert the red code-fragment into \admin\images.php

Quote
  show_input_row($lang['field_hits_upper'], "hitsupper", "", $textinput_size);
  show_input_row($lang['field_hits_lower'], "hitslower", "", $textinput_size);
#
#   [MOD] Process images in lightbox only <Start Part #1>
#
   show_radio_row($lang['lightbox_only'], "lightbox_only", $lightbox_only);
#
#   [MOD] Process images in lightbox only <END Part #1>
#
  show_table_separator($lang['sort_options'], 2);

#2: The code performing what the radio button promises:

To have this insert the red code-fragments also into \admin\images.php

Quote
  $limitnumber = (isset($HTTP_POST_VARS['limitnumber'])) ? trim($HTTP_POST_VARS['limitnumber']) : 1;
  if (!$limitnumber) {
    $limitnumber = 1;
  }
 
#
#   [MOD] Process images in lightbox only <Start Part #2>
#
  $lightbox_only = (isset($HTTP_POST_VARS['lightbox_only'])) ? trim($HTTP_POST_VARS['lightbox_only']) : 0;
  if (!$lightbox_only) {
    $lightbox_only = 0;
  }
#
#   [MOD] Process images in lightbox only <End Part #2>
#

  if (isset($HTTP_GET_VARS['direction']) || isset($HTTP_POST_VARS['direction'])) {
    $direction = (isset($HTTP_GET_VARS['direction'])) ? trim($HTTP_GET_VARS['direction']) : trim($HTTP_POST_VARS['direction']);
  }
  else {
    $direction = "ASC";
  }

Quote
  if ($nextpage && !$nextpageabort) {
    $limitstart = $limitstart + $limitnumber;
  }
#
#   [MOD] Process images in lightbox only <Start Part #3>
#
     if ($lightbox_only == 1)
     {
         if (!empty($user_info['lightbox_image_ids']))  {
           $image_id_sql = str_replace(" ", ", ", trim($user_info['lightbox_image_ids']));
         } else {
           $image_id_sql = "0";
         }
        $sql = "SELECT COUNT(*) AS images
                FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
                LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id) 
                WHERE image_active = 1 AND image_id IN ($image_id_sql) AND c.cat_id = i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN").")";
        $countimages = $site_db->query_firstrow($sql);
     } else {

        $sql = "SELECT COUNT(*) AS images
                FROM ".IMAGES_TABLE." i
                LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
                WHERE $condition";
        $countimages = $site_db->query_firstrow($sql);
     }
#
#   [MOD] Process images in lightbox only <End Part #3>
#

  $limitfinish = $limitstart + $limitnumber;

Quote
    echo "<td class=\"tableseparator\">".$lang['field_category']."</td>\n<td class=\"tableseparator\">".$lang['field_username']."</td>\n<td class=\"tableseparator\">".$lang['field_date']."</td>\n<td class=\"tableseparator\">".$lang['options']."</td>\n</tr>\n";

#
#   [MOD] Process images in lightbox only <Start Part #4>
#
     if ($lightbox_only == 1)
     {
         if (!empty($user_info['lightbox_image_ids']))  {
           $image_id_sql = str_replace(" ", ", ", trim($user_info['lightbox_image_ids']));
         } else {
           $image_id_sql = "0";
         }
       $sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_active, i.image_name, i.image_media_file, i.image_thumb_file, i.image_date, i.image_description, i.image_keywords".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 image_active = 1 AND image_id IN ($image_id_sql) AND c.cat_id = i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN").")
                ORDER BY $orderby $direction
                LIMIT ".(($limitstart) ? $limitstart-1 : 0).", $limitnumber";
        $result = $site_db->query($sql);
     }
     else
     {

       $sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_media_file, i.image_thumb_file, i.image_date, i.image_description, i.image_keywords".get_user_table_field(", u.", "user_name")."
               FROM ".IMAGES_TABLE." i
               LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
               WHERE $condition
               ORDER BY $orderby $direction
               LIMIT ".(($limitstart) ? $limitstart-1 : 0).", $limitnumber";
       $result = $site_db->query($sql);
     }
#
#   [MOD] Process images in lightbox only <END Part #4>
#

    $i = 0;
    while ($image_row = $site_db->fetch_array($result)) {


Quote
    show_hidden_input("hitsupper", $hitsupper);
    show_hidden_input("hitslower", $hitslower);
#
#   [MOD] Process images in lightbox only <Start Part #5>
#
    show_hidden_input("lightbox_only", $lightbox_only);
#
#   [MOD] Process images in lightbox only <End Part #5>
#

    show_hidden_input("orderby", $orderby, 1);

#3: The text displayed by the radio button:

To have this insert  the red code-fragment into \lang\deutsch\admin.php ...

Quote
$lang['field_hits_upper'] = "Anzahl Hits größer als";
$lang['field_hits_lower'] = "Anzahl Hits kleiner als";
$lang['lightbox_only'] = "Nur Bilder aus Leuchtkasten bearbeiten";

//-----------------------------------------------------
//--- Navigation --------------------------------------
//-----------------------------------------------------

... and into \lang\english\admin.php ...

Quote
$lang['field_hits_upper'] = "Hits higher than";
$lang['field_hits_lower'] = "Hits lower than";
$lang['lightbox_only'] = "Process images in lightbox only";

//-----------------------------------------------------
//--- Navigation --------------------------------------
//-----------------------------------------------------

That's all folks. I hope my ADD-ON will be usefull to somebody.

e-trader_2002

10
Problem soved. :D Thanks a lot :!:

e-trader_2002

11
Hi,

I'm using V@no's [MOD] Batch Copy/Move/Edit Images v3.7.3 http://www.4homepages.de/forum/index.php?topic=6759.msg29585#msg29585 to move images from one categorie to another. As long as my website was on my notebook (Windows XP, localhost) everything was ok. But after uploading the site to my providers host, I got error-messages on the first move:

Quote
Warning: copy(./../data/media/16/00615_2.jpg) [function.copy]: failed to open stream: Permission denied in /www/htdocs/w007638b/4images/admin/images.php on line 236

Warning: copy(./../data/thumbnails/16/00615.jpg) [function.copy]: failed to open stream: Permission denied in /www/htdocs/w007638b/4images/admin/images.php on line 330

The following errors occurred:
    * Copy error. Please check the directory permissions.
00615 (in category ID:_8)

Something is clearly wrong with my directory and/or file permissions on the server despite the fact I set them to the values given in the 4images installation description. You can see the actual permissions in the attached pictures below. I'm not familiar with access permissions on Linux-Systems. So can anybody please tell me to which permission-settings I will have to change.

Thanks in advance

e-trader_2002

12
Mods & Plugins (Releases & Support) / Re: Signature image v2.22
« on: September 20, 2006, 09:21:04 AM »
Hi V@no,

thank you, as you can see it's working now. :D And all necessary information was indeed provided by the link you gave. But maybe after a long day at the office I was to tired to see it.  :roll:

e-trader_2002

13
Mods & Plugins (Releases & Support) / Re: Signature image v2.22
« on: September 19, 2006, 07:49:24 PM »
Hi V@no,

off course I noticed that there is something like BBCode available in this forum and I gave it a few tries before posting my request for assistance. But still being a newbie I'm not familiar with that stuff. So even the link in your last post doesn't give me enough information to do the trick completely; only the grafic is displayed now but the link is still a separate text.
My signature now looks like this:

Code: [Select]
A hobby is a great way to spent time you actually don't have! :wink:
[URL]http://www.fruitsticker.de/4images/signature/tmp/signature.php?go=1]
[img]http://www.fruitsticker.de/4images/signature.php[/img][/URL]

I can't think of anything else to do about it and I wouldn't feel really offended, if you could post the full BBCode to displayed the complete grafic-link. :wink:

Thanks in advance

e-trader_2002

14
Hi,

what's wrong with with my signature in this forum?
URL- and image-link are working but instead of the image itself the HTML-Code is displayed. You can see the result below.

Please give me a hint.

Thanks

e-trader_2002

15
Mods & Plugins (Releases & Support) / Re: [MOD] Sitemap v1.0
« on: September 18, 2006, 09:15:07 AM »
Hi V@no,

sorry, you are right. :oops: I just didn't look so far down because there is the link at the top.
 :lol: But - as always - the on one who can see has a clear advantage.  :lol:

Thanks

e-trader_2002

Pages: [1] 2 3 4