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

Pages: [1] 2
1
I found a little workaround - I look for the highest ID which is normally the newest category and give out only pictures from this category.

to do this, you have to add this little code (be sure to change the prefix if necessary!):

Code: [Select]
$sql_maxcat ="SELECT max(cat_id) as maxcat FROM 4images_categories";
$result2 = $DB->query($sql_maxcat);
$row2 = $DB->fetch_row($result2);
$maxcat = $row2['maxcat'];


then find
Code: [Select]
SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments, b.cat_name
        FROM 4images_images a, 4images_categories b
        WHERE a.image_active=1
        AND a.cat_id = b.cat_id
        AND b.auth_viewcat=0
        AND b.auth_viewimage=0
        LIMIT $number, 1

and replace it with:
Code: [Select]
SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments, b.cat_name
        FROM 4images_images a, 4images_categories b
        WHERE a.image_active=1
        AND a.cat_id = b.cat_id
AND b.cat_id = $maxcat
        AND b.auth_viewcat=0
        AND b.auth_viewimage=0
        LIMIT $number, 1

2
I did not mean on the 4images-startpage but on an external php-page :)

3
Mods & Plugins (Releases & Support) / [Mod] Randomizing {new_images}
« on: June 18, 2003, 04:06:26 PM »
oops & thx! :D

4
hi again!

i did some tests to find out what the problem could be  - imagemagick is working fine when resizing pictures and even when I use the demo-png there is no change in the pictures, even though there are no error-messages!

please help! :(

thx&gree,
NeoNuss
P.S.: Is there anybody using *nix server without GD2 but with ImageMagick who got this mod working (not with text, only a png-file)??

5
Mods & Plugins (Releases & Support) / standard path of ImageMagick
« on: June 16, 2003, 04:15:16 PM »
edit: path-problem solved
new problem: ;)
I use ImageMagick and the skript works fine, the batchprocess runs and there are no error messages. I include a small logo as .png-file in the lower right corner of the image - but nothing happens! there is no logo! is there maybe a problem with the png-file?? i exported it with photoshop 7...

thx&gree,
NeoNuss

6
Mods & Plugins (Releases & Support) / [Mod] Randomizing {new_images}
« on: June 13, 2003, 07:53:09 PM »
I have mysql-version 3.23.14 and i get the following error on my index.php:

Code: [Select]
DB Error: Bad SQL Query: 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, c.cat_name, u.name FROM cb_gallery_images i, cb_gallery_categories c LEFT JOIN cb_ivb_members u ON (u.id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 12, 13, 14, 3, 10, 4, 15, 1, 5, 11, 7, 9, 8) // ORDER BY i.image_date DESC AND i.image_date >= 1054663003 ORDER BY RAND() ORDER BY RAND() LIMIT 3
You have an error in your SQL syntax near '/ ORDER BY i.image_date DESC AND i.image_date >= 1054663003 ORDER BY RA' at line 5

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/www/htdocs/ivb/gallery/includes/db_mysql.php on line 116


help! :)

7
*lol* oooops...what can i say? damn :D

8
okok, i think i found it - it´s on your page :) sorry...

9
is it possible to kind of "batch-adding-keywords-and-descriptions" to all images in a specified category? i have a partygallery and in each category 50-200 pictures and I'd like to enable a usefull search.
btw: you can't use keywords for categorys and search them, can u?

thx&gree,
NeoNuss

10
where? :)

11
hi!

it would be great if I could upload my original high-quality pics into a special folder via ftp and 4images generates the "normal view" and thumbnails automatically. the originalfiles should be downloadable via the "download"-link under each picture.

and it woul dbe nearly PERFECT, if the zip-file out of the favorites would contain the original files. :D

I hope someone can help me...

thx&gree,
NeoNuss

12
Hi!

I'd like to add the title of the newest category on my startpage. ok, the category has no timestamp - but I could search for the newest pciture and look in which category this picture is. can someone please help me with the correct sql/php syntax??

greets,
NeoNuss

13
hi! i'd like to view random-pics out of the three newest categorys on my startpage. how is this possible??

thx&gree,
NeoNuss

14
hallo!

wie kann ich die suche erweitern, sodass auch in den kategorienamen gesucht wird? Das Ergebnis müsste dann ja auch Kategorien und keine einzelnen Bilder auflisten. Ich hab in meiner (Party-)Galerie über 80 Kategorien und möchte den usern ermöglichen, nach bestimmten events / locations zu suchen, die ja im Kategorie-Titel genannt werden.

Hat jemand ne idee??

Gruß,
NeoNuss

--------------------------------------------------------

hi!

how can i modify the searc-function in order to search in category-names, too? the result would have to list categorys and no single pictures. I have a (party-)gallery with over 80 categorys and I´d like to offer my users the possibility to search for certain events / locations , which are mentioned in the category-titles.

Any ideas??

regards,
NeoNut ;)

15
hier gibts das schon mit 4images:
http://www.djznetwork.de

gibts da inzwischen schon ne art mod für?

Pages: [1] 2