Jump to content
TNG Community

TNG mod media-1_image_viewer_v1.8.1a.cfg


KDK

Recommended Posts

I tried the newly posted media-1_image_viewer_v1.8.1a.cfg. The Mod_Manager log follows. Are the identified issues something that can be resolved in the .cfg or do I need to grant permissions?

TNG Mod Management - Release V2.0

This Mod Manager is designed to manage mods coded for use with this Manager.

For support, check the distribution site, release date May 18, 2009

Confirmed request to install TNG mod media-1_image_viewer_v1.8.1a.cfg.

Section 1: showmedia.php

Location 1: target code is:

[[tng_header( $description, $flags );]]

Mod code inserted.

Rewrite target file /home/kincaboodle/www/www/showmedia.php

File /home/kincaboodle/www/www/showmedia.php written.

Section 2: showmedialib.php

Location 1: target code is:

[[echo "<img src=\"$mediasrc\" border=\"0\" $widthstr $heightstr $mapstr alt=\"$description\" />\n";]]

Mod code replaced.

Location 2: target code is:

[[global $text, $usefolder, $size, $imagetypes, $htmldocs, $histories_url, $cms, $tngconfig, $videotypes, $recordingtypes, $description;]]

Mod code inserted.

Have to create file extensions/imageviewer.php

Have to copy file ./mod_folder/img_utils.js to /home/kincaboodle/www/www/img_utils.js

Warning: copy(./mod_folder/img_utils.js) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_utils.js, [error Resource id #56]

Check permissions, must be writeable.

Have to copy file ./mod_folder/img_break.png to /home/kincaboodle/www/www/img_break.png

Warning: copy(./mod_folder/img_break.png) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_break.png, [error Resource id #56]

Check permissions, must be writeable.

Have to copy file ./mod_folder/img_close.gif to /home/kincaboodle/www/www/img_close.gif

Warning: copy(./mod_folder/img_close.gif) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_close.gif, [error Resource id #56]

Check permissions, must be writeable.

Have to copy file ./mod_folder/img_mag.gif to /home/kincaboodle/www/www/img_mag.gif

Warning: copy(./mod_folder/img_mag.gif) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_mag.gif, [error Resource id #56]

Check permissions, must be writeable.

Have to copy file ./mod_folder/img_magdown.gif to /home/kincaboodle/www/www/img_magdown.gif

Warning: copy(./mod_folder/img_magdown.gif) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_magdown.gif, [error Resource id #56]

Check permissions, must be writeable.

Have to copy file ./mod_folder/img_magdownoff.gif to /home/kincaboodle/www/www/img_magdownoff.gif

Warning: copy(./mod_folder/img_magdownoff.gif) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_magdownoff.gif, [error Resource id #56]

Check permissions, must be writeable.

Have to copy file ./mod_folder/img_magoff.gif to /home/kincaboodle/www/www/img_magoff.gif

Warning: copy(./mod_folder/img_magoff.gif) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_magoff.gif, [error Resource id #56]

Check permissions, must be writeable.

Have to copy file ./mod_folder/img_magup.gif to /home/kincaboodle/www/www/img_magup.gif

Warning: copy(./mod_folder/img_magup.gif) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_magup.gif, [error Resource id #56]

Check permissions, must be writeable.

Have to copy file ./mod_folder/img_magupoff.gif to /home/kincaboodle/www/www/img_magupoff.gif

Warning: copy(./mod_folder/img_magupoff.gif) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_magupoff.gif, [error Resource id #56]

Check permissions, must be writeable.

Have to copy file ./mod_folder/img_newwin.php to /home/kincaboodle/www/www/img_newwin.php

Warning: copy(./mod_folder/img_newwin.php) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_newwin.php, [error Resource id #56]

Check permissions, must be writeable.

Have to copy file ./mod_folder/img_select.gif to /home/kincaboodle/www/www/img_select.gif

Warning: copy(./mod_folder/img_select.gif) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_select.gif, [error Resource id #56]

Check permissions, must be writeable.

Have to copy file ./mod_folder/img_shadow.png to /home/kincaboodle/www/www/img_shadow.png

Warning: copy(./mod_folder/img_shadow.png) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_shadow.png, [error Resource id #56]

Check permissions, must be writeable.

Have to copy file ./mod_folder/img_viewer.css to /home/kincaboodle/www/www/img_viewer.css

Warning: copy(./mod_folder/img_viewer.css) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_viewer.css, [error Resource id #56]

Check permissions, must be writeable.

Have to copy file ./mod_folder/img_viewer.js to /home/kincaboodle/www/www/img_viewer.js

Warning: copy(./mod_folder/img_viewer.js) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_viewer.js, [error Resource id #56]

Check permissions, must be writeable.

Have to copy file ./mod_folder/img_viewer.php to /home/kincaboodle/www/www/img_viewer.php

Warning: copy(./mod_folder/img_viewer.php) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_viewer.php, [error Resource id #56]

Check permissions, must be writeable.

Rewrite target file /home/kincaboodle/www/www/showmedialib.php

File /home/kincaboodle/www/www/showmedialib.php written.

Total Errors: 15

Total new files: 1, Created:1

media-1_image_viewer_v1.8.1a.cfg Not Installed due to the following errors:

img_utils.js:is not writable, check permissions

img_break.png:is not writable, check permissions

img_close.gif:is not writable, check permissions

img_mag.gif:is not writable, check permissions

img_magdown.gif:is not writable, check permissions

img_magdownoff.gif:is not writable, check permissions

img_magoff.gif:is not writable, check permissions

img_magup.gif:is not writable, check permissions

img_magupoff.gif:is not writable, check permissions

img_newwin.php:is not writable, check permissions

img_select.gif:is not writable, check permissions

img_shadow.png:is not writable, check permissions

img_viewer.css:is not writable, check permissions

img_viewer.js:is not writable, check permissions

img_viewer.php:is not writable, check permissions

Link to comment
Share on other sites

I tried the newly posted media-1_image_viewer_v1.8.1a.cfg. The Mod_Manager log follows. Are the identified issues something that can be resolved in the .cfg or do I need to grant permissions?

TNG Mod Management - Release V2.0

This Mod Manager is designed to manage mods coded for use with this Manager.

For support, check the distribution site, release date May 18, 2009

Confirmed request to install TNG mod media-1_image_viewer_v1.8.1a.cfg.

Section 1: showmedia.php

Location 1: target code is:

[[tng_header( $description, $flags );]]

Mod code inserted.

Rewrite target file /home/kincaboodle/www/www/showmedia.php

File /home/kincaboodle/www/www/showmedia.php written.

Section 2: showmedialib.php

Location 1: target code is:

[[echo "<img src=\"$mediasrc\" border=\"0\" $widthstr $heightstr $mapstr alt=\"$description\" />\n";]]

Mod code replaced.

Location 2: target code is:

[[global $text, $usefolder, $size, $imagetypes, $htmldocs, $histories_url, $cms, $tngconfig, $videotypes, $recordingtypes, $description;]]

Mod code inserted.

Have to create file extensions/imageviewer.php

Have to copy file ./mod_folder/img_utils.js to /home/kincaboodle/www/www/img_utils.js

Warning: copy(./mod_folder/img_utils.js) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

Unable to copy to /home/kincaboodle/www/www/img_utils.js, [error Resource id #56]

Check permissions, must be writeable.

Have to copy file ./mod_folder/img_break.png to /home/kincaboodle/www/www/img_break.png

Warning: copy(./mod_folder/img_break.png) [function.copy]: failed to open stream: No such file or directory in /home/kincaboodle/www/www/admin/manage_mods.php on line 603

...

Total Errors: 15

Total new files: 1, Created:1

media-1_image_viewer_v1.8.1a.cfg Not Installed due to the following errors:

img_utils.js:is not writable, check permissions

...

If you follow the instructions in the Automated Install for the Image Viewer, it should work.

Step 3 of the instructions are

Unzip the downloaded img_viewer.zip file in the admin/mod_folder directory which is where the config file expects to find the different files

The config file expects to find all needed files in the admin/mod_folder so it can copy them to the correct location.

Thanks for including the Mod Manager log. I bolded the parts of the log to indicate where the failure is identified.

Ken

Link to comment
Share on other sites

Hi Ken,

Thanks for the quick reply. I'd like to claim it was the lateness of the hour of my posting. Alack and alass, it's earlier and I'm still a bit confused.

Because this install is called "Automated", I evidently erroneously believed that the manual file changes no longer needed to be made. I unzipped Img_viewer_V181(2).zip and copied the file - the only content of the zip was the .cfg to admin/mod_manager (I am very familiar with the use of admin/mod_manager, having installed a number of very useful mods created by the TNG techie community).

So, I will return to the top of the "Automated Install" and do the manual changes in steps 1 and 2, including unzipping Jerome's version (more concise), copying the several files to admin/mod_manager. I will proceed to Step 3 which will involve copying the one .cfg file to admin/mod_manager. I will login as admin, select mod_manager and run the install script.

Two things might be helpful clarifications in the instructions:

1. Find a way to name the downloads in such a way that they are clearly different downloads (step 1, step 3).

2. Don't call the set of steps "Automated Install" when it contains manual steps.

Thanks for your help!

Sincerely,

Katie

Link to comment
Share on other sites

Hi Ken,

Thanks for the quick reply. I'd like to claim it was the lateness of the hour of my posting. Alack and alass, it's earlier and I'm still a bit confused.

Because this install is called "Automated", I evidently erroneously believed that the manual file changes no longer needed to be made. I unzipped Img_viewer_V181(2).zip and copied the file - the only content of the zip was the .cfg to admin/mod_manager (I am very familiar with the use of admin/mod_manager, having installed a number of very useful mods created by the TNG techie community).

So, I will return to the top of the "Automated Install" and do the manual changes in steps 1 and 2, including unzipping Jerome's version (more concise), copying the several files to admin/mod_manager. I will proceed to Step 3 which will involve copying the one .cfg file to admin/mod_manager. I will login as admin, select mod_manager and run the install script.

Two things might be helpful clarifications in the instructions:

1. Find a way to name the downloads in such a way that they are clearly different downloads (step 1, step 3).

2. Don't call the set of steps "Automated Install" when it contains manual steps.

Thanks for your help!

Sincerely,

Katie

Katie,

Manual file changes no longer need to be made to the TNG files when you use the Mod Manager config files.

That is not to say that certain mods will not require manual steps. In the case of the Image Viewer, I do not own the code for that mod, so I just created the Mod Manager config file to make it easier to install it. As a result I did not include the code itself within the config file, like I did for the mods that I own.

Also since there are some of us who only want the Image Viewer for certain media types, you may need to edit the config file itself for the install option.

It is expected that users will read the TNG Wiki articles related to the mods.

Cheers,

Ken

Link to comment
Share on other sites

Well, Ken. I seem to have hit a raw nerve or something. If so, it is unintended.

I do and did read TNGWiki, and generally I understand what I read. (I have 35+ years in information systems).

As I stated, I found the instructions confusing. Having majored in English and taught English composition, I have some credibility when it comes to offering some suggestions for clarity. I don't mind if you choose to ignore the suggestions. I just hope you didn't and don't feel offended. The TNG Community whether here in the Forum or in Wiki is a valued asset, and you are a treasured member of it.

Peace and joy to you and all the community members in this wonderful season.

Sincerely,

Katie

Link to comment
Share on other sites

Well, Ken. I seem to have hit a raw nerve or something. If so, it is unintended.

I do and did read TNGWiki, and generally I understand what I read. (I have 35+ years in information systems).

As I stated, I found the instructions confusing. Having majored in English and taught English composition, I have some credibility when it comes to offering some suggestions for clarity. I don't mind if you choose to ignore the suggestions. I just hope you didn't and don't feel offended. The TNG Community whether here in the Forum or in Wiki is a valued asset, and you are a treasured member of it.

Peace and joy to you and all the community members in this wonderful season.

Sincerely,

Katie

Katie,

You are welcomed to edit the TNG Wiki articles to make them more readable. Any TNG User with a wiki User ID is welcomed to contribute.

The Automated Install in most cases works, but in the case of the Image Viewer Mod where I am not the mod author or supporter, I did not feel that I should include Bret Rumsey's code directly within the config file.

Hope you have a wonderful holiday and will consider making the contributions directly in the wiki, especially i there are areas where you consider the instructions confusing.

Ken

Link to comment
Share on other sites

Rather than start a new thread, I'll just tack on this Image Viewer-related post. I just installed Image Viewer using the Mod Manager and it works fine except that when the image doesn't actually exist, the viewer hangs with the "waiting" message. I'm unacquainted with php so I'm not sure how to incorporate a timeout, but doesn't it seem reasonable that one should be added? (Newbie question.)

Link to comment
Share on other sites

Rather than start a new thread, I'll just tack on this Image Viewer-related post. I just installed Image Viewer using the Mod Manager and it works fine except that when the image doesn't actually exist, the viewer hangs with the "waiting" message. I'm unacquainted with php so I'm not sure how to incorporate a timeout, but doesn't it seem reasonable that one should be added? (Newbie question.)

It does not seem like the mod developer - Bret Rumsey has been monitoring the forum in the last several months. He also has not answered several emails I sent him on what I perceived as other problems.

It is true that if the image does not exist, the Image Viewer remains in a "waiting message" - unfortunately the code is a combination of javascript and php, so someone else will need to provide a solution.

P.S. It is often best to start a New Topic.

Link to comment
Share on other sites

It does not seem like the mod developer - Bret Rumsey has been monitoring the forum in the last several months. He also has not answered several emails I sent him on what I perceived as other problems.

It is true that if the image does not exist, the Image Viewer remains in a "waiting message" - unfortunately the code is a combination of javascript and php, so someone else will need to provide a solution.

P.S. It is often best to start a New Topic.

Thanks.

I see another problem with the Image Viewer: The lower part of my images is being cropped and to see the entire image I need to zoom out to 75%. At 100% (i.e. no zoom) the lower part of images is not shown. For me this is especially significant because I have a title at the bottom and it doesn't get displayed.

Link to comment
Share on other sites

Thanks.

I see another problem with the Image Viewer: The lower part of my images is being cropped and to see the entire image I need to zoom out to 75%. At 100% (i.e. no zoom) the lower part of images is not shown. For me this is especially significant because I have a title at the bottom and it doesn't get displayed.

That is not a problem. That is the way the Image Viewer works. It displays 600px of height and you need to click within the image and drag it to see the rest of the Image.

If you want to see 100% of the image, the you should use the Mod Manager Remove capability and uninstall the Image Viewer.

Link to comment
Share on other sites

Thanks.

I see another problem with the Image Viewer: The lower part of my images is being cropped and to see the entire image I need to zoom out to 75%. At 100% (i.e. no zoom) the lower part of images is not shown. For me this is especially significant because I have a title at the bottom and it doesn't get displayed.

There is an instruction within the image viewer config file telling you how to change this and have it always display the full height of an image. You will need to edit the file 'extensions/imageviewer.php' (this is a new file that is created when you install the mod.)

At the very top of that file, the instructions read 'If you want to dynamically set the height of the image change onLoad="calcHeight(600)" to onLoad="calcHeight(1)" in the following section that you choose to implement the Image Viewer.'

In the very next line of code (a very long line starting with 'echo "<span id=\"msg\"...'), you will find that snippet of code about three-quarters of the way down the line. Simply change the '600' to '1', save the file and that will fix your problem, while still permitting you to use the image viewer.

I know it's not obvious without a little editing, but it's feasible and hopefully in the future it will be easier to implement without needing to manually edit files.

-Steve

Link to comment
Share on other sites

There is an instruction within the image viewer config file telling you how to change this and have it always display the full height of an image. You will need to edit the file 'extensions/imageviewer.php' (this is a new file that is created when you install the mod.)

At the very top of that file, the instructions read 'If you want to dynamically set the height of the image change onLoad="calcHeight(600)" to onLoad="calcHeight(1)" in the following section that you choose to implement the Image Viewer.'

In the very next line of code (a very long line starting with 'echo "<span id=\"msg\"...'), you will find that snippet of code about three-quarters of the way down the line. Simply change the '600' to '1', save the file and that will fix your problem, while still permitting you to use the image viewer.

I know it's not obvious without a little editing, but it's feasible and hopefully in the future it will be easier to implement without needing to manually edit files.

-Steve

Thanks for pointing this out.

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