I installed the module and it worked great over "Page" node types. Then I enabled it for "Classified Ad" module and it doesnt seem to show the video attach menu in classified ad node type. Digging through the problem i've found..

If node name and node type are different, the flash module fails to attach to the node form. For example: it will work fine if node name is "Page" and node type is "page". But it will not work if node name is "Classified Ads" and node type is "ed_classified".

To solve the problem, when i browsed the flashvideo.module code, I see that its always using node name (and not node type). Instead of using node_get_types() type->name , I started using node_get_types() type->type and finally i got it working on my side.

I would like the module developers to verify if I did it correctly or please correct me if im wrong. Because im not a proffesional developer of drupal modules.

Thanks

Comments

travist’s picture

Title: Doesnt work with all node types: Found a reason too. » Thank you! Thank you! Thank you!

You have just solved the most elusive bug to date for my module. I owe you a big one! When I get a chance to really look into what you have done, I will release a new version of FlashVideo with this fix, which should put to rest all major issues with this module. Thanks again!

travist’s picture

Title: Thank you! Thank you! Thank you! » Video upload not showing. Issue relsolved!
travist’s picture

Status: Active » Fixed

Fixed in version 1.6! Thanks adnanshareef!

Anonymous’s picture

Status: Fixed » Closed (fixed)