Jump to content


* * * * * 2 votes

AutoGalery


  • You cannot reply to this topic
24 replies to this topic

#21 Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts
  • Gender:Male

Posted 10 June 2008 - 09:35 PM

$buffer .= "<a href=\"{$_url}offset=$_i  . _html($_urlsuffix) . target="_blank" . "\">$_b</a>";

You have tried to concatenate _html($_urlsuffix) with html text target= You really need syntax highlighter or count your "'s and ''s and .'s really well. You can't concatenate text and php variables without quotes

#22 Excorio

    Etomite Forum Newbie

  • Member
  • 8 posts

Posted 11 June 2008 - 07:09 PM

Okay... Tried your suggestions and they didn't work. And like Chris said i missed something... :)

But i got it WORKING! I was working on the wrong part of the code... Duhhh... :Whistle:

Here's what i changed/added (code is at the end of the snippet):
$buffer .=  "<a href=\"" . _html("$_dirnamehttp/$_filename");
}
	 

// Added below line of code so the clicked thumbnail opens the image in a new window.

//  $buffer .=  "\" target=\"" . _blank;

//  Uncomment for use. Comment it and the image opens in the same window (default).
	 

$buffer .=  "\"><img src=\"" . _html("$_dirnamehttp/$_thumbdir/$_filename.thumb.jpg");
$buffer .=  "\" alt=\"" . _html($_filename) . "\" style=\"";
$buffer .=  "width: {$_thumbsize}px; height: {$_thumbsize}px\" />";

Man this thing was giving me a headache! :Silly:

Edited by Excorio, 11 June 2008 - 08:03 PM.


#23 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,506 posts
  • Gender:Male

Posted 11 June 2008 - 07:30 PM

Glad you got it working... Hey, sometimes the struggle to get past a problem helps gel things in the gray matter - meaning that maybe it wasn't the waste of time that it may have felt like during the struggle... It happens almost daily for me...

#24 Excorio

    Etomite Forum Newbie

  • Member
  • 8 posts

Posted 11 June 2008 - 07:44 PM

"It happens almost daily for me..."

Hehehe... I'm am engineer and i know what you mean :) It's indeed almost daily i also have those little 'bugs'.
My own designs make me go nuts sometimes... But after some trial and error things work... (most of the time)

:)

Edited by Excorio, 11 June 2008 - 07:46 PM.


#25 Ed Headset

    Likes Etomite Forums!

  • Developers
  • PipPip
  • 191 posts
  • Gender:Male
  • Location:The Netherlands
  • Interests:Etomite, PHP, Ajax.
    3D imaging

Posted 12 June 2008 - 07:15 PM

Nice one!

I've sumbled somehow on a weird thing.

I've got 2 identical version of this script running.

1 with PHP 4.4.7 it works perfectly

2 with PHP 5.2.6, and this one doesn't work, well part of it.

It somehow want to open (when you click thum) an image including the full local path to the file.
Something like http://my.doamin.com/path/to file/<drive letter:>/Local/OS/path/to file/image.jpg.
Obiously this doesn't work, but I cant figure out why in PHP 5.2.6 he want's to add the local OS file location to it ?

Thumbs seems to be created correctly, it's the display of the thumb image, and link to the original, that seems to be out of order.
Anyone got an idea ?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users