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 Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
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



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks