Author Topic: Images Favourite Users  (Read 12244 times)

0 Members and 1 Guest are viewing this topic.

Offline brunorosa

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Janela Urbana
Images Favourite Users
« on: January 10, 2006, 01:21:02 PM »
Hello!

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

Regards
bruno

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Images Favourite Users
« Reply #1 on: January 10, 2006, 02:17:50 PM »
... I think that is not a good idea ... the Lightbox is a Private Image Album of users ...  :!:

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline brunorosa

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Janela Urbana
Re: Images Favourite Users
« Reply #2 on: January 12, 2006, 12:02:34 AM »
well... for the type of project i would like to make it's a good idea... is there anyway? :)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Images Favourite Users
« Reply #3 on: January 12, 2006, 12:52:05 AM »
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...
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 of the image id you are looking for, very resources intensive process if you have many members).
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: Images Favourite Users
« Reply #4 on: January 12, 2006, 03:15:50 AM »
maybe ill be more easy create a list of "favorite users"  :roll:

Offline brunorosa

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Janela Urbana
Re: Images Favourite Users
« Reply #5 on: January 13, 2006, 05:15:52 PM »
i guess i haven't explained myself well... lol... lot @ this... an example...

http://www.olhares.com/s_t/foto6459.html

There you can see... users, above the imagem have a button called "Adicionar ąs favoritas" wich means add picture to favourites (like on 4images we have it add to lightbox)... and then, on the imagem, bellow it show wich users have that picture as a favourite "Favoritas" list....


Offline brunorosa

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Janela Urbana
Re: Images Favourite Users
« Reply #6 on: January 13, 2006, 05:16:38 PM »
maybe ill be more easy create a list of "favorite users"  :roll:

yes... i think it's something like that... favourite users list

Offline brunorosa

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Janela Urbana
Re: Images Favourite Users
« Reply #7 on: January 16, 2006, 01:05:17 AM »
beeing a "pain in the ass" means no more replies?  :cry:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Images Favourite Users
« Reply #8 on: January 16, 2006, 01:20:43 AM »
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).
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: Images Favourite Users
« Reply #9 on: January 20, 2008, 12:18:54 AM »
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).

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?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Images Favourite Users
« Reply #10 on: January 20, 2008, 12:44:44 AM »
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).

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.

;)
« Last Edit: January 20, 2008, 02:10:40 AM by thunderstrike »
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: Images Favourite Users
« Reply #11 on: January 20, 2008, 10:44:37 AM »
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).

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.  :roll:

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Images Favourite Users
« Reply #12 on: January 20, 2008, 02:52:47 PM »
Quote
I think I'll have problem with 3 - Match each user ID with $user_info['lightbox_image_ids'] and extra image field.

$user_info and $additional_image_fields is global in show_image function so is no problem for extract data. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?