Problems with til.gif in igames Problems with til.gif in igames
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Problems with til.gif in igames

Started by FischerKing, May 29, 2009, 07:13:51 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

FischerKing

Hi
I am a new member of this board and new to Coppermine. I have some experiense in php, css and so forth. I am doing an overhaul to the igames theme for my father, as he needs a place to put his artphotos, he is running an exhibition of them and he want to promote them on the internet as well. I didnt put his photos yet, when he gets the photos he will do so. I want to remove the movie strip animation from the plays that displays the pictures, as they are disturbing. I have deactivated a part of the code in theme.php and that removed the animation. However, my problem is that in internet explorer there is still the broken picture link and that is pretty ugly! I have tried to deaktivate more code, this one in the include/themes.inc.php file, but then I get an error message! What do I do?
Any help will be appreciated strongly as this problem is driving me crazy!

My page:
http://www.rolfdl.com/cpg1.4.21/cpg14x/displayimage.php?album=random&cat=0&pos=-3

Rolf

phill104

#1
*****edit***** You need to upgrade your version of coppermine from 1.4.21 to the current version, 1.4.24 as there are some security implications if you don't.

Fiddling with include/themes.inc.php is not a good idea. All the functions in that can be manipulated in theme.php. If the code you need to adjust is not in the custom theme then copy the relavent part from the sample theme.

This thread might help.

http://forum.coppermine-gallery.net/index.php/topic,57766.0.html

Here is the relavent code

// HTML template for filmstrip display
$template_film_strip = <<<EOT

       <tr>
        <td valign="top" style="background-image: url({TILE1});"><img src="{TILE1}" alt="" border="0" /></td>
       </tr>
       <tr>
       <td valign="bottom" class="thumbnails" align="center">
         <table width="100%" cellspacing="0" cellpadding="3" border="0">
             <tr>
                <td width="50%"></td>
                {THUMB_STRIP}
                <td width="50%"></td>
             </tr>
         </table>
       </td>
       </tr>
       <tr>
        <td valign="top" style="background-image: url({TILE2});"><img src="{TILE2}" alt="" border="0" /></td>
       </tr>
<!-- BEGIN thumb_cell -->
               <td valign="top" align="center">
                                       <a href="{LINK_TGT}">{THUMB}</a>
                                       {CAPTION}
                                       {ADMIN_MENU}
               </td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
               <td valign="top" align="center" >&nbsp;</td>
<!-- END empty_cell -->

EOT;

It is a mistake to think you can solve any major problems just with potatoes.

FischerKing

Thank you for your advice, however I am still stuck. I dug out the posts from your link, deleted the tile.gif file, and tried to follow the other advices he gave, but same result. I have browsed around the code quite alot during this last week, and it seems to me that most things in the ingame theme is controlled from the ingame theme folder. However, the picture controller seems to be controlled from the outside, somewhere in the main script, I think the purpetrator is the themes.inc.php but I cant be sure. Can you give me any further advice?

About the updating:
Thanks for notifying me about the update, I didnt realize it :)
The homepage on this server is just a testpage, and nobody will use it. When I am happy with the result, I will move it to another server, and make the updates. Any reason why that should be a bad idea?

Thanks for any help you might give me :)

phill104

The version you are running has a security problem. If you want your work destroyed and your server compromised then stick with it. But I am sure you would be happier securing your site. When you have, come back and I will try and help you with your problem.
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

Quote from: FischerKing on June 02, 2009, 09:07:37 PM
The homepage on this server is just a testpage, and nobody will use it. When I am happy with the result, I will move it to another server, and make the updates.
Make sure to tell the hacker who can gain access to the entire domain and plant a backdoor or do all kinds of sinister and malevolent things on the entire server that it's only meant as a test site and that you therefor have been reluctant to upgrade. Additionally, read up http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#theme_create_rename

FischerKing

Lol! I am working on it, didnt know it was that sinister!!

FischerKing

Ok, update done! Im sure you will panic when you see the register_globals enabled on that site, but I will fix it!!
here you go:
http://www.rolfdl.com/cpg1.4.21/cpg14x/displayimage.php?album=1&pos=3

Joachim Müller

Quote from: FischerKing on June 03, 2009, 05:13:17 PM
Im sure you will panic when you see the register_globals enabled on that site
We can't see that - the warning will only display for the admin. I certainly won't panic anyway if others ask for trouble, even if I could see the warning. In fact I couldn't care less.

You haven't done as suggested though:
Quote from: Joachim Müller on June 03, 2009, 08:21:18 AMAdditionally, read up http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#theme_create_rename
You really should do as suggested there.

Back to your initial question:
Quote from: FischerKing on May 29, 2009, 07:13:51 PMI want to remove the movie strip animation from the plays that displays the pictures
You're trying to accomplish what? I can see no animation at all, nor can I see signs of broken links. Create a screenshot of your issue and highlight the place where you have issues. Then attach the screenshot to your posting.


FischerKing

Forgot to mention, I want to remove these movie strips completely

Joachim Müller

Coppermine's config -> Image view -> Show film strip -> set from "Yes" (default) to "No"  ::)

phill104

I believe he wants the filmstrip feature but without the graphics along the edges.

Am I correct FischerKink?
It is a mistake to think you can solve any major problems just with potatoes.

FischerKing

No, I wanted to remove it :) that solved the problem very easily. I believe I couldnt do that before I upgraded my version, i was looking for it.
Thanks for the help

Joachim Müller

Quote from: Joachim Müller on June 04, 2009, 11:25:13 AM
Coppermine's config -> Image view -> Show film strip -> set from "Yes" (default) to "No"  ::)
has been a feature in all versions of cpg1.4.x

phill104

I must have missunderstood right from the start. I thought you just wanted rid of the til.gif graphic.

Glad you have it solved now.
It is a mistake to think you can solve any major problems just with potatoes.

FischerKing

No worries :) I appreciate your help anyway