Author Topic: Number of Lightbox Pics in user_logininfo.html  (Read 14628 times)

0 Members and 1 Guest are viewing this topic.

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Number of Lightbox Pics in user_logininfo.html
« on: August 13, 2005, 12:25:30 PM »
Hi,

is there a way to see the Number of Images in Lightbox in the user_loginform.html???

I mean this...

Link -> Lightbox (12 Images)

Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: Number of Lightbox Pics in user_logininfo.html
« Reply #1 on: August 13, 2005, 12:52:55 PM »
Yes Mawenzi is having this feature!
 :wink: i would like this tooo!

vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


TheOracle

  • Guest
Re: Number of Lightbox Pics in user_logininfo.html
« Reply #2 on: August 13, 2005, 01:29:23 PM »
I remember asking this in the old forum. Too bad I didn't backup this one since it worked.

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: Number of Lightbox Pics in user_logininfo.html
« Reply #3 on: August 13, 2005, 02:55:35 PM »
in includes/page_header.php find:
Code: [Select]
  "media_url" => MEDIA_PATH,insert below:
Code: [Select]
  "media_url" => MEDIA_PATH,
  "user_lightbox_count" => (trim($user_info['lightbox_image_ids'])) ? count(explode(" ",trim($user_info['lightbox_image_ids']))) : 0,

Then in user_logininfo.html template u can use {user_lightbox_count} tag

If you installed "Lighbox for guests" mod, then in the same file above:
Code: [Select]
//-----------------------------------------------------
//--- Register Global Vars ----------------------------
//-----------------------------------------------------
insert:
Code: [Select]
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");
}
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 JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Number of Lightbox Pics in user_logininfo.html
« Reply #4 on: August 13, 2005, 08:47:29 PM »
Thanks for this.....
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: Number of Lightbox Pics in user_logininfo.html
« Reply #5 on: August 13, 2005, 10:16:25 PM »
that was to simple -   :wink:
thanks a lot it works fine  :!:

 8) vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


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: Number of Lightbox Pics in user_logininfo.html
« Reply #6 on: August 14, 2005, 06:08:09 AM »
btw, if u installed "Lightbox for guests", u can use that tag in user_loginform.html template too ;)
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: Number of Lightbox Pics in user_logininfo.html
« Reply #7 on: August 15, 2005, 04:57:18 PM »
btw, if u installed "Lightbox for guests", u can use that tag in user_loginform.html template too ;)
I have installed Lightbox for guests, but it won't show how many pics I have in Lightbox, it shows always (0), but for members it shows number of pictures in lightbox (12). What may be wrong ?

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: Number of Lightbox Pics in user_logininfo.html
« Reply #8 on: August 16, 2005, 12:55:07 AM »
right...I'm talking my words back, it didnt work without extra few lines.
I've updated my orignal post with an extra step ;)
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: Number of Lightbox Pics in user_logininfo.html
« Reply #9 on: August 16, 2005, 10:26:58 AM »
thnx V2no, now it works great!

Offline Toso

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Lachs & Leder
Re: Number of Lightbox Pics in user_logininfo.html
« Reply #10 on: November 23, 2005, 12:31:14 PM »
Great Mod,

but it shows (3), although there are only (2) pictures ?

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: Number of Lightbox Pics in user_logininfo.html
« Reply #11 on: November 23, 2005, 02:28:55 PM »
This code does not check if visitor has permision to vew the image or even if the images still exists, so if one added an image in the lightbox and then later on permission for the category where the image is was changed and the visitor has no long access to it, this code will still count the image...
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 Toso

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Lachs & Leder
Re: Number of Lightbox Pics in user_logininfo.html
« Reply #12 on: November 23, 2005, 02:34:03 PM »
Is it possible to check if the images still exists?