Escorts Bucks Support Forum

Escorts Bucks Support Forum

You are not logged in.

#1 2009-07-17 22:15:48

xop32
Escorts Bucks Admin

MOD - LIGHT BOX IMAGE POP UP

MOD - LIGHTBOX IMAGE VIEW - time to complete 5 mins

download the light box files
http://www.huddletogether.com/projects/lightbox2/

these are the light box files in zip

js/builder.js
js/effects.js
js/lightbox.js
js/prototype.js
js/scriptaculous.js
css/lightbox.css
images/--various files


our script template directory

template/default

our script images directory

images


step 1)

copy ALL the files from the js directory in the lightbox download to the  template/default/js in the escort script


step 2)

copy the sinlge css file from the css directory in the lightbox download to the  template/default/css in the escort script


step 3)

copy ALL the image files from the images directory in the lightbox download to the images in the escort script (http://www.site.com/images)


step 4)

open the file template/default/main.html (make a backup of the file first)

just before

</head>

ADD

<script type="text/javascript" src="{template_url}/js/prototype.js"></script>
<script type="text/javascript" src="{template_url}/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="{template_url}/js/lightbox.js"></script>



now just above or below

<link rel="stylesheet" href="{template_url}/css/style.css" type="text/css" media="screen" />

ADD

<link rel="stylesheet" href="{template_url}/css/lightbox.css" type="text/css" media="screen" />



step 5)

now add the rel tag to the images we want the pop up  style to be on



OPEN

include/images.inc.php (make a backup of the file first)

FIND
                       
$display .= '<a href="index.php?action=view_listing_image&amp;image_id=' . $imageID . '">';


REPLACE - change  the single above line to the following 2 lines

$bigfile_name = str_replace('thumb_','',$thumb_file_name);
$display .= "<a href=\"$config[listings_view_images_path]/$bigfile_name\" rel=\"lightbox\">";


THATS IT JOB DONE - NICE SIMPLE MOD

i have just added this to the escort directory demo so you can see it working


Escorts Bucks Admin - if you need help or custom work please get in contact http://www.escortsbucks.com/phpBB2/profile.php?id=2

Offline

 

#2 2009-07-21 09:16:32

Brisbane-Escorts
New member

Re: MOD - LIGHT BOX IMAGE POP UP

Hi,
I have just acomplished installation of Escort Directory script and am now trying to configure Lightbox......I did everything as per your instructions here but I get image opening in new window....How do I fix that cose it obviousely works in the demo

BTW are there no additional templates for Escort Directory cose this one looks quite plain and there are some really lovely ones that come with the agency....tweeks, anything smile

Offline

 

#3 2009-07-21 09:25:59

Brisbane-Escorts
New member

Re: MOD - LIGHT BOX IMAGE POP UP

> Brisbane-Escorts wrote:

> Hi,
I have just acomplished installation of Escort Directory script and am now trying to configure Lightbox......I did everything as per your instructions here but I get image opening in new window....How do I fix that cose it obviousely works in the demo

BTW are there no additional templates for Escort Directory cose this one looks quite plain and there are some really lovely ones that come with the agency....tweeks, anything smile

Correction......its only not working when i Select defaultNoregions template... smile and this templates main.html doesn't have </head> tag so I am puzzled now smile  also no next, previous buttons.......should I be using something else if I wanted next and previous buttons function?

Offline

 

#4 2009-11-15 13:37:22

rich
New member

Re: MOD - LIGHT BOX IMAGE POP UP

> xop32 wrote: "THATS IT JOB DONE - NICE SIMPLE MOD - I have just added this to the escort directory demo so you can see it working"

Except somethings missing... I can get lightbox to work, but never get the image navigation (which defeats the purpose of lightbox somewhat). Any ideas on how to get Next / Prev to work?

Offline

 

#5 2010-04-23 18:11:00

miguelinx
New member

Re: MOD - LIGHT BOX IMAGE POP UP

Hi,
How can I see the next and previous buttons function in the lightbox?

Offline

 

#6 2010-07-14 22:06:10

xop32
Escorts Bucks Admin

Re: MOD - LIGHT BOX IMAGE POP UP

since i first posted this the lightbox  script has been updated by the owner of the site listed

it did not have next previous when i posted the addon

i will update it soon


Escorts Bucks Admin - if you need help or custom work please get in contact http://www.escortsbucks.com/phpBB2/profile.php?id=2

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson