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 - fabulous

Pages: [1]
1
Installation, Update & Configuration / Upload Größe
« on: March 31, 2003, 12:40:07 PM »
mhh .. dann musste halt einfach alle 2 tage oder so mal guggn und über das admin panel einfach alle bilder auf z.B. 500 px maximale seitenlänge verkleinern.
mehr weiss ich ned ;)
greetings
ps: vielleicht findeste ja irgendwas beim suchen im forum ..

3
Installation, Update & Configuration / Thumnail Qualität
« on: March 28, 2003, 07:07:36 PM »
benutz mal die suche .. das wurde schon seeeeeehr oft besprochen

hier zum bleistift ..
http://www.4homepages.de/forum/viewtopic.php?t=2519
oder such nach "thumb und quality"

ev. liegts auch an der qualitätseinstellung im admin panel/Einstellungen/Upload Einstellungen:
Bild-Qualität des erstellten Thumbnails
von 0 bis 100
sonst gd2 oder imagemagik benützen

4
Discussion & Troubleshooting / 2 different thumb sizes
« on: March 27, 2003, 10:31:42 AM »
cool, now it works :) thx a lot for that.
the only problem i have now, is, that i still get the error for my media file, where no thumb is present.  i can remember that there was a solution in the top list mod thread V@no mentioned .. should i apply that one ?

5
Discussion & Troubleshooting / 2 different thumb sizes
« on: March 27, 2003, 02:43:28 AM »
yeah, i changed my toplist whith the tutorial u mentioned. ;)

i changed the code as you said, but now the following error happens:
Code: [Select]
Warning: Division by zero in /home/kunden/u10211/odd-fish.de/fotos/top.php on line 196

Warning: Division by zero in /home/kunden/u10211/odd-fish.de/fotos/top.php on line 201

when i changed the code bevor i got exactly the same error.
if i look into top.php there is is line 196:
Code: [Select]
 $ratio = $width / $height;and in line 201:
Code: [Select]
$new_width = floor(($dimension/$height) * $width);
so i think the 4images does not know what thumb to take and read the dimensions, especially $height.. any idea ?
you can see the problem here: http://www.foto-fish.de/top.php

6
Discussion & Troubleshooting / 2 different thumb sizes
« on: March 27, 2003, 01:19:00 AM »
Hi there,
i love 4imgages and i love especially love this forum and V@no :roll: :D

i just read http://www.4homepages.de/forum/viewtopic.php?t=4060 and i love it. i applied it to my start page and it works perfect.

now, I would also like to mod the size of a few thumbs my top gallery and the small random thumb in gallery listing. all in all i need 3 different thumbnail sizes on my page, ratio should allways be used (so if it is horizontal i do not want to a 200*200 thumb but a 200*100 e.g).

    first i need my regular 200*200 thumb (maximum), this one is used when i'm in a category, on the start page and as random pic.
    second, i need a 100*100 max thumb, which should be used in the top gallery, showing the top 50 fotos by hits and also on the start page next to the last commented fotos. this part is already working.
    third, i would need a 50*50 max thumb, this one i would like to use also on the start page instead of the 50*37 fix size thumb in category listing in the top part of the start page.[/list:u]

    now my problem: i tried to modify the code V@no gave in the already mentioned thread. i tried to modify my top.php where the important code looks as follows:
Code: [Select]
// Hits
$sql = "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_hits, c.cat_name".get_user_table_field(", u.", "user_name").", i.image_thumb_file
        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 i.cat_id NOT IN ($cat_id_sql) AND i.cat_id = c.cat_id
        $cat_match_sql
        ORDER BY i.image_hits DESC, i.image_name ASC
        LIMIT 50";
$result = $site_db->query($sql);
$top_list = array();
$i = 1;
while ($row = $site_db->fetch_array($result)) {
  $top_list[$i] = $row;
  $i++;
}
$site_db->free_result();

for ($i = 1; $i <= 50; $i++) {
  if (isset($top_list[$i])) {
    $register_array['image_hits_'.$i] = (check_permission("auth_viewimage", $top_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\">".htmlspecialchars($top_list[$i]['image_name'])."</a>" : htmlspecialchars($top_list[$i]['image_name']);
    $register_array['image_hits_openwindow_'.$i] = (check_permission("auth_viewimage", $top_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".htmlspecialchars($top_list[$i]['image_name'])."</a>" : htmlspecialchars($top_list[$i]['image_name']);
    if (isset($top_list[$i][$user_table_fields['user_name']]) && $top_list[$i]['user_id'] != GUEST) {
      $user_profile_link = (!empty($url_show_profile)) ? preg_replace("/{user_id}/", $top_list[$i]['user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$top_list[$i]['user_id'];
      $register_array['image_hits_user_'.$i] = "<a href=\"".$site_sess->url($user_profile_link)."\">".htmlspecialchars($top_list[$i][$user_table_fields['user_name']])."</a>";
    }
    else {
      $register_array['image_hits_user_'.$i] = $lang['userlevel_guest'];
    }
    $register_array['image_hits_cat_'.$i] = "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$top_list[$i]['cat_id'])."\">".htmlspecialchars($top_list[$i]['cat_name'])."</a>";
    $register_array['image_hits_number_'.$i] = "<b>".$top_list[$i]['image_hits']."</b>";
    $register_array['image_hits_thumb_'.$i] = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\"><img src=\"data/thumbnails/".$top_list[$i]['cat_id']."/".$top_list[$i]['image_thumb_file']."\" border=\"0\" alt=\"\" />";
  }
  else {
    $register_array['image_hits_'.$i] = "--";
    $register_array['image_hits_user_'.$i] = "--";
    $register_array['image_hits_cat_'.$i] = "--";
    $register_array['image_hits_number_'.$i] = "--";
    $register_array['image_hits_thumb_'.$i] = "--";
  }
}

i tried to add something like this:
Code: [Select]
if (!get_file_path($image_row['image_thumb_file'], "thumb", $image_row['cat_id'], 0, 0)) {
        $thumb_file = ICON_PATH."/".get_file_extension($image_row['image_media_file']).".gif";
      }else {
        $thumb_file = get_file_path($image_row['image_thumb_file'], "thumb", $image_row['cat_id'], 0, 1);
      }
      $thumb_info = @getimagesize($thumb_file);
      $width = $thumb_info[0];
      $height = $thumb_info[1];
      $dimension = 100;
      $ratio = $width / $height;
      if ($ratio > 1) {
        $new_width = $dimension;
        $new_height = floor(($dimension/$width) * $height);
      }else {
        $new_width = floor(($dimension/$height) * $width);
        $new_height = $dimension;
      }
      $site_template->register_vars(array(
        "comment_image_thumb" => (!check_permission("auth_viewcat", $cat_id) || !check_permission("auth_viewimage", $cat_id)) ? "<img src=\"".$thumb_file."\" width=\"".$new_width."\" height=\"".$new_height."\" onClick=\"alert('".$lang['members_only']."');\" border=\"".$config['image_border']."\">" : "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$comment_row[$i]['image_id'].((!empty($mode)) ? "&amp;mode=".$mode : ""))."\"><img src=\"".$thumb_file."\" width=\"".$new_width."\" height=\"".$new_height."\" border=\"".$config['image_border']."\"></a>",

i tried a bit, but i do not understand php, so i do not know what part i have to change. i would apreciate a lot if someone has a look on this issue :)
you can see the already working thums on http://www.foto-fish.de
only to be clear: the most important for me is to scale the thumbs in top.php to about half the size (100 pixel maximum height/width) instead of the now used 200 pixel size. thx in advance.

fab

8
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: February 28, 2003, 09:44:37 AM »
works perfect now, thx a lot V@no !!!   :D  :D

9
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: February 27, 2003, 08:27:55 PM »
hi.

the script v@no posted was exactly was i was trying to find in this board here. i would like to get a random foto, but not out of the whole gallery but only the new ones. so i thought v@nos code was right but when i uploaded that php page and started it in my browser, the only source code it created was:
Code: [Select]
<html><body></body></html>
i changed the 4images path to the same i used in the original random php script.
still the same error.
see it here on this page:
http://www.odd-fish.de/randomnew.php

original random script:
http://www.odd-fish.de/random.php

anyone an idea ?

cheers, fab

10
i would also be interested, i just wanted to ask that question myself ;)

11
Mods & Plugins (Releases & Support) / [Mod] Notify sender on received eCard
« on: February 17, 2003, 04:21:21 PM »
i just did it, works perfectly, thanks V@no :D

12
Mods & Plugins (Requests & Discussions) / Bestätigungsemail Ecard
« on: February 17, 2003, 02:19:29 PM »
is doch der hack hier, oder ?

http://www.4homepages.de/forum/viewtopic.php?t=4167

greetz fabulous

nachtrag:

hab ihn gerade installiert und er funzt hervoragend !!

13
Installation, Update & Configuration / perfect
« on: February 13, 2003, 02:02:17 PM »
that was exactly what i was trying to find, thx a lot !!!

14
hi forum,

first i would like to say that i really like 4images and think it is a wonderfull piece of program. thanks jan!

now my problem. my gallery is used mainly by myself. but i would like to make friends gallerys, where friends of mine can upload pictures taken by them. so i would like to add a category where only one member can upload pics. (so member litschie can only upload in category "litschie", member bass can only upload in category "bass", and so on)
as far as i understand that should be possible with usergroups, but in "befugnisse" of the newly added group "litschiegroup" where "litschie" is a member of, i cannot change anything.

any ideas ?

cheers, fab :D

www.odd-fish.de/fotos

Pages: [1]