Most decent forum and gallery scripts are written in PHP and require some sort of database. Not all are like that, but the majority are. Therefore you should choose a hosting plan that has the items you require.
Also, there is no such thing as "unlimited space" and "unlimited bandwidth." Any host who advertises that is lying through their teeth.