View Full Version : Possible Temp Fix For Images?
mike390
11-28-2006, 02:48 PM
I was thinking of mabe inside gamescript when it pulls the feed in and there are missing images, would it be possible for some php code to be used so that if the image doesnt exist it will display another default image?
blank
11-28-2006, 03:59 PM
yes, you're a GS user? A mod will have to be posted for that
Anywhere a thumbnail is put you should be able to find a query above it someplace. Find the query and a little below it put this:
$filesize = @filesize("images/".$thumb);
Then when its putting the thumb you'll have to
do something like this:
<img src="images/<?php if ($filesize ==0){ echo "reel.gif";} else { echo"$thumb"; }?>"
this isn't exact I know, BUT its a quick pull from my system... GS should have basically the same.
mike390
11-28-2006, 04:20 PM
i was trying it out on the free version, but it would b around the same thing i suppose, idk i was thinkin of mabe buying gs in the future when ii get enuff money so this mod will come in handy
blank
11-28-2006, 04:27 PM
oh, if you don't have GS already then just snag the beta I'm working on... does all the important things GS does + some additions. Basically I want to make it just as good as any of the paid scripts only having it open and hopefully get an active mod community in place.
mike390
11-28-2006, 04:39 PM
seriously? that would b pretty sweet, how woul di get it?
blank
11-28-2006, 06:17 PM
http://www.fastfreemedia.com/forums/showthread.php?t=67
its free and you're already in the beta crew so just report bugs as you find them and I'll do what I can to get it all patched up ;)
mike390
11-28-2006, 08:24 PM
oh tru, awsome i forgot about that its all the way at the bottom XD, ill get started setting it up now
blank
11-28-2006, 08:35 PM
LOL yeah, I'm trying to code some more tools for the "global" type stuff right now for everybody using the DB to be able to use instead of working on the new script right now. I've found that beta to be pretty solid though so I'll have to write an upgrade script so that people using V.6 can update to the beta. I'll try to get that done right after I build something for reporting and fixing dead movies.
mike390
11-28-2006, 08:44 PM
alright sounds like a plan, 1.0 does look pretty good too
blank
11-28-2006, 09:38 PM
I just added this to V.61 of the free script that I'll be uploading before I go to bed ;) trying to roundup ALL known bugs and get it into this release too.
vBulletin® v3.7.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.