• [Mod] Show original image in new window by clicking on image 4 0 5 1
Currently:  

Author Topic: [Mod] Show original image in new window by clicking on image  (Read 226407 times)

0 Members and 1 Guest are viewing this topic.

Offline Optimum

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: [Mod] Show original image in new window by clicking on image
« Reply #60 on: March 28, 2006, 03:29:01 PM »
V@no, can I use
Code: [Select]
JavaScript:window.close(); instead of your script for closing the window in the "big" template?
I'd like to keep the right-click option.
I've tested it and it works fine, would just like your ok on this, since it's your mod and you know best if this will change anything..

TIA,
Mat

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Show original image in new window by clicking on image
« Reply #61 on: March 28, 2006, 03:51:51 PM »
there is no copyright on this mod, you can change it anyway you like it to ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline askwar

  • Pre-Newbie
  • Posts: 8
    • View Profile
    • My Homepage
Re: [Mod] Show original image in new window by clicking on image
« Reply #62 on: May 01, 2006, 12:09:31 AM »
I'm having problems with the additions V@no made. He wrote:

4. Open details.php file.

4.1. Find:
Code:
$templates_used = 'details,header';
$main_template = 'details';


Hm, in my details.php (from an unmodded 1.7.2), there's no line containing "templates_used":

u-alexander-skwar-name@hetzner ~/web/html $ grep templates_used details.php
u-alexander-skwar-name@hetzner ~/web/html $

Where's the following code to be added?

Code: [Select]
if (isset($HTTP_GET_VARS['big']) || isset($HTTP_POST_VARS['big'])) {
$templates_used = 'big,header';
$main_template = 'big';
}else{
$templates_used = 'details,header';
$main_template = 'details';
}

Could somebody please post the line number?

Or, even better: Could somebody please provide a patch (ie. the output from "diff -u")?

Thanks,
Alexander

Offline askwar

  • Pre-Newbie
  • Posts: 8
    • View Profile
    • My Homepage
Re: [Mod] Show original image in new window by clicking on image
« Reply #63 on: May 01, 2006, 12:24:05 AM »
Hm, reg. my question a few minutes ago: As I wrote, there's no line with:
Code: [Select]
$templates_used = 'details,header';. But, there IS:
Code: [Select]
$main_template = 'details';It is right in the beginning of the file. And there, I replaced it with
Code: [Select]
if (isset($HTTP_GET_VARS['big']) || isset($HTTP_POST_VARS['big'])) {
$main_template = 'big';
}else{
$main_template = 'details';
}

Is that right?

Attached, you can also find a patch against the 4images 1.7.2 files.

Offline Brainwrek

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [Mod] Show original image in new window by clicking on image
« Reply #64 on: July 05, 2006, 03:23:33 PM »
Hey guys... I've been playing around with this quite a bit and LOVE IT!  But I'm curious what would have to be done to make this work on the ecard pages?  I've added the details.html stuff into the postcards templates, and can't get it to work.  Any ideas what I'm missing?

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [Mod] Show original image in new window by clicking on image
« Reply #65 on: August 30, 2006, 12:28:26 PM »
hi! I have installed resized-image mod and i would like install this mod that opne a new window with the original image but i don't know how to save the original image in /big before resized the image. do you know how to do this.. http://www.4homepages.de/forum/index.php?topic=7499.0 here seve the original image in download directory and i doesn't know if that mod works with resized-image . I have 1.7.3 could you help me please? I don't want to save the original image by my hand because my users upload wallpapers and i don't have the original size..
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline live@ct

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
Re: [Mod] Show original image in new window by clicking on image
« Reply #66 on: November 17, 2006, 07:21:22 AM »
this its not working with the MOD Pic Security :(

I think :P because it not show the image
Existen 10 tipos de personas, los que entienden el codigo binario y los que no.

Offline Mackie

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [Mod] Show original image in new window by clicking on image
« Reply #67 on: November 20, 2006, 08:25:47 AM »
Hopefully someone can help me. 

I'm only new to Mods and Plugins for 4images, but this one really appealed to me.  I've replaced and tweaked everything according to the rules, but when I was testing out the gallery, whenever I click on the picture, it opens to a blank screen, with nothing on it.

Example:  http://musearchives.net/recent/details.php?image_id=1

What did I do wrong? 

Offline mversion

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [Mod] Show original image in new window by clicking on image
« Reply #68 on: November 21, 2006, 01:13:01 AM »
EDIT
« Last Edit: November 26, 2006, 11:19:34 PM by mversion »

Offline unite

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [Mod] Show original image in new window by clicking on image
« Reply #69 on: February 15, 2007, 08:14:02 PM »
Great mod I have incorporated this with the another mod I found.
Examle: www.militaryphotos.us

Offline Bogdan

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Press Release
Re: [Mod] Show original image in new window by clicking on image
« Reply #70 on: March 08, 2007, 12:06:16 PM »
Hello

I instaled on 4images 1.7.4  the image resizeing mod and also this one. But, if i click an image in Iexplorer 6 , it doesn't open a new window with original image. In Firefox and Opera , the open big "function" works properly. I dont have pop up block software activated. I tested on 5 - 6 computers and on all, only Iexplorer doesent open the big image.

Also, i tried to instaled this mod http://www.4homepages.de/forum/index.php?topic=7499.0 but some of the codes that need replacing doesn't match the one in my files.

Please, help me... point me to the right topics

Offline egyptsons

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Egypt Sons
Re: [Mod] Show original image in new window by clicking on image
« Reply #71 on: March 24, 2007, 02:35:00 AM »
this was my first mod I ever did...it was really mess...and I was trying make it with as less files to change as possible.
now, when I look at my functions.php and other 4images files, after all the changes I did to them, I'm this much (little) close just  start all over.... 8O
if automatic mod installer will be ever released, it wont be able install anything on my gallery :?

@ Chris, if it's not too much to ask, maybe u could post complete mod here (not just the changes from my post)?

so am geting  confused :?
where is the right code to change  :?: or how it's work  :roll:
Thanx God

Offline darvid

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • KNOWTEBOOK.COM - Community for webdeveloper
Re: [Mod] Show original image in new window by clicking on image
« Reply #72 on: March 25, 2007, 04:02:02 PM »
is there a working demo somewhere? and, yeah, it was asked a bunch of times now, does somebody can post the final version of the mod? it is hard to work through from page 1 to 5.

since there is no demo yet, does it look like http://www.huddletogether.com/projects/lightbox2/ ?

@unit: which second mod u have combined this mod with?

thanks in advance

/* KNOWTEBOOK - BoostYourself community for webdeveloper
/* http://www.knowtebook.com

Integration von Wordpress Blog, PHPBB Forum und 4Images Bildergalerie:
http://www.sebastianscheuer.de/aktuell/integration-von-wordpress-blog-phpbb-forum-und-4images-bildergallerie/
DEMO: http://www.pilotenbilder.de/

Offline Bogdan

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Press Release
Re: [Mod] Show original image in new window by clicking on image
« Reply #73 on: March 25, 2007, 06:51:43 PM »
The final version of the mod is posted on the first post ;)

Offline darvid

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • KNOWTEBOOK.COM - Community for webdeveloper
Re: [Mod] Show original image in new window by clicking on image
« Reply #74 on: March 25, 2007, 07:05:57 PM »
thanks!

u mean only the very first post? it is so confusing, because Vano posts in the 2. post (http://www.4homepages.de/forum/index.php?topic=3236.msg13402#msg13402) more code.
/* KNOWTEBOOK - BoostYourself community for webdeveloper
/* http://www.knowtebook.com

Integration von Wordpress Blog, PHPBB Forum und 4Images Bildergalerie:
http://www.sebastianscheuer.de/aktuell/integration-von-wordpress-blog-phpbb-forum-und-4images-bildergallerie/
DEMO: http://www.pilotenbilder.de/