php forum
php mysql forum
php mysql smarty
 
Topic Options
#215547 - 04/25/02 09:05 PM Edit the Templates in Dreamweaver
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.

   Edit the Templates in Dreamweaver to Del.icio.us Add to del.icio.us
  Digg Edit the Templates in Dreamweaver Digg it
Here are a few tricks to be able to edit the templates in Dreamweaver 4: <br /> <br /> <br />Identify the TMPL extension: <br /> - Go to your dreamweaver configuration folder, [:blue]...\Dreamweaver 4\Configuration[/] and open [:blue]Extensions.txt[/] <br /> - In the first line, add anywhere[:red] TMPL [/], but before [:green] :All [/] example: <br /> [:#666666]HTM,HTML,SHTM,SHTML,STM,SSI,JS,XML,LBI,DWT,ASP,CFM,CFML,TXT,PHP,PHP3,PHP4,LASSO,JSP, [:red] TMPL [/] :All Documents [/] <br /> - Then, in the next lines, add the following line: <br /> [:green] TMPL:UBBThreads Templates [/] <br /> <br />Remove the PHP Tags <br />Dreamweaver converts all that starts with [:red] <? [/] into a tag icon. But ubbthreads templates are ALL inside these tags. So if you open it, you dont see ANYTHING. Most people dont edit PHP with Dreamweaver, I sure dont. So you can safely remove this tag option by: <br /> - Go to your [:blue] \Dreamweaver 4\Configuration\ThirdPartyTags [/] folder. <br />Rename [:green] php.xml [/] to [:red] php.xml.bak [/] (so you can easily go back to your default installation if you dont like it). <br />Restart Dreamweaver to see changes. Now, you should be able to view ubbthreads templates with no problem inside Dreamweaver. <br /> <br />Make ubbthread Tags <br />This is one suggestion you will want to do once in a while, going back and forward to enable/dissable this. It will make the tables much easier to lookat , and therefore to design with. But it doesnt allow you to see the text. So remember, you will want to be switching this "on and off". <br /> - Go to your [:blue] \Dreamweaver 4\Configuration\ThirdPartyTags [/] folder. <br />Create a new file, name it [:red] ubb.xml [/] <br /> - Insert the following line: <br /> [:green] <tagspec tag_name="ubb" start_string="{$" end_string="']}" detect_in_attribute="true" icon="UBB.gif" icon_width="15" icon_height="15"></tagspec> <br /> [/] <br />Save an icon such as this one []/forum/images/icons/grin.gif[/] into that same folder, and name it UBB.gif <br />Done. Restart Dreamweaver to see changes. <br />Remember, for design purposes, this last trick you will want to use at some times, not always. So when not, just rename it to [:green] ubb.xml.bak [/]
_________________________
Mateo Byler
CruceDeCaminos.com

Top
#215548 - 04/25/02 09:29 PM Re: Edit the Templates in Dreamweaver [Re: D_Wolfwood]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25432
Loc: Texas
Thanks MTO, should be very helpful []/forum/images/icons/smile.gif[/]
_________________________
- Allen wavey
- What Drives You?

Top
#215549 - 04/26/02 10:34 AM Re: Edit the Templates in Dreamweaver [Re: D_Wolfwood]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Very cool MTO - going to set this up when I get home.

Top
#215550 - 06/09/02 07:32 AM Re: Edit the Templates in Dreamweaver [Re: D_Wolfwood]
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
In Dreamweaver MX I am only able to get the code view and not the design view, any idea on what I should do ?
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#215551 - 06/09/02 12:32 PM Re: Edit the Templates in Dreamweaver [Re: egor]
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
I havent tested Dreamweaver MX yet. In fact, I didnt even know it existed till I read your post. <img src="/forum/images/icons/grin.gif" alt="" />
_________________________
Mateo Byler
CruceDeCaminos.com

Top
#215552 - 06/09/02 12:36 PM Re: Edit the Templates in Dreamweaver [Re: D_Wolfwood]
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
well if you could give it a try I would apreciate it <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#215553 - 06/12/02 03:30 PM Re: Edit the Templates in Dreamweaver [Re: egor]
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
OK got it to work !!<br /><br />for people using Macromedia MX please do the following:<br /><br />in the Configuration folder edit file Extensions.txt<br />replace first line:<br />[]HTM,HTML,SHTM,SHTML,<hr /></blockquote><br />with:<br />[]TMPL,HTM,HTML,SHTM,SHTML,<hr /></blockquote><br />!!Carefull!!! tried adding mine first to the end and it wouldn't work.<br />If you are in a multiuser environment make sure you edit the file inside your personnal folder<br /><br />Next in the Configuration\DocumentTypes folder open the MMDocumentTypes.xml file.<br /><br />Not doing this will prevent using the WYSIWYG feature and you will only be able to use the code editor.<br /><br />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 <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />replace:<br />[]<documenttype id="HTML" internaltype="HTML" winfileextension="htm,html,shtml,shtm,stm,lasso,xhtml" macfileextension="html,htm,shtml,shtm,lasso,xhtml"<hr /></blockquote><br />with:<br />[]<documenttype id="HTML" internaltype="HTML" winfileextension="htm,html,shtml,shtm,stm,lasso,xhtml,tmpl" macfileextension="html,htm,shtml,shtm,lasso,xhtml,tmpl"<hr /></blockquote><br /><br />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 --><hr /></blockquote>There you go, you can now edit your UBB.threads template in dreamweaver MX !<br /><br /><br />
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#215554 - 06/17/02 06:31 PM Re: Edit the Templates in Dreamweaver [Re: egor]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
does this work with DW4? I don't have MX yet, and really like 4, but haven't tested it.

Top
#215555 - 06/17/02 10:55 PM Re: Edit the Templates in Dreamweaver [Re: palmen]
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
The original post (start of thread) is for Dreamweaver 4.
_________________________
Mateo Byler
CruceDeCaminos.com

Top


Who's Online
0 Registered (), 38 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 12
blaaskaak 8
tackaberry 7
FREAK1 6
Mike L_dup1 4
Chris Bale 4
Ian_W 4

 

 

 
fusionbb message board php hacks