Author Topic: [Feature-addon] - Total count for lightbox (how many images you added).  (Read 42828 times)

0 Members and 1 Guest are viewing this topic.

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [Feature-addon] - Total count for lightbox (how many images you added).
« Reply #15 on: February 10, 2006, 06:38:13 AM »
Quote

And why not make the number of "who" have added the picture on details.php


And I assume you mean from their profiles ? :roll:


i mean on details.php , below nº of hits , on image page ;)

That would be a new mod,
but i think it would be better that keep this private,
but a number how many users added this picture in their lightbox would be useful.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [Feature-addon] - Total count for lightbox (how many images you added).
« Reply #16 on: February 10, 2006, 04:32:23 PM »
Quote

That would be a new mod


Even better. It could be added as an additional image field with a simple SQL statement. ;)

Quote

how many users added this picture in their lightbox would be useful


For ADMIN level, it would be very useful. I agree. I guess I could try to build this. ;)
« Last Edit: February 10, 2006, 04:47:01 PM by TheOracle »

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [Feature-addon] - Total count for lightbox (how many images you added).
« Reply #17 on: February 10, 2006, 05:07:09 PM »
I don't know if i've explain wrong ....

But i've just said show the number of user's of who have added the image !! Not show their lightboxes ;)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [Feature-addon] - Total count for lightbox (how many images you added).
« Reply #18 on: February 10, 2006, 05:31:22 PM »
Quote

But i've just said show the number of user's of who have added the image !! Not show their lightboxes


Quote

but i think it would be better that keep this private,



Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [Feature-addon] - Total count for lightbox (how many images you added).
« Reply #19 on: February 10, 2006, 09:58:31 PM »
Even better. It could be added as an additional image field with a simple SQL statement. ;)

I think you don't need a additional field, just search the lightboxes table,
where the image id is added.
But i don't know of the performance,
if it would be really better to add an extra field if you have large gallerys.
Maybe vano could answer it.


how many users added this picture in their lightbox would be useful

ok, thats what i also said, the number would be interesting, but not a list of users,
cause that should be private.

Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [Feature-addon] - Total count for lightbox (how many images you added).
« Reply #20 on: February 10, 2006, 11:06:13 PM »
Even better. It could be added as an additional image field with a simple SQL statement. ;)

I think you don't need a additional field, just search the lightboxes table,
where the image id is added.
But i don't know of the performance,
if it would be really better to add an extra field if you have large gallerys.
Maybe vano could answer it.


how many users added this picture in their lightbox would be useful

ok, thats what i also said, the number would be interesting, but not a list of users,
cause that should be private.



yes i've never said "list of users" but yes the number of users of who have added !!!

for example :

Image Hits : 100
Fav's Of     : 12 user(s)


This show just how many , and never "who" , this keep the privacy !! ;) just a simple tool of "stats" for who have upload the pic , maybe "who most popular" between users  :mrgreen:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Feature-addon] - Total count for lightbox (how many images you added).
« Reply #21 on: February 11, 2006, 12:34:58 AM »
The way 4images stores images in the lightbox, it will be very expensive on server resources, especialy if you have lots of members with lots of images in their lightboxes...
In this topic you can see that its possible for top.php, but its very not server-friendly:
http://www.4homepages.de/forum/index.php?topic=9033.0
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 IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [Feature-addon] - Total count for lightbox (how many images you added).
« Reply #22 on: February 11, 2006, 12:57:16 AM »
so in that case it would be better to add like orcale said an extra field to IMAGES TABLE when users add an image to thier light box?
ok, thanks for answer, i assumed already that this would spent to much server ressources
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline urmasmuld

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [Feature-addon] - Total count for lightbox (how many images you added).
« Reply #23 on: February 19, 2007, 12:00:46 PM »
I've installed this MOD. It works perfectly but if i go to search page, it shows :
Undefined variable: lightbox_total_count in /www/01/xxx/xxxx/xxxx/page_header.php on line 159
What could be wrong?


Offline ivan

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.279
    • View Profile
    • Bilder Gallery
Re: [Feature-addon] - Total count for lightbox (how many images you added).
« Reply #24 on: February 19, 2007, 03:57:21 PM »
hi,
the mod is perfekt... only the updatet of lightbox is not perfect.

when i go to index page, is table updating okay
when i go to lightbox.php, the counter is fail

hallo zusammen,
ich habe ein kleines problem mit dem total counter.
wenn ich ein bild unter kategorien oder auf der haupseite hinzufüge,
funktioniert das updating des counters einwandfrei. gehe ich aber zur
lightbox.php, stimmt die zahl nicht mehr mit der paging_stats überein.

wieso?
wer kann helfen...

gruss ivan
greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery

Offline The Sailor

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
I've installed this MOD. It works perfectly but if i go to search page, it shows :
Undefined variable: lightbox_total_count in /www/01/xxx/xxxx/xxxx/page_header.php on line 159
What could be wrong?



same problem line:
Code: [Select]
  "lightbox_total_count" => intval($lightbox_total_count),
(^_^)

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
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 urmasmuld

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [Feature-addon] - Total count for lightbox (how many images you added).
« Reply #27 on: October 09, 2009, 03:34:50 PM »
Everything works (for reg. users), but i have installed this [MOD] Lightbox for GUESTs v1.2 , and if not logged in, it shows always i have 0 pics in lightbox. Can any1 tell me what should be modified to get it work for guests too ?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Feature-addon] - Total count for lightbox (how many images you added).
« Reply #28 on: October 09, 2009, 03:44:57 PM »
Above the new code you've added from step 1, insert this:
if ($user_info['user_level'] == GUEST) {
    
$lightbox $site_sess->get_session_var('lightbox');
    
$user_info['lightbox_image_ids'] = ($lightbox) ? $lightbox $site_sess->read_cookie_data("lightbox");
    
$lightbox $site_sess->get_session_var('lightbox_lastaction');
    
$user_info['lightbox_lastaction'] = ($lightbox) ? $lightbox $site_sess->read_cookie_data("lightbox_lastaction");
}
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 urmasmuld

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [Feature-addon] - Total count for lightbox (how many images you added).
« Reply #29 on: October 09, 2009, 03:51:21 PM »
Above the new code you've added from step 1, insert this:
if ($user_info['user_level'] == GUEST) {
    
$lightbox $site_sess->get_session_var('lightbox');
    
$user_info['lightbox_image_ids'] = ($lightbox) ? $lightbox $site_sess->read_cookie_data("lightbox");
    
$lightbox $site_sess->get_session_var('lightbox_lastaction');
    
$user_info['lightbox_lastaction'] = ($lightbox) ? $lightbox $site_sess->read_cookie_data("lightbox_lastaction");
}


Wow, that was quick, and it works now. Thanks V@no, u saved my day :D

 

Post your comments here