LightBox JS for Fullsize Popup Slideshow - Page 9 LightBox JS for Fullsize Popup Slideshow - Page 9
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

LightBox JS for Fullsize Popup Slideshow

Started by SaWey, January 08, 2008, 01:01:26 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

SaWey

It is your main stylesheet what is forcing the white color on the texts, you can prevent this by editing lightbox.css:

in #imageDataContainer, add:
color: #000000;

also add a new class:
#imageDataContainer a{
/*add the style for links in here*/
}

tardis1916

Thanks so much! I knew it was something with my site CSS but couldn't figrue out how to fix it.  ;D

Now for another question, this one is more complicated and I'm not sure it would be possible but if you look at one of my images withen the gallery, I have 4 sometimes 5 or 6 different sizes of an image for different size resolutions. I have links withen the file information for the different sizes but wonder if it would be possible to have different sizes added to the popup where it says, click here to download this size, and beneath that another link for the next size and so forth?

ie, instead of just saying, "Click here to save a version of this image" have it say

Click here to save a 1920x1080 of this image
Click here to save a 1920x1200 of this image
Click here to save a 1600x1200 of this image
Click here to save a 1280x1024 of this image
Click here to save a iphone version of this image

and have the links actually point to the actual images. I personally think that would require codeing each image which if you can see, i have lots of images.

http://www.laura-bertram.com/gallery/index.php & http://www.trance-gemini.com/gallery/
"How could you be ringing? What that's about... Ringing? What am I supposed to do with a ringing phone?" Christopher Eccleston - Doctor Who

SaWey

It certainly is possible, but I don't have the time to do this for you. If you know javascript, then you should look at line 661
(you will have to pass all the links from your pic info via php to javascript)
If you can't do it yourself, try the freelancers board.

flapane

Quote from: chickchick on March 16, 2009, 04:26:00 PM
sry one file is missing and cant find the mod/edit button.

you need to create a file called "addHit.php" in your cpg dir.


<?php
define
('IN_COPPERMINE'true);

require(
'include/init.inc.php');

if (isset(
$_POST['pid'])) {
  
// Add 1 to hit counter
  
$pid = (int)$_POST['pid'];
  if (isset(
$_COOKIE[$CONFIG['cookie_name'] . '_data'])) {
      
add_hit($pid);
      if (
count($USER['liv']) > 4array_shift($USER['liv']);
      
array_push($USER['liv'], $pid);
      
user_save_profile();
  }
}
?>



Hi
I have just read your pm!
Thanks I have did the mod, even if I still don't know if it works, I have to wait some visitor to see my photos and then check if the counter get increased, as I as an admin can't increase my visit counter.

What does the js lightbox dev think? Did you or other users try it?
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

jeepguy_1980

I've tried it too. However, my site is a small family site and like you, I cannot test this myself. I have no idea how people view the pictures on my site, so I can't tell where the hits are coming from.  I suppose I can go to a wi-fi hotspot and test the mod out.

flapane

I must say that when I wrote that post, I wrote down the number of gallery visits, and it was 19706.
Now it is 19770, but either people used lightbox or not, I don't know... I suppose we should try a reciprocal test on our websites.
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

flapane

Firefox 2 has just been crashed and it keeps crashing if you open lightbox photos picking them from RANDOM IMAGES.
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Ludo

chickchick mod does work, tested on my own site.
A few edits are required if you want to use addHit.php file from this mod, which adds standard slideshow views to hit counter: change
 xmlHttp.open("POST", "addHit.php", false);
 xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");

to
 xmlHttp.open("GET", "addHit.php", false);

Ludo

Quote from: the6thday on March 29, 2009, 06:56:30 PMyou can still replace the existing code with the "change to" code but you have to remove these two lines instead of just one.

                $limit_random = $limit2 ? 'LIMIT '.$limit2 : '';
                $query = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET ORDER BY RAND() $limit_random";
Just change
$limit_random = $limit2 ? 'LIMIT '.$limit2 : '';
to
$limit_random = $limit2 ? 'LIMIT '.$limit2 : $limit;
No more edit needed.
Sawey please review step 7 in installation instructions accordingly.

flapane

Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Ludo


flapane

« Reply #166 on: Today at 12:41:55 PM »
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Ludo

No issue with random images slideshow in Opera 9.64. I'm running 1.4.20 patched, not 1.4.21

flapane

mmmh got it. Please could you see if it works on my gallery too? It could be Firefox and I can't test other browsers atm, but it sounds strange.
It doesn't happen if you slide album images but only if you pick images from RANDOM section.
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Ludo

Tried with Firefox 2.0 and yes, it freezes.
I'm going to test it after having removed chickchick's mod.

flapane

Thanks for your help, I hope chikchick sees my pm and reads our posts.
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

vidmas

Hi, may somebody know why in my Lightbox slideshow the bottom starts first and only then
picture popup. Its not so nicely to view. :(
http://vidmas.xz.lt/

sorry with my poor english :)

Ludo

Quote from: Ludo on April 07, 2009, 06:46:18 PM
I'm going to test it after having removed chickchick's mod.
Without the mod, no issue with random pctures slideshow. There must be a reason and I must find it  ;D ;)

flapane

ok meanwhile I'd better stick to the original lightbox mod ;D
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

jeepguy_1980

I've converted this mod into a plugin.  Right now, it can only be customized by editing the codebase.php file. I hope to release a future version with a menu based configuration.