Author Topic: [ReQ] Open image in a new window  (Read 9794 times)

0 Members and 1 Guest are viewing this topic.

Offline }{iJacK

  • Newbie
  • *
  • Posts: 46
    • View Profile
[ReQ] Open image in a new window
« on: December 11, 2007, 10:47:03 PM »
Hi There

I want to show picture in a new window when clicking on thumbnail.
When anyone click, new autoresize page open and show the picture.

I also find something like this but it can be used for viewing the larger image file. Thumbnail, resized file, and the big image un resized file.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [ReQ] Open image in a new window
« Reply #1 on: December 11, 2007, 10:55:50 PM »
... try this ... [Mod] Show original image in new window by clicking on image ...
... http://www.4homepages.de/forum/index.php?topic=3236.0 ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline }{iJacK

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: [ReQ] Open image in a new window
« Reply #2 on: December 12, 2007, 01:41:56 AM »
i find this but its not my requested subject.
i only want to open image when somebody click on thumbnail.[ not to click on detailed image.]

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: [ReQ] Open image in a new window
« Reply #3 on: December 12, 2007, 05:59:29 AM »
Hi,

what kind of imageshow?

- image in html in new open window
- image with direktlink in new open window
- image with ajax in the same window


KurtW

Offline }{iJacK

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: [ReQ] Open image in a new window
« Reply #4 on: December 12, 2007, 05:35:43 PM »
Hi,

what kind of imageshow?

- image in html in new open window
- image with direktlink in new open window
- image with ajax in the same window


KurtW

- image with direktlink in new open window

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: [ReQ] Open image in a new window
« Reply #5 on: December 12, 2007, 05:48:02 PM »
Hi,
Version 1.7.4 ?

in templates/default/thumbnail_bit.html
search:
Code: [Select]
{thumbnail}replace with:
Code: [Select]
{thumbnail_hightslide}
in includes/functions.php
search:
Code: [Select]
$thumb_hightslide = "<a id=\"$image_id\" href=\"data/media/".$cat_id."/".$media_file_name."\" class=\"highslide\" onclick=\"return hs.expand(this, { captionId: 'caption$image_id' } )\">".$thumb."</a>";replace with:
Code: [Select]
$thumb_hightslide = "<a id=\"$image_id\" href=\"data/media/".$cat_id."/".$media_file_name."\" class=\"highslide\" target=\"_blank\">".$thumb."</a>";

KurtW

Offline }{iJacK

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: [ReQ] Open image in a new window
« Reply #6 on: December 13, 2007, 01:52:35 AM »
thumbnail_bit.html is ok but
ı cant find $thumb_highslide or something like in Functions.php
are you sure that include in functions.php

couse i download 4images again to look up but i cant find again.

I'm so glad if you help me
sincerely

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: [ReQ] Open image in a new window
« Reply #7 on: December 13, 2007, 06:05:26 AM »
Hi,

hmmm, sorry, i thing, this comes from a mod.
But no problem :wink:

Use in thumbnail-bit.html the standard:
Code: [Select]
{thumbnail}in functions.php
search:
Code: [Select]
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$thumb."</a>"; replace with:
Code: [Select]
      $thumb = "<a href=\"".MEDIA_DIR."".$cat_id."/".$media_file_name."\" target=\"_blank\">".$thumb."</a>";
for window with spec. size:

Use in thumbnail-bit.html this:
Code: [Select]
{thumbnail_openwindow}in functions.php
search:
Code: [Select]
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>"; replace with:
Code: [Select]
      $thumb = "<a href=\"".MEDIA_DIR."".$cat_id."/".$media_file_name."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";

Kurt

Offline }{iJacK

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: [ReQ] Open image in a new window
« Reply #8 on: December 13, 2007, 12:29:22 PM »
Hello Thank You For Helping

Code: [Select]
$thumb = "<a href=\"".MEDIA_DIR."[b]\[/b]".$cat_id."/".$media_file_name."\" target=\"_blank\">".$thumb."</a>";we forget slash. after testing i write it.
Everything is fine

I try to change top.php

Quote
    $register_array['image_rating_'.$i] = (check_permission("auth_viewimage", $top_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\">".format_text($top_list[$i]['image_name'])."</a>" : format_text($top_list[$i]['image_name']);

but i can't. could you have a look?

sorry for my questions but belive me its really important to me.

sincerely