As usual, thanks a lot!

hi again, it possible that you look at this embeded video tag, its from TED.com (theya have good videos btw):

<!--cut and paste--><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="320" height="285" id="VE_Player" align="middle"><param name="movie" value="http://static.videoegg.com/ted/flash/loader.swf"><PARAM NAME="FlashVars" VALUE="bgColor=FFFFFF&file=http://static.videoegg.com/ted/movies/EDBURTYNSKY_high.flv&autoPlay=false&fullscreenURL=http://static.videoegg.com/ted/flash/fullscreen.html&forcePlay=false&logo=&allowFullscreen=true"><param name="quality" value="high"><param name="allowScriptAccess" value="always"><param name="bgcolor" value="#FFFFFF"><param name="scale" value="noscale"><param name="wmode" value="window"><embed src="http://static.videoegg.com/ted/flash/loader.swf" FlashVars="bgColor=FFFFFF&file=http://static.videoegg.com/ted/movies/EDBURTYNSKY_high.flv&autoPlay=false&fullscreenURL=http://static.videoegg.com/ted/flash/fullscreen.html&forcePlay=false&logo=&allowFullscreen=true" quality="high" allowScriptAccess="always" bgcolor="#FFFFFF" scale="noscale" wmode="window" width="320" height="285" name="VE_Player" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object>


Thx a lot!

http://www.flemflemflem.com/temp/javascript_triggers.js

I dont really remember in wich page the script was called.
This .js also put favicon in front of links automatically, its pretty anoying but its works.

Yep i stay for now with the original parser.php file.

About the js i remember a little mod for punbb who was a little .js who convert automatically pure youtube and googlevideo videos's urls into embeded videos.
In other terms you just copy/past the url on the forum and the when the .js is loaded it convert the link into a video.

Since i have removed this mod because the forum was feeling less responsive in fact.

I can try to find this .js if you want look at it?

http://www.flemflemflem.com/temp/parser_modByDreamW.txt

Ok the new parser.php modified by dreamW generate error on my website now. I have put back the previous parser.php.

Theres some links to the modified parser.php:

http://www.flemflemflem.com/temp/parser_modByDreamW.php

And when i want to upload the modified file back, dreamweaver tell me that it was now dependent to this both .js (DreamW creates them when it moding my parser i think):

http://www.flemflemflem.com/temp/Scripts/AC_ActiveX.js
http://www.flemflemflem.com/temp/Script … Content.js

What can i say but thanks? It's works perferctly and even better with the fullscreen support (point that i didn't notice yesterday :)).
Thanks for explain me the how to, its very kind.

I have tested it on Osx/XP platforms and no problems at all. Anyway dreamweaver send me an alert about the object tag:

http://www.flemflemflem.com/forums/uploads/thumbs/2_screen_1.png

Have i to do something or this alert are common?

see you,

onecut

Ok thx for help no64, for exemple just right now i want to add a "vimeo" embed video.
There's the embed code:

<object type="application/x-shockwave-flash" width="400" height="302" data="http://www.vimeo.com/moogaloop.swf?clip_id=739858&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=">    <param name="quality" value="best" />    <param name="allowfullscreen" value="true" />    <param name="scale" value="showAll" />    <param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=739858&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=" /></object><br /><a href="http://www.vimeo.com/739858/l:embed_739858">Wii Loop Machine 2.0 : two hands!</a> from <a href="http://www.vimeo.com/user157218/l:embed_739858">The Amazing Rolo</a> on <a href="http://vimeo.com/l:embed_739858">Vimeo</a>.

(think is more clear with the italic style than the "code" one)

<object type="application/x-shockwave-flash" width="400" height="302" data="http://www.vimeo.com/moogaloop.swf?clip_id=739858&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=">    <param name="quality" value="best" />    <param name="allowfullscreen" value="true" />    <param name="scale" value="showAll" />    <param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=739858&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=" /></object><br /><a href="http://www.vimeo.com/739858/l:embed_739858">Wii Loop Machine 2.0 : two hands!</a> from <a href="http://www.vimeo.com/user157218/l:embed_739858">The Amazing Rolo</a> on <a href="http://vimeo.com/l:embed_739858">Vimeo</a>.

Just for saying THANKS for the code about gametrailers's videos, it's just what i was looking for!

Is there a rule or something for adding more embed tags? Or you just try and try until it works?

Re koos, i have a little probleme wich is not really a big probleme but looks strange:

Since last modifications we have make on your code (see previous post) my thumbtails images have an insanely crap quality, like theres only 256 color, exemple:

original:

http://www.flemflemflem.com/forums/uploads/2_1327207830__dsc7382p.jpg

http://www.flemflemflem.com/forums/uploads/thumbs/2_1327207830__dsc7382p.jpg

The fact is that i use mostly resized images cause this way they fit good on my website.

Can it be possible to generate one tumb, one resize (ie 500px large) and the original?

Thx lot'

Did you change anything in the uploadimg_config.php file?

It seems the problem is with the following two lines:

         $zoomw = $currwidth/$twidth;
         $zoomh = $currheight/$theight;

if $twidth and $theight is not set in the uploadimg_config.php file - you will get a 'Division by zero' error.

try replacing the above with

         $zoomw = $currwidth/150;
         $zoomh = $currheight/150;

to see if it fixes the problem.

Thanks, my settings was:

$twidth = "500";   // Maximum Width For Thumbnail Images - default = 150
$theight = "auto";   // Maximum Height For Thumbnail Images - default = 150

but now with

$twidth = "500";   // Maximum Width For Thumbnail Images - default = 150
$theight = "1000";   // Maximum Height For Thumbnail Images - default = 150

It seems to works perfect, thx lot''

thx a lot for quick answer.

It seems to works but i get a

"Warning: Division by zero in /home/www/xxxxxxxxxxxxx/web/forums/uploadimg.php on line 250"

message in the same time that i get the links (who are working).

thx, cu, onecut

Hi koos and thx for your project! I was waiting a thing like that a LOT!

I have just a small problem with image with res like :600*900.

When width is > height i got some probleme:

L'image a été envoyée avec succès.

Warning: imagecreate() [function.imagecreate]: Invalid image dimensions in /home/www/61bf61bf2322e29da50b66a34dc41e18/web/forums/uploadimg.php on line 268

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/www/61bf61bf2322e29da50b66a34dc41e18/web/forums/uploadimg.php on line 275

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/www/61bf61bf2322e29da50b66a34dc41e18/web/forums/uploadimg.php on line 275

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/www/61bf61bf2322e29da50b66a34dc41e18/web/forums/uploadimg.php on line 275
....
...

Im playing around  with :

 if ($currwidth < $twidth ) {    // If the Current Image Width is Less than the Thumbnail Width ****

to something like

 if ($currwidth < $currheight ) {    // If the Current Image Width is Less than the Thumbnail Width ****

but as you can imagine it goes nowhere cause i dont know so much about php...
It will be gret if you can help me a little, btw THANKS!