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

Pages: [1]
1
Hi there!

I want to change the {num_images} to show the total number of images in a category - even when a category is marked as "for registered" only. I am using an old version of 1.7.6.

Can anyone give me a hint?

2
How to check if user is logged in or not? I need tocheck it, to add some features, but I don;t know how...

3
Discussion & Troubleshooting / Website integration
« on: January 09, 2007, 09:44:09 PM »
Greets!

I am trying to intergate my website with 4images.

How can I know about user perrmisions? I would like to give only registered and logged in users acces to few external webpages (php files), so I need to add a code to each file, for example:

if(logged_in=TRUE)
{
"acces granted"
}
else
{
"bye bye"
}
You know what I mean...

How can I do this?

4
Hi!

I would like to add some php code to template. I have some wallpapers in one of the categories, and these are 800 x 600. My template isn't dynamic, and all tables are going crazy and are to wide, in this category. In other categories all photos were autochanged, so they match.

And, in that one categorie I would like to change template, I don't know, maybe by some php code? In wallpaper category print {thumbnail} (they don't have to watch, they will download it), and {image} in others.

Something like that

if category is XX
{
print {thumbnail}
}
else
{
print {image}
}

I can use http get vars, but not in the details page, what should I do to knwo in whick category the user is?

Maybe it is a way to add category_id or cat_name tag to deatils, so I would run my php code to check the categoru and print the right thing? Please help!

5
Discussion & Troubleshooting / Thumbnails problem - Bad quality
« on: March 06, 2003, 01:57:10 PM »
When I create thumbnails with 4I they are bad quality. I had 4I on my old server with GD 1.6 and everything worked perfect, now i have moved everything to server eith gd 2.0.1... I changed quality to "100" with no efect... I have thesame problems with my news sytem wich works with imagecreatejpeg... What can I do?

PHP Listing: http://bonjovi.pl/info.php
Gallery: http://bonjovi.pl/galeria
Take a look on the thumbnail of foto No121...
Or just take a look here: This foto in foirmal size was perfect, and now it is with a fog, or something ;)


---
Kiedy robie miniatury 4I sa one fatalnej jakosci, gdy mialem system na serwie z gd 1.6 wszystko bylo OK, a gdy przenioslem na 2.0.1 jakosc jest fatalna... Zmienialem jakosc na 100 ale to nic nie dalo... mam podobny problem z systemem newsow, ktory korzysta z funkcji imagecreatejpeg... Co moge zrobic?

PHP Listing: http://bonjovi.pl/info.php
Galeria: http://bonjovi.pl/galeria
Looknijcie na miniature do zdjecia nr 121...
Albo na miniature wyzej... Oryginal byl idealny a to cholerstwo wyglada jak za mgla...[/img]

6
Discussion & Troubleshooting / Problem
« on: October 13, 2002, 12:38:55 PM »
Hey. I've got 4images and everything worked perfect, and now, i don't know how etc, everything is down... Something with DB... Here's the errod message:

Quote
DB Error: Bad SQL Query: SELECT cat_id, COUNT(*) AS num_images FROM 4images_images WHERE image_active = 1 GROUP BY cat_id
Got error 127 from table handler

DB Error: Bad SQL Query: SELECT cat_id, COUNT(*) AS new_images FROM 4images_images WHERE image_date >= 1033640953 AND image_active = 1 GROUP BY cat_id
Got error 127 from table handler

Warning: Cannot add header information - headers already sent by (output started at /public/bonjovi/bonjovi.gery.pl/galeria/includes/db_mysql.php:185) in /public/bonjovi/bonjovi.gery.pl/galeria/includes/sessions.php on line 52

Warning: Cannot add header information - headers already sent by (output started at /public/bonjovi/bonjovi.gery.pl/galeria/includes/db_mysql.php:185) in /public/bonjovi/bonjovi.gery.pl/galeria/includes/sessions.php on line 52

Warning: Cannot add header information - headers already sent by (output started at /public/bonjovi/bonjovi.gery.pl/galeria/includes/db_mysql.php:185) in /public/bonjovi/bonjovi.gery.pl/galeria/includes/sessions.php on line 52

Warning: Cannot add header information - headers already sent by (output started at /public/bonjovi/bonjovi.gery.pl/galeria/includes/db_mysql.php:185) in /public/bonjovi/bonjovi.gery.pl/galeria/includes/sessions.php on line 52

DB Error: Bad SQL Query: 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, u.user_name, c.cat_name FROM 4images_images i, 4images_users u, 4images_categories c WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND u.user_id = i.user_id AND c.cat_id = i.cat_id ORDER BY RAND()
Got error 127 from table handler

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, u.user_name, c.cat_name FROM 4images_images i, 4images_users u, 4images_categories c WHERE i.image_active = 1 AND u.user_id = i.user_id AND c.cat_id = i.cat_id AND i.cat_id NOT IN (0) ORDER BY i.image_date DESC LIMIT 3
Got error 127 from table handler

Warning: Supplied argument is not a valid MySQL result resource in /public/bonjovi/bonjovi.gery.pl/galeria/includes/db_mysql.php on line 113


Can you help me? :lol:  You can FIng this under http://bonjovi.gery.pl/galeria/

Hej, potrzebuje pomocy, cos jeblo i nie dziala, chyba z baza danch, bo z nia pojawiaja sie komunikaty, nie wiem co, baza dziala, a tu jebs, komunikaty sa wyzej... HELP! :arrow:

Bodzio

Pages: [1]