Icy Phoenix


Archived phpBB Topics (Styles, Mods, Support) - FAP CUSTOMIZATION - Possible To Get This Effect When Enlarging Pictures?



Fabiomaticus [ Mon 04 Jun, 2007 14:08 ]
Post subject: FAP CUSTOMIZATION - Possible To Get This Effect When Enlarging Pictures?
Hi there, I was wondering if it's possible to get this effect when you enlarge your pictures in the FAP?

Click on the picture in the link to see the effect that I want.


Link:
http://bintang.klgate.com/index.php...id=88&Itemid=28


Artie [ Mon 04 Jun, 2007 15:59 ]
Post subject: Re: Possible To Get This Effect When Enlarging Pictures?
Yes, you can get the script at http://www.huddletogether.com/projects/lightbox2/

Place the code to include the javascript and css files at the top of templates/YOUR TEMPLATES/album_showpage_body.tpl

For the active link:
OPEN album_showpage.php

FIND
Code: [Hide] [Select]
'U_PIC_L1' => ( $picm == false ) ? '' : '<a href="' . append_sid(album_append_uid('album_showpage.' . $phpEx . '?full=true&amp;pic_id=' . $pic_id . $nuffimage_vars)) . '">',

REPLACE WITH
Code: [Hide] [Select]
'U_PIC_L1' => ( $picm == false ) ? '' : '<a href="album_mod/upload/'.$thispic['pic_filename'].'" rel="lightbox" title="'.$thispic['pic_title'].'">',


KugeLSichA [ Mon 04 Jun, 2007 20:18 ]
Post subject: Re: Possible To Get This Effect When Enlarging Pictures?
thx artie,

i like it too and try it later.


TheSteffen [ Mon 04 Jun, 2007 20:34 ]
Post subject: Re: Possible To Get This Effect When Enlarging Pictures?
Great thing,

thanks Artie


KugeLSichA [ Mon 04 Jun, 2007 22:05 ]
Post subject: Re: Possible To Get This Effect When Enlarging Pictures?
Artie have you tested this?

i edited my file and added the lightbox part 1 in my album_showpage.tpl but its not working... i get a error 404 O_o


Artie [ Mon 04 Jun, 2007 22:30 ]
Post subject: Re: Possible To Get This Effect When Enlarging Pictures?
Yes, I've been using it for some time on a standard phpBB board. It was a long time ago, but I don't think I did anything special to get it to work. I'll check when I get a chance.

You may have to adjust the included script paths (Part 1) to point to your lightbox directory.

I haven't tried it on Icy Phoenix .... I'm sure it should work, but you will have to change the U_PIC_L1 path (Part 2) for sure.


Greve [ Tue 05 Jun, 2007 03:23 ]
Post subject: Re: Possible To Get This Effect When Enlarging Pictures?
Hmmm... Nothing comes up when I click the image.
It's just keeps thinking forever and ever.

Any idea what could have gone wrong?

Go here:
http://www.themagiciansknob.com/album_showpage.php?pic_id=36

Ok, I think I know what the problem is... I can't seem to find my uploaded pictures. I can't load a single picture in the browser. It's very wierd and I don't know why.

What I mean by this is that I can't link directly to a picture.

ie.
http://www.themagiciansknob.com/alb...fc416586703.jpg

ie2.
http://www.themagiciansknob.com/alb...7579dd5e538.gif


Fabiomaticus [ Tue 05 Jun, 2007 13:33 ]
Post subject: Re: Possible To Get This Effect When Enlarging Pictures?
Delete htaccess


Fabiomaticus [ Sun 02 Sep, 2007 09:19 ]
Post subject: Re: Possible To Get This Effect When Enlarging Pictures?
Please i have download the lightbox.
There are the folder: images, css, js
where do I have to copy them?

I have add in album_showpage_body.tpl these three lines:
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>

But don't fuction!


Mighty Gorgon [ Sun 02 Sep, 2007 10:27 ]
Post subject: Re: Possible To Get This Effect When Enlarging Pictures?
Fabiomaticus wrote: [View Post]
Please i have download the lightbox.
There are the folder: images, css, js
where do I have to copy them?

I have add in album_showpage_body.tpl these three lines:
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>

But don't fuction!

I guess it is not enough for that lightbox to work.

You should then insert it in thumbnails IMG tags something I guess.


Artie [ Sun 02 Sep, 2007 19:16 ]
Post subject: Re: Possible To Get This Effect When Enlarging Pictures?
Create a folder called lightbox in you phpbb_root.

Add these lines to the template file


Code: [Hide] [Select]
<script type="text/javascript" src="lightbox/js/prototype.js"></script>
<script type="text/javascript" src="lightbox/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="lightbox/js/lightbox.js"></script>
<link rel="stylesheet" href="lightbox/css/lightbox.css" type="text/css" media="screen" />


and edit album_showpage.php as mentioned above.


Tahoebuff [ Sat 08 Dec, 2007 07:20 ]
Post subject: Re: Possible To Get This Effect When Enlarging Pictures?
Artie,

I got these modifications working on my forum album. What if I wanted to choose "View full pic as a popup". What would I have to modify to make the link for the popup point to the lighbox feature instead?

Thanks in advance for any help you can offer...

Tahoebuff


Artie [ Sun 09 Dec, 2007 03:49 ]
Post subject: Re: Possible To Get This Effect When Enlarging Pictures?
Tahoebuff wrote: [View Post]
Artie,

I got these modifications working on my forum album. What if I wanted to choose "View full pic as a popup". What would I have to modify to make the link for the popup point to the lighbox feature instead?

Thanks in advance for any help you can offer...

Tahoebuff


I guess it would be enough to add the include for the .js and .css files to the overall_header.tpl

and you would probably have to make the change below to several album php files. (album.php, album_cat.php, and others)

FIND
Code: [Hide] [Select]
'TARGET_BLANK' => ($album_config['fullpic_popup']) ? 'target="_blank"' : '',

REPLACE WITH
Code: [Hide] [Select]
//'TARGET_BLANK' => ($album_config['fullpic_popup']) ? 'target="_blank"' : '',
'TARGET_BLANK' => ($album_config['fullpic_popup']) ? 'rel="lightbox"' : '',


Tahoebuff [ Sun 09 Dec, 2007 05:38 ]
Post subject: Re: Possible To Get This Effect When Enlarging Pictures?
You guessed right Artie

The only other file I had to make the change in was album_personal.php

Thanks a million...

Tahoebuff




Powered by Icy Phoenix