Jump to content
TNG Community

showmedia.php help


Chambers

Recommended Posts

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 -- FOLLOWUP

I 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).

Link to comment
Share on other sites

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 -- FOLLOWUP

I 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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...