4images code on GitHub Click here to visit GitHub.
0 Members and 1 Guest are viewing this topic.
Is there any way to show on the picture (details.php) the listing of users that have that picture on their lightbox? What i mean i show the list of users on details.php wish consider that picture a favourite picture...
maybe ill be more easy create a list of "favorite users"
Unfortunetly the way 4images stores images in lightbox it would require alot of server resources to pull that information. (you will need load every lightbox into memory and scan it for the image id you are looking for, very resources intensive process, especialy if you have many members).
Quote from: V@no on January 12, 2006, 12:52:05 AMUnfortunetly the way 4images stores images in lightbox it would require alot of server resources to pull that information. (you will need load every lightbox into memory and scan it for the image id you are looking for, very resources intensive process, especialy if you have many members).
Quote from: V@no on January 16, 2006, 01:20:43 AMQuote from: V@no on January 12, 2006, 12:52:05 AMUnfortunetly the way 4images stores images in lightbox it would require alot of server resources to pull that information. (you will need load every lightbox into memory and scan it for the image id you are looking for, very resources intensive process, especialy if you have many members).I know that this post is pretty old but it's still interesting for me. If that way would take to much server resources, why don't you add extra row in 4images_images table named images_favorites where would all user_id would be saved who added this image to favorites / lightbox?
Quote from: Lucifix on January 20, 2008, 12:18:54 AMQuote from: V@no on January 16, 2006, 01:20:43 AMQuote from: V@no on January 12, 2006, 12:52:05 AMUnfortunetly the way 4images stores images in lightbox it would require alot of server resources to pull that information. (you will need load every lightbox into memory and scan it for the image id you are looking for, very resources intensive process, especialy if you have many members).I know that this post is pretty old but it's still interesting for me. If that way would take to much server resources, why don't you add extra row in 4images_images table named images_favorites where would all user_id would be saved who added this image to favorites / lightbox?1 - Add extra image field in IMAGES_TABLE (SQL text field).2 - Edit includes/functions.php file.3 - Match each user ID with $user_info['lightbox_image_ids'] and extra image field.
I think I'll have problem with 3 - Match each user ID with $user_info['lightbox_image_ids'] and extra image field.