Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 02:22:52 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149643 Posts in 21099 Topics by 7539 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: 1 ... 7 8 [9]   Go Down
Print
Author Topic: New Version of Gallery  (Read 66894 times)
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« Reply #200 on: March 30, 2009, 07:50:54 PM »

does this version include the following bug ?

the check case "delete" in a picture, when checked, and you save, nothing happen...

i've worked this out by adding
Code:
// Get resize information and image directory
        $query_settings = $database->query("SELECT image_dir, image_digits FROM ".TABLE_PREFIX."mod_gallery_settings WHERE section_id = '$section_id'");
        $fetch_settings = $query_settings->fetchRow();
        $image_dir      = trim($fetch_settings['image_dir'], '/');
        $image_digits   = $fetch_settings['image_digits'];   
       

at line 234 (just  // Try unlinking image)
« Last Edit: March 30, 2009, 07:52:48 PM by VotreEspace » Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« Reply #201 on: April 01, 2009, 07:10:49 PM »

i've added lightbox to gallery...

http://www.reka.ca/pages/fr/demonstrateurs.php
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Mullermand

Offline Offline

Posts: 1


« Reply #202 on: April 08, 2009, 09:05:03 AM »

Hi

Did anyone got it to work with Windows Server ?
I have the same problem as others, with it does not show file image...just a white box with a red cross in.

/Martin
Logged
mr-fan

Offline Offline

Posts: 1538


WWW
« Reply #203 on: April 08, 2009, 10:12:33 AM »

i've added lightbox to gallery...

http://www.reka.ca/pages/fr/demonstrateurs.php

looks real good with the description under the pic......

take a look at the titles of your pictures on my browser i see a real big title (with the cssformats and other stuff) if i mouseover the thumbs...

regards martin
Logged

 
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« Reply #204 on: April 08, 2009, 08:55:43 PM »

i have 1.9f.1_lk_06 installed

i've tried to copy all images from 1 gallery to another

we have a french one, then english, sames pictures, so i guess i could copie the records in the database.

si i've found the section/page ids of what i would like to copy.

search for them in the database "where section_id=..."

exports them in an "insert ... " long records insert.

modified the 2 data for section and page...

reinsert them (as new)...

images appear in admin section, but no"image" whem check properly, am i missing something ? we have about 34 gallery in the site, each with about 150 pics, we have to copy them in english and do not have 40 hours to do it... hehe

can someone put me in the right path ?
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #205 on: April 30, 2009, 01:50:31 PM »

i've added lightbox to gallery...

http://www.reka.ca/pages/fr/demonstrateurs.php
This is EXACTLY what I am after for a client! How did you do that?
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Luckyluke

Offline Offline

Posts: 555



« Reply #206 on: April 30, 2009, 02:09:45 PM »

i've added lightbox to gallery...

http://www.reka.ca/pages/fr/demonstrateurs.php

But on Firefox, I've got a tooltip with html code  huh

Grtz,
Luc
Logged
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« Reply #207 on: April 30, 2009, 02:26:23 PM »

I Know, that's because LightBox uses the "title" tag of the link.

but at least it can even print Tongue
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« Reply #208 on: April 30, 2009, 03:09:42 PM »

here is my modified gallery
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #209 on: April 30, 2009, 09:37:09 PM »

Thanks! I found out there were some errors in your file. In the settings there are references to a folder called "facefiles", but the script has different folders and different files. Can you check this please? For example, these files are not present in the zip:

Code:
<script src="/modules/Gallery-w-Lightbox/facefiles/jquery-1.2.2.pack.js" type="text/javascript"></script>
<link href="/modules/Gallery-w-Lightbox/facefiles/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<script src="/modules/Gallery-w-Lightbox/facefiles/facebox.js" type="text/javascript"></script>
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
eazybaker

Offline Offline

Posts: 8


« Reply #210 on: May 07, 2009, 02:16:53 PM »

Thanks! I found out there were some errors in your file. In the settings there are references to a folder called "facefiles", but the script has different folders and different files. Can you check this please? For example, these files are not present in the zip:

Code:
<script src="/modules/Gallery-w-Lightbox/facefiles/jquery-1.2.2.pack.js" type="text/javascript"></script>
<link href="/modules/Gallery-w-Lightbox/facefiles/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<script src="/modules/Gallery-w-Lightbox/facefiles/facebox.js" type="text/javascript"></script>


very nice gallery http://www.reka.ca/pages/fr/demonstrateurs.php
i need these files too,because its not working without them
thank you
Logged
Xagone
AddOn Development
*
Offline Offline

Posts: 453



WWW
« Reply #211 on: May 07, 2009, 04:50:17 PM »

i dont thinks thoses files are nessessary, but i'll check when i got some time
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #212 on: May 07, 2009, 04:54:26 PM »

i dont thinks thoses files are nessessary, but i'll check when i got some time
Your script refers to them, but they are not there. Your script contains other files that are not referred to. So at some point you have changed the lightbox files for other lightbox files, but you didn't modify the module after that. So now it has a combination of two partial lightbox versions...
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
snark
Guest
« Reply #213 on: June 22, 2009, 03:23:31 PM »

the errorrs mentioned above.. are they cuasing any really bothering conflicts or is this okay to use?
Logged
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #214 on: June 22, 2009, 03:26:02 PM »

the errorrs mentioned above.. are they cuasing any really bothering conflicts or is this okay to use?

Module doesn't work properly and can't be used. Can't remember what exactly were the errors/faults, so you may have to take a look yourself.
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
snark
Guest
« Reply #215 on: June 22, 2009, 04:01:24 PM »

yeah I am working on it now,

but my version seems to not resize the images...




maybe tommorrow




« Last Edit: June 22, 2009, 04:08:36 PM by snark » Logged
bite

Offline Offline

Posts: 4


« Reply #216 on: September 18, 2009, 10:49:51 PM »

I need to know if registered users can add images to different galleries and if they can be moderated.
If not, is there a gallery that will do that.
Thanks.
Logged
MoSaG

Offline Offline

Posts: 11


« Reply #217 on: April 23, 2010, 10:48:36 AM »

Hi there,

I have a little problem with the gallery script v2.0.0 (and also the fewer versions).

I select the "change only max vertical height" and set it to 250 px for the big pictures, the thumbs height to 100 px, but the script resizes the big picture only the width to 250 px and not the height to 250 px.
But here is a mystic: if I set the thumbnail to 250 px of height, the big picture has now the height of 250 px too!?

Seems to me there is a calculation bug for the "max x" or "max y" resizing ... ? What do you mean?



ok, I've looked around in the files and found the following:
on file save_image.php find the lines 197 and 203 and change $thumb_max to $main_max, because thumbs are created earlier on the script. Now the script calculates true sizes for the big pictures.

(sorry for my english Wink hope you understand nevertheless ...)
« Last Edit: April 23, 2010, 11:29:54 AM by MoSaG » Logged
mikejd

Offline Offline

Posts: 140


« Reply #218 on: July 01, 2010, 11:27:17 AM »

If this module is used on a page but not at the top, it shows a slightly irritating behaviour which I hope can be easily sorted.

When viewing an album with a main image and various thumbnails displayed, clicking a new thumbnail, or the 'next' link, causes the page to reload back to the top so you have to scroll down to see the gallery. This can become very tiresome if viewing several images in an album. Is there a way to change it to reload to the top of the gallery section instead? I know that adding a section adds an anchor to the top of the section so how can this be referenced? ( Example: www.huntlyhairst.co .uk/pages/gallery/hairst-2009-mart55.php )

any suggestions?

Mike
Logged
mikejd

Offline Offline

Posts: 140


« Reply #219 on: July 08, 2010, 11:17:19 AM »

I have just added a gallery to a new site I am working on and I have a query about adding images.

When I add new images it appears that there is a problem with larger file sizes, possibly over 500Kb. I have tried to add several images but for some I did not get the 'Success' message and they are not displayed. When I checked the files in media/.gallery the originals of the images are there (as image*.jpg) but the corresponding main and thumb images are not. The images which worked are typically less than 200Kb and the ones that failed are over 500Kb - is this a limit set by the WB module? Or perhaps it is in image management software (GD?)?

Can this be changed and, if so, where? This could be a significant problem for me as the probable users will not be conversant with image resizing and will be expecting to just upload images (some of their image files are over 2MB).

Hope someone can help.

cheers,
Mike
Logged
kingpepe

Offline Offline

Posts: 13


« Reply #220 on: December 15, 2010, 06:55:25 PM »

I have problem with the page modify_image.php. Since I use more than one Gallery in a Websitebaker Installation, I can't use the file anymore. I see an empty page (in the content div of websitebaker admin).
In my opinion the problem is in this section:
Code:
if($visibility == 'privat' || $visibility == 'registered') {
$access_denied = true;
$viewing_groups = explode(',', $page['viewing_groups']);
$viewing_users = explode(',', $page['viewing_users']);
if($wb->is_authenticated() == true) {
if(in_array($wb->get_group_id(), $viewing_groups) || (in_array($wb->get_user_id(), $viewing_users))) {
$access_denied = false;
}
}
if($access_denied) {
continue;
}
}

When I put that whole thing about the authentification in a comment, it works.

I think it's something in this part but i don't know what...
Code:
if(in_array($wb->get_group_id(), $viewing_groups) || (in_array($wb->get_user_id(), $viewing_users))) {
$access_denied = false;
}
« Last Edit: December 15, 2010, 07:00:03 PM by kingpepe » Logged
Lotus

Offline Offline

Posts: 184


« Reply #221 on: February 19, 2011, 08:46:49 PM »

I have a problem with letters containing two or more parts. She Swedish letters Å, Ä, Ö, å, ä, ö somehow gets separated in Explorer.  See picture - see dthe dots in ö..they hamve moved ahead of the actual letter.
Logged
Pond

Offline Offline

Posts: 11



WWW
« Reply #222 on: March 31, 2011, 04:24:30 PM »

I've noticed a couple of bugs in the PNG thumbnail generator code, in function_phgthumb.p hp:

  • It generates thumbnails in JPEG format but uses a ".png" suffix in the filenames which typically leads to an incorrect MIME type being sent by the server and may confuse some browsers
  • Even if altered to generate PNG thumbnails, it doesn't preserve transparency

The first is easy enough. The call do imagejpg towards the end of the file simply needs to be replaced with imagepng.

The second is a question of MSIE 6 compatibility (sigh). Since even Microsoft want MSIE 6 to die, this is probably not an issue anymore. Reading up on the documentation for GD, there are patches hinted at to get better results in MSIE 6 to do with inserting a bKGD chunk into the final image but this seems overkill.

http://www.php.net/manual/en/function.imagepng.php#89609

If you're not worried about this, just replacing the code under //Now make the thumbnail as follows does the trick:

Code:
// Now make the thumbnail
$source = ImageCreateFromPng($source);
$dst_img = imagecreatetruecolor($thumb_w, $thumb_h);
imagealphablending($dst_img, false);
imagecopyresampled($dst_img,$source,0,0,0,0,$thumb_w,$thumb_h,$original_x,$original_y);
imagesavealpha($dst_img, true);
imagepng($dst_img, $destination);
// Clear memory

Everything outside the comments included in the code fragment above remains unchanged.
Logged
Pages: 1 ... 7 8 [9]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!