Changing a Mod to display certain file type? Changing a Mod to display certain file type?
 

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

Changing a Mod to display certain file type?

Started by capecodgal, July 07, 2007, 04:40:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

capecodgal

I apologize in advance if I shouldn't be asking this here... but I am stumped on this and was hoping some one could point me in the right direction of how to do this or what forum I should be asking this in...

I am using 2 different mods for calling of latest/ random images on 1 domain but with 2 seperate installs of coppermine. So in install #1 I am using the SSI.php random/latest mod and in install #2 I am using the madpierss script to call the latest uploads from that install since I could not use the SSI script again (produces an error I couldn't seem to work out)

Now here is my issue: it all appeared to be working beautifully except install #2 is a video archive so I am using zip files and then jpg as thumb images so when the latest uploads is called and it happens to be a zip there is no image displayed and I get a red x instead. The problem is the last files uploaded were zips and not the jpg so that is what it displays... I looked through the code and did not see anywhere to specifiy a file type.

If anyone else is using the magpierss to display latest images... could you tell me how and where I can change the script to only show jpg files? It would be greatly appreciated Thanks!

Nibbler

Would be helpful to provide a link to the mod and a link to your page.

capecodgal

#2
Okies- here is the main page of the site (excuse the mess going through a revamp and currently installing Stramm's mod to resize the thumbs)

www.hopeless-romantic.org  (notice the left column latest image uploads, random image uploads, and latest video uploads)

The first 2 latest and random are using this mod:  include script for CPG (c) 2003 GauGau V1.4

I tried using this in the second install for videos but it produces an error that it has already called the file within the other install.... finally I gave up and used the older mod (below)

The Latest Videos is the one with the issue and it uses this mod:   
Coppermine Photo Gallery - RSS Feed       
MagpieRSS: a simple RSS integration tool
rss_fetch.inc, a simple functional interface to fetching and parsing RSS files, via the function fetch_rss()

So you see how for the second mod it is displaying the red X instead of images? Well this is because the latest 6 uploads were zip files (I checked the source code to be sure) which makes perfect sense as to why it doesn't display. So my next line of thought was to adjust the mod to only show jpg files or ignore the zip files completely. Since the image is only the thumb_ file the link will bring the visitor to the same place so I think I am in the right direction of trying to change the mod to only show certain file types.



capecodgal

sorry I have been looking for the original posts for the mods and can't find them.... I can post the contents of the file if it will help?

Joachim Müller

The ssi mod you're refering to goes completely, utterly unsupported (as in "no support at all"), as suggested in the announcement thread of that mod. This means that there's no support for this mod at all: neither within the (locked) announcement thread nor in individual threads such as this one. You're on your own with this.
I'd appreciate it if you didn't post my email address on a public board in the future - I edited out the corresponding section in your posting.
I strongly recommend not using the ssi mod any longer, but to look at the much more powerfull (and better coded) cpmFtech instead.

capecodgal

Thank you for the information and I appologize, I didn't even realized I copied that part, just meant to get the name of the mod. I understand there is no support for your mod, which is why I was not asking to change that one. I was asking to change mod #2 (magpierss) to allow a specific file type only. The only reason I mentioned mod #1 was incase it had any impact on what I was trying to do. All I am looking for is a little direction. Is there no support for the second mod either? Like I said I searched but didn't see that specific mod come up... is it out dated then?

Nibbler

If it's this one, then yes - http://forum.coppermine-gallery.net/index.php?topic=11081.0 it is unsupported. Use something more recent, like cpmFetch.

capecodgal