Welcome, Guest. Please login or register.
Did you miss your activation email?
February 09, 2012, 12:41:24 AM

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.
149393 Posts in 21080 Topics by 7528 Members
Latest Member: ronse
* Home Help Search Login Register
Pages: 1 ... 3 4 [5]   Go Down
Print
Author Topic: GDPics Gallery Module  (Read 42818 times)
marathoner

Offline Offline

Posts: 495


« Reply #100 on: July 31, 2008, 01:53:40 AM »

If you created the images directory and uploaded via FTP it might be a permissions issue. If so, set to 775 or 777 so that GDPics can create the thumbs directory and thumb files.
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4715



« Reply #101 on: July 31, 2008, 02:11:46 AM »

 wink
That's it
Thanks a lot.

Best Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
curiozities

Offline Offline

Posts: 2


« Reply #102 on: August 12, 2008, 03:35:53 AM »

[
Well, you can fix the problem by changing save.php in the section where the INSERT query occurs.  There are two such queries, one for albums and one for images.  This is near the bottom of the file. Change  INSERT INTO  to REPLACE INTO.

it doesn't work of course - you get duplicate entries.  To fix that you need to add a UNIQUE key on the image name, but that doesn't work because albums set image name to NULL.  So you need to copy album name to imagename for albums only.  Then it works.

UPDATE mod_gdpics_captions SET imagename=album where isalbum='yes'
ALTER IGNORE TABLE mod_gdpics_captions ADD UNIQUE (imagename)

You also need to change NULL to $key in the "Insert for album caption" section which was changed above to set imagename equal album for album title entries.

Works better but still not really tested it.

If I find it works without problems I'll post a patch sometime later.

DIck




I'm running into the same problem.  When I first create an album with GDPics, I can add captions to the images I initially use for said album.  But if I decide to add new images later, I can't add a caption to the new images.  You can see this is going on at my website, http://www.coloring.us.com/pages/printable-coloring-pages/animals.php?album=birds/ (click on the image "cardinal-1.gif," the first image I posted when I created this album, and you'll see a caption, whereas the other images, which I added later, do not have captions). 

I am not a coder, especially not PHP or MySQL, but I can cut and paste if someone would be kind enough to post the exact code and where it should go in save.php.  Thanks. 
Logged
curiozities

Offline Offline

Posts: 2


« Reply #103 on: August 19, 2008, 12:02:44 AM »

For those of you who use GDPics Gallery and are getting a fatal error when breadcrumbs are set to "on," I found the solution.

The error message looks something like this (pardon me if it's not exact, I'm trying to recreate it from my admittedly bad memory  embarassed ): Fatal error: Using $this when not in object context on line 178 of view.php.

You need to change the code on line 178 from this (or should I say, "$this"?):

$temp = str_replace($this->string_search,'',$split[$i]);

to this:

$temp = str_replace($string_search,'',$split[$i]);

I'm not a php coder by any stretch of the imagination but I am familiar with html and css, plus I'm a good proofreader.  I Googled the problem and found that it was caused by the "$this" command, which has been deprecated in php 5.x.  Here is a link to the site where I found the answer: http://www.mightyseek.com/forum/showthread.php?t=851

Now, if some kind soul would help me with the problem I'm having, I'd appreciate it. 

The problem is, once I've created an album and added captions to the initial images on the page, I cannot add a caption to any new images I add later.  This is frustrating me, I've been trying to figure out the problem for about two weeks now and no luck. 

The system does not give me an error message, even when I set it to "E_ALL".  What happens is I see the thumbnail in the admin, and a text box to write in a caption.  I write the caption, click save, and when I visit the page with the image on, there is no caption.  I go back to admin and the text box is empty (yet the text boxes for the initial images still have their captions in place). 

One of the problem pages on my website is http://www.coloring.us.com/pages/printable-coloring-pages/animals.php?album=birds/ (ironically, you'll see the breadcrumbs working fine on that page, though). 

Please help!

« Last Edit: April 09, 2009, 11:50:02 PM by Argos » Logged
senorcosta

Offline Offline

Posts: 4


« Reply #104 on: October 09, 2008, 04:45:16 AM »

Is there any way to make the photos "popup" instead?
Thanks
Logged

"You can preach a better sermon with your life than with your lips"
korn

Offline Offline

Posts: 5


« Reply #105 on: December 23, 2008, 07:48:40 PM »

hi man! Can i diplay directly the original image? without the resampled one
Logged
Pages: 1 ... 3 4 [5]   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!