Chambers Posted February 19, 2009 Report Share Posted February 19, 2009 I'm working on integrating a DynamicDrive Lightbox Image Viewer to my TNG site. My goal is to open this lightbox, rather than a page to show images. I have all the lightbox script, but need help in locating a TNG script source...In showmedia.php about line 254 I believe is the script that produces the "View This Item..." button.The script is written as showMediaSource ($imgrow);Can someone tell me where is the target of showMediaSource (what page it's located on)?I believe the showMediaSource produces <form style="margin:0px"><input type="button" value="View this item..." onclick="window.open('photos/Photo_Name_Here');"/></form>which is where I need to integrate the lightbox script.Any help or suggestions are appreciated. Thanks!------------------------------------------------------------------------------------EDIT -- FOLLOWUPI have located the showMediaSource script in the showmedialib.php file, line 354. I've integrated and modified the echo script and the lightbox does work. However, and unfortunately, TNG also uses 2 similar files (prototype.js and scriptaculous.js) that interferes with using the DynamicDrive Lightbox -- the lightbox successfully opens the media, but also shows the TNG navigation tabs floating.Thus, I now need to either weed out the script to eliminate the tabs scripts from the lightbox scripts, or else use a different lightbox source script (which will probably be simpler). Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted February 20, 2009 Report Share Posted February 20, 2009 I'm working on integrating a DynamicDrive Lightbox Image Viewer to my TNG site. My goal is to open this lightbox, rather than a page to show images. I have all the lightbox script, but need help in locating a TNG script source...In showmedia.php about line 254 I believe is the script that produces the "View This Item..." button.The script is written as showMediaSource ($imgrow);Can someone tell me where is the target of showMediaSource (what page it's located on)?I believe the showMediaSource produces <form style="margin:0px"><input type="button" value="View this item..." onclick="window.open('photos/Photo_Name_Here');"/></form>which is where I need to integrate the lightbox script.Any help or suggestions are appreciated. Thanks!------------------------------------------------------------------------------------EDIT -- FOLLOWUPI have located the showMediaSource script in the showmedialib.php file, line 354. I've integrated and modified the echo script and the lightbox does work. However, and unfortunately, TNG also uses 2 similar files (prototype.js and scriptaculous.js) that interferes with using the DynamicDrive Lightbox -- the lightbox successfully opens the media, but also shows the TNG navigation tabs floating.Thus, I now need to either weed out the script to eliminate the tabs scripts from the lightbox scripts, or else use a different lightbox source script (which will probably be simpler).I suspect the prototype.js and scriptaculous.js and that used by DynamicDrive Lightbox are the same scripts that TNG uses. Do you have a URL link to your site? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.