hi,
is it possible to increase the number of preview thumbs?
I've searched everywhere, files and db, but couldnt figure out how to do it.
Printable View
hi,
is it possible to increase the number of preview thumbs?
I've searched everywhere, files and db, but couldnt figure out how to do it.
solved.
I had to modify class.video_thumb.php :)
can you describe what changes you made to the file? Thank you
Bump for this thread. I'd like to find out what you did too!
have a look inside... should have 3 commands.. i would guess copy and paste it to make it 4? not 100 percent as im not at home to see
Do not believe that is correct. There is a for loop in this file. It is simple to produce the extra thumbnails, however I am missing something because I can not get the rotator.js file to recognize them. Whoever can figure this out, I will bring great praise. Thanks! :)Quote:
Originally Posted by Boxerman
My guess is to change the variables in rotator.js to reflect the number of thumbs it needs to change, since that number was changed elsewhere.
ok I will try that tonight. Thank you for the feedbackQuote:
Originally Posted by grynmoors
WhiteNoise or Anyone -
Can you share how the steps required to do this say make it have 5 thumbs?
Thanks!!
MTOD
Did you look there ?Quote:
I had to modify class.video_thumb.php
Check these pieces of code:
Code:$imagewidth = $imagedata[0];
$imageheight = $imagedata[1];
$imagetype = $imagedata[2];
andCode:unlink($thumb_folder . '/' . $t_info['vid'] . ".jpg");
unlink($thumb_folder . '/1_' . $t_info['vid'] . ".jpg");
unlink($thumb_folder . '/2_' . $t_info['vid'] . ".jpg");
unlink($thumb_folder . '/3_' . $t_info['vid'] . ".jpg");
I'm wondering if you addCode:} elseif ($imagetype == 3) {
andCode:$imagetype = $imagedata[3];
$imagetype = $imagedata[4];
and change the elseif toCode:unlink($thumb_folder . '/4_' . $t_info['vid'] . ".jpg");
unlink($thumb_folder . '/5_' . $t_info['vid'] . ".jpg");
and check around for anything else with "3" in it....Code:} elseif ($imagetype == 5) {
That how you did it whitenoise?
grynmoors -
I did try the code - Thank You, but here is what happened - no extra Thumbs were created and the current thumbs became black with a 1k file size.
Any other suggestions - I am happy to test any code.
--MTOD
Hmmm...well, I'm at a loss...guess we'll have to wait for Whitenoise to visit the forums again and tell us how s/he did it if someone else doesn't post first...but since s/he mentioned
I'd keep looking there to see what else might need tweaking.Quote:
I had to modify class.video_thumb.php
Maybe if the only thing you change is this:
by adding below itCode:unlink($thumb_folder . '/3_' . $t_info['vid'] . ".jpg");
Code:unlink($thumb_folder . '/4_' . $t_info['vid'] . ".jpg");
unlink($thumb_folder . '/5_' . $t_info['vid'] . ".jpg");
I really don't want to sound rude but I have tried all of those things grynmoors previously. I am a little ashamed I can't figure it out either. :? I hope that you can figure it out. I spent alot of time trying to figure this one out. Thanks for your help. :DQuote:
Originally Posted by grynmoors
No, not rude at all...it's just that when you said you 'tried the code' you didn't specify what, exactly, you tried which failed (since I suggested more than one thing in my first post, I assumed you tried all of them at the same time...the second post was suggesting trying only changing the one thing).
Yeah, I hope someone posts too 'cos I think this is a very neat idea.
Ok thanks for not taking any offense. I suppose should have said what I tried. I know that I duplicated the unlink function and played around with it as much as I thought might resolve the issue but without success. I can not remember everything which I tried. But my thoughts are that there is another file over line of code we are over looking and that whitenoise didn't give us the rest of the files he changed? I dunno Obviously I am missing it. I really appreciate your help on this one.
Does anyone have any updates on this?? Can;t wait fro the kids to go back to school so I can find time to tinker on my site more.
--MTOD
Well..since WhiteNoise has the key to this, maybe email him/her since his/her email is in his/her profile...let us know if you get a response.