• [MOD] Lightbox for GUESTs v1.2 4 0 5 1
Currently:  

Author Topic: [MOD] Lightbox for GUESTs v1.2  (Read 106483 times)

0 Members and 2 Guests are viewing this topic.

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [MOD] Lightbox for GUESTs
« Reply #30 on: April 04, 2005, 11:18:15 PM »
I Have installed it and i belive it works!
but how can i see my lightbox or Album in german
i think i miss or need buton somewhere

sincerly
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: [MOD] Lightbox for GUESTs
« Reply #31 on: April 04, 2005, 11:45:25 PM »
all none-dafault language images should go into /template/<yourtemplate>/images_<language_name>/ for example for your german language it should be:
template/<yourtemplate>/images_german/
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 Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [MOD] Lightbox for GUESTs
« Reply #32 on: April 05, 2005, 07:28:32 AM »
Sorry V@no
you missunderstoud my writting!

if i look at your homepage you have on the left side the menu for loging in just below you have a link called Album!
This link is i am missing!

if you look at my page i don't have a login box (i Removed it)

sincerly
vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [MOD] Lightbox for GUESTs
« Reply #33 on: April 05, 2005, 08:15:04 AM »
second Problem i found

i have two domain name pointing to one homepage
www.foto-kocher.com
www.foto-kocher.biz
if i do a Album (=Lightbox) in .com it ist not showing up in .biz/lightbox.php

how is this to fix?

sincerly
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: [MOD] Lightbox for GUESTs
« Reply #34 on: April 06, 2005, 02:33:18 AM »
if i look at your homepage you have on the left side the menu for loging in just below you have a link called Album!
This link is i am missing!
its in user_logininfo.html template
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 Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [MOD] Lightbox for GUESTs
« Reply #35 on: April 06, 2005, 11:23:06 PM »
second Problem i found

i have two domain name pointing to one homepage
www.foto-kocher.com
www.foto-kocher.biz
if i do a Album (=Lightbox) in .com it ist not showing up in .biz/lightbox.php

how is this to fix?

sincerly
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: [MOD] Lightbox for GUESTs
« Reply #36 on: April 06, 2005, 11:53:14 PM »
there is nothing u can do about it, u can not have same cookies for two different domains.
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 Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [MOD] Lightbox for GUESTs
« Reply #37 on: April 07, 2005, 07:58:30 PM »
ok i will have to search for a solution to force one domain to the other!

 :?  :?  :roll:

vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [MOD] Lightbox for GUESTs
« Reply #38 on: April 10, 2005, 06:20:05 PM »
Hello
i have another Problem with the lightbox - i put some picture in - and a couple of hours later it is empty!
why this happen?

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: [MOD] Lightbox for GUESTs
« Reply #39 on: April 10, 2005, 07:42:34 PM »
that's because for some reason there is no cookies being set on your site...
here are the headers I receive from your site when adding an image to lightbox:
Quote
HTTP/1.1 302 Object Moved
Location: ./templates/4dark/images/lightbox_yes.gif
Server: Microsoft-IIS/5.0
Content-Type: text/html
Content-Length: 164

<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="./templates/4dark/images/lightbox_yes.gif">here</a></body>

and this are the headers from my site:
Quote
HTTP/1.1 302 Found
Date: Sun, 10 Apr 2005 17:29:59 GMT
Server: Apache/2.0.53 (Unix)
Set-Cookie: PHPSESSID=pnabxOCw05f9EyIqnnvlIpkOsL9; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: 4images_lightbox=s%3A0%3A%22%22%3B; expires=Sat, 09 Jul 2005 17:29:59 GMT; path=/
Set-Cookie: 4images_lightbox_lastaction=i%3A1113154199%3B; expires=Sat, 09 Jul 2005 17:29:59 GMT; path=/

Location: ./templates/vano/images/lightbox_no.gif
Content-Length: 0
Connection: close
Content-Type: image/gif

I dont know, maybe its because your server is running on Windows system with IIS webserver? dont know...

P.S. try and see if it works without the "Add/remove images to/from lightbox without page refresh" mod.
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 Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [MOD] Lightbox for GUESTs
« Reply #40 on: April 24, 2005, 01:42:50 PM »
i removed - but now my page gives a error!
http://www.4homepages.de/forum/index.php?topic=7581.0

vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: [MOD] Lightbox for GUESTs
« Reply #41 on: July 09, 2005, 08:49:12 PM »
this mod should work on v1.7.1 by default.
Do u have in your cookies: 4images_lightbox
?
if u dont, then u probably made a misstake during installation.

yes I have this in the cookies, but still not working   :(

Actually I had removed the user login, register option, (from the template) the entire area which holds the user login, random images, etc (I did this, to make space for wrapping this gallery into mambo) later I added you code and include: <a href="{url_lightbox}">{lang_lightbox}</a>  for the lightbox link

Now I am able to add images to the lightbox, but when I view, it’s empty…. What might have gone wrong? Using 1.7.1

Thanks V@no for the MOD, its really cool feature  :wink:

Paul  :D




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: [MOD] Lightbox for GUESTs
« Reply #42 on: July 09, 2005, 09:01:42 PM »
I dont know what u did wrong, I just tested it on a fresh v1.7.1 and it worked just fine.
Can I test yours?
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 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: [MOD] Lightbox for GUESTs v1.2
« Reply #43 on: July 09, 2005, 11:26:59 PM »
ok, I've updated the code to v1.2
Now it uses build-in functions to set/read cookies and sessions.

To upgrade, u'll need redo steps: 1.2, 1.3, 1.4, 1.5, 2.1, 4. and 5.
Step 2.1 was changed, so u'll need remove previos code:
Code: [Select]
if ($user_info['user_level'] == GUEST) {
  $cookie_name = (defined("COOKIE_NAME")) ? COOKIE_NAME : "4images_";
  $cookie_lightbox = isset($HTTP_COOKIE_VARS[$cookie_name.'lightbox_lastaction']) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookie_name.'lightbox_lastaction'])) : "";
  $user_info['lightbox_lastaction'] = (isset($session_info['lightbox_lastaction'])) ? $session_info['lightbox_lastaction'] : $cookie_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 Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: [MOD] Lightbox for GUESTs v1.2
« Reply #44 on: July 10, 2005, 03:21:05 PM »
Yes it works!
Thanks a million :wink:, this MOD is really cool, and useful :idea:

Paul :)