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

Pages: [1]
1
Mods & Plugins (Releases & Support) / Re: some optitions...
« on: May 08, 2003, 05:10:12 PM »
Quote from: Sheep707
(I'm just beginner in PHP)


me too  :)

think its possible with a if - elseif circle but i ´ve no need! perhaps i´ll try it if i have more time! *sorry*

I´ve made a second installation and work with "try & error"  :D

btw.

the image size in the detail page i found in /includes/functions.php beginning in line 238
search for
Code: [Select]
$file_size = "n/a";
  if (!is_remote($image_row['image_media_file'])) {
    if ($file_size = @filesize(MEDIA_PATH."/".$image_row['cat_id']."/".$image_row['image_media_file'])) {
      $file_size = format_file_size($file_size);
    }
  }


replace with
Code: [Select]
$file_size = "n/a";
  if (!is_remote($image_row['image_media_file'])) {
    if ($file_size = @filesize(ROOT_PATH."/data/download/".$image_row['cat_id']."/".$image_row['image_media_file'])) {
      $file_size = format_file_size($file_size);
    }
  }


works fine until now - "Auto image resize" isn´t hurt so far I´ve testet it - seems it works fine in the standard /media directory!

so long
Kollega

2
I think I did it:

look for
Code: [Select]
$file_path = MEDIA_PATH."/".$image_row['cat_id']."/".$image_row['image_media_file'];

and replace it with
Code: [Select]
$file_path = ROOT_PATH."/data/download/".$image_row['cat_id']."/".$image_row['image_media_file'];

only 2 changes! - seems it works!  :D

now I only have to change the image_file_size printout in the details? - any tips where to do so?
b.t.w. if anyone is wondering: the user uploads will go into the normal media directory - after midnight a rsync cronjob will creata a exclude list from the "download" directory and copy the new files into the download directory - after that image magick starts a cronjob resizing the media pictures!

3
little bit confused now: reading code for about 2 hours - u said I should search for $file_path and so on

Code: [Select]
$file_path = MEDIA_PATH."/".$image_row['cat_id']."/".$image_row['image_media_file'];

now I´m confused with the MEDIA_PATH? is media_path a global declaration? should I change this one? - or should I creat a DOWNLOAD_PATH?

4
o.k. - new way!

some different download options are too much work so i want to go a little bit different way.

in want to create a folder in /4images/data/download and let a cronjob make a mirror for new files and directories (first run all new!) - the download folder holds the maximum Quality of my pic´s.

the images in the "normal" /media directory will be resized with "Auto Image Resizer" to a low resolution!

now my question (because my php knowledge is very poor and I don´t want to make great mistakes):

is there a easy way to change the download path for all images to /4images/download/...

thx
Kollega

5
Discussion & Troubleshooting / PDF Dateien
« on: December 13, 2002, 09:52:38 AM »
hiho,

hab ne kleine Frage. ist es möglich eingebundene PDF Dateien nicht nur als Icon anzuzeigen, sondern diese auch in der Detailansicht anzuzeigen?? Muss ich eine zusätzliche Libary einspielen? wenn ja welche?? oder is des Prinzipiell nich möglich? weil wenn pdf unterstützt wird (was des Teil ja aber macht) könnts schon gehen! - hab die pdf.html schon editiert, aber des bringt mich nich weiter!??

für nen kurzen Tip wär ich dankbar!!

cya

6
@Fox Mulder

only my first post needs to be done in php
the second suggestion is already possible in V1.7 - go in admin menue - check for new images - take all images to "add images" and mark the option "deaktivate"  for the *_75.jpg ore *_150.jpg! the images will be added to ur database but will not be shown - not ur users and not you if u ckeck again in this categorie for new images!

but an exclusion in php would be the better way i think - cause u will go into trouble with the "auto image resizer"! great trouble!
have fun! 8O

7
o.k. I see! but if u add only one new image in this categorie u are going to get the whole list for "new" images - including the _150.jpg

an easier way is to check images and then deaktivate them before adding to database! so the db have all images listed but only the low resolution is shown for the users! - isn´t it?  :?:

8
ok - all things discussed in these topic done and running - but

when i "check new images" in the admin menue - i´m going to find all new added 'picture_150.jpg'

is it possible to exclude all images ending with *_150.jpg in /admin/checkimages.php - so my pictures are only with "normal" names checked & listed in the Database?

att all - great script! take care

9
Mods & Plugins (Requests & Discussions) / Benutzerabhängige Downloads
« on: October 09, 2002, 06:53:35 PM »
hiho,

hab mir grad nen abgetippt, und der post is nich gegangen! (router war zu schnell offline *g*)

Frage:
kann ich Benutzerabhängig Downloads freigeben (also nich bei der Kategorie). z.B. soll der Benutzer nur seine selbst hochgeladenen Bilder ziehen können, aber für "fremde" Bilder demjenigen eine Mail schicken, der im reply die gewünschte Datei anhängt, oder sogar irgendwie freigibt.

geht dass?
ich versuch gern dass umzusetzen (auch wenn ich wirklich nich gut PHP kann, aber Übung und Meister und soo!) - naja! hätt nur gern vorher ne Einschätzung der Coder, ob des mit nem realisierbaren Aufwand zu bewerkstelligen ist.

Danke schonmal!
ach ja - ich hab des Topic mit den 3 verschiedenen Downloads (dpi) schon gelesen, aber ...?  :roll:
und @Jan & Nicky *extrarääspääkktcredit* - cooles Teil!

Pages: [1]