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.
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: 25448
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 (), 25 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
nick1, Begbie, cenk, MATTO, DougMMcts
13362 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks