Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 11:16 am EDT

Geeklog Forums

Thumbnailed images shall popup full sized image in new window


Status: offline

Elegantly

Forum User
Junior
Registered: 08/13/04
Posts: 15
Hi all,

does anyone know how I can convince geeklog to open thumbnailed images (resized by ImageMagick) in a new window resp. popup on click? Currently, the image hyperlink opens in the same browser window, thus the actual geeklog web page "disappears".

Yes, a user could just push the browser's Back button, but from my own experience...well...*cough*.

So, where's the place to look for this tweak? Any hint would be appreciated.

 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
Quote by Elegantly: how I can convince geeklog to open thumbnailed images (resized by ImageMagick) in a new window resp. popup on click?

Just out of curiosity is it e.g. Gallery you're talking about?
If so, it has nothing to do with Geeklog but Gallery itself and this is an external piece of code.
Can't think of any place in Geeklog where it resizes images except for user photos and images in articles but there there is no hyperlink.
Geeklog Polish Support Team
 Quote

Status: offline

Elegantly

Forum User
Junior
Registered: 08/13/04
Posts: 15
No, I am not using Gallery for this. Geeklog automatically creates thumbnails if images exceed a user-defined threshold (e.g., greater than 400x300). Geeklog than links these thumbnails with the original, unscaled image if "keep_unscaled_image" is 1 in config.php.

But I finally found the piece of code. It's in admin/story.php. I managed to tweak the code in such a way that it will now use JavaScript and a custom PHP file to open the original, unscaled image in a new window and automatically resizes this window to fit to the image's dimension. The popup works with both IE and Mozilla/Netscape/Firefox and is at least compatible with the popup blocker of Firefox (i.e. it will not trigger it, but open the new window).

Phew...
 Quote

Status: offline

LCAngela

Forum User
Newbie
Registered: 12/07/04
Posts: 6
Elegantly, is there any way you could share the code you used to create the popup windows for article images? I'd like to do the same on my site. Smile

Thanks in advance!
"That's because it's -fly soup-, sir..."
 Quote

Status: offline

JohnVanVliet

Forum User
Full Member
Registered: 10/09/03
Posts: 161
if you want you can have a look at my hack for filemgmt if this is close ( it is still in alpha state )
this will give an image of the dl insted of click for screenshot


here@http://johnscelestiapage.no-ip.com/

or

here@http://johnscelestiapage.no-ip.com/`dlformat.7z
 Quote

Status: offline

LCAngela

Forum User
Newbie
Registered: 12/07/04
Posts: 6
I've actually scoured around the web and found a PHP/JS combo method that's working realy well for me:
http://http://www.sitepoint.com/forums/showthread.php?threadid=95318

Thanks anyway! Mr. Green
"That's because it's -fly soup-, sir..."
 Quote

All times are EDT. The time is now 11:16 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content