OK got it to work !!
for people using Macromedia MX please do the following:
in the
Configuration folder edit file
Extensions.txtreplace first line:
[]HTM,HTML,SHTM,SHTML,
with:
[]TMPL,HTM,HTML,SHTM,SHTML,
!!Carefull!!! tried adding mine first to the end and it wouldn't work.
If you are in a multiuser environment make sure you edit the file inside your personnal folderNext in the
Configuration\DocumentTypes folder open the
MMDocumentTypes.xml file.
Not doing this will prevent using the WYSIWYG feature and you will only be able to use the code editor.
You need to add the TMPL extension to one of the predifined styles, I added it to the HTML one since thats what mostly in the file

replace:
[]<documenttype id="HTML" internaltype="HTML" winfileextension="htm,html,shtml,shtm,stm,lasso,xhtml" macfileextension="html,htm,shtml,shtm,lasso,xhtml"
with:
[]<documenttype id="HTML" internaltype="HTML" winfileextension="htm,html,shtml,shtm,stm,lasso,xhtml,tmpl" macfileextension="html,htm,shtml,shtm,lasso,xhtml,tmpl"
next we need to disable the PHP cloaking function so go to the
Configuration\ThirdPartyTags dir and open the file named
Tags.xml (make a backup first). Delete the whole paragraph under []<!-- PHP -->
There you go, you can now edit your UBB.threads template in dreamweaver MX !