HighDots Forums  

Template changes when loading in Dreamweaver

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Template changes when loading in Dreamweaver in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Flashram
 
Posts: n/a

Default Template changes when loading in Dreamweaver - 07-10-2004 , 05:25 AM






I am using Coppermine as my photogallery for my website and people design
templates/skins to be used in conjuction with the coppermine php scripting.

I downloaded a new template/skin which has a template.html which is the
asthetic look of the gallery and also is where you can add info like links etc.

Problem I have is when I open the template to add something, part of the
template is shifted over to the righthand side of the window. If I view it in
IE6 web browser it asked to save the template first even though it has just
been loaded, so I save it and then it the main gallery and admin menu over to
the far right, but is supposed to be positioned just to the right of the left
hand menu which is about 2-3 inches wide.

If I view it in IE6 and don't save the window it shows up correctly, but I can
edit something within dreamweaver and save it as it shifts info over when it
shouldn't.

I have asked on the coppermine forums and got can't help you or turn of the
fix errors on load, when I do that, I then see nothing like image place holders
or some text, except for table outline boxes and can only move the window view
a cm or two at most.

I can't understand why it moves the tables over to the right hand side.

The discussion I was having in coppermine forum can be found at
http://coppermine.sourceforge.net/board/index.php?topic=7582.0

If anyone can shed some light on the problem that would be great.

I tried posting a screen shot, but won't let me attach it, then tried posting
the template.html file, but didn't like that either, so I posted the link to
the discussion.

If you want to see what it should look like as I have it running on my site,
but had to do changes in text editor it is at
http://www.memoriesinphotos.com/coppermine_dir/

Thanks for any help and advice.



Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Template changes when loading in Dreamweaver - 07-10-2004 , 08:22 AM






The reason Dreamweaver asks you to save a file immediately after opening it
is that it has found and corrected errors on the page, and this causes it to
mark the page as 'dirty'. Also, if you are previewing with the temp file
option turned off, DW will ask you to save the file before you can preview
it. You can affect both of these behaviors in EDIT | Preferences - the
first is under Code Rewriting, and the second is under Preview in Browser.

The larger issue is this - there are errors on the page. It's likely that
the reason you cannot get help on the Coppermine forum is that the page's
table structure is brutally bad. The tables are littered with col- and
rowspans, and cell dimensions, and the CSS is filled with custom classes
with underscores in the names (i.e., incompatible with Netscape4x).

To see why col- and rowspans can be big trouble, read this -
http://apptools.com/rants/spans.php

The page itself has -

1. A broken doctype - this is unfortunately quite common on the web and in
your case, it works to your advantage, since it causes the page to render in
quirks mode, which is the only way you will find support for table heights.

2. Script placed between </head> and <body> - a no-man's land.

3. XHTML type tags included apparently randomly.

4. Frank code errors with impossible combinations -
</tr></td></tr>

5. Incorrect use of tag attributes - <td valign="center">

6. Unopened end tags - <!-- Content -->
</p></td>
(there is not a corresponding <p> for that </p>)

7. And others....

This is not good news for you.

Do you think that these are errors you introduced or that were in the
'template' initially?

Anyhow, with this kind of code, anything is possible in the layout. It
seems to me like that's what you are seeing.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Flashram" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I am using Coppermine as my photogallery for my website and people design
templates/skins to be used in conjuction with the coppermine php
scripting.

I downloaded a new template/skin which has a template.html which is the
asthetic look of the gallery and also is where you can add info like links
etc.

Problem I have is when I open the template to add something, part of the
template is shifted over to the righthand side of the window. If I view
it in
IE6 web browser it asked to save the template first even though it has
just
been loaded, so I save it and then it the main gallery and admin menu
over to
the far right, but is supposed to be positioned just to the right of the
left
hand menu which is about 2-3 inches wide.

If I view it in IE6 and don't save the window it shows up correctly, but
I can
edit something within dreamweaver and save it as it shifts info over when
it
shouldn't.

I have asked on the coppermine forums and got can't help you or turn of
the
fix errors on load, when I do that, I then see nothing like image place
holders
or some text, except for table outline boxes and can only move the window
view
a cm or two at most.

I can't understand why it moves the tables over to the right hand side.

The discussion I was having in coppermine forum can be found at
http://coppermine.sourceforge.net/board/index.php?topic=7582.0

If anyone can shed some light on the problem that would be great.

I tried posting a screen shot, but won't let me attach it, then tried
posting
the template.html file, but didn't like that either, so I posted the link
to
the discussion.

If you want to see what it should look like as I have it running on my
site,
but had to do changes in text editor it is at
http://www.memoriesinphotos.com/coppermine_dir/

Thanks for any help and advice.





Reply With Quote
  #3  
Old   
Flashram
 
Posts: n/a

Default Re: Template changes when loading in Dreamweaver - 07-10-2004 , 10:25 AM



They were there before hand, I had seen all that, but not being an expert on
HTML, one of the reasons using Dreamweaver, to not have to get heavily involved
in that.

I think what happens is, as it loads in Dreamweaver, it finds the errors and
fills in some of the code, but somehow a table seems to jump over the outside
table which relates to the pictures in the top table which is the layout of
images that is seen when passed into the php environment of coppermine.

It is just frustrating to not be able to edit the html template in dreamwaver
as I would like to put some other layout in there on the right side and also
more in the links area on the left side.

If I could get a clean version of the template with the errors repaired and
the layout remaining the same that would be great, but as you probably saw from
the coppermine forum thread, they aren't too forthcomming with solving issues,
not even the guy that designed the template, who's english is a little
disjointed.

The Gau Gau bloke just totally didn't understand what I was saying even after
posting the image of the screen shot I posted, he thought I was talking about
the images not showing, where I specifically pointed out that it was the Admin
and Gallery menus that where being shifted to the right.

Do you think it could be just the odd /tr labels in the lines that is causing
it. I didn't notice the script between the head and body, will look at that.
DHTML isn't my forte either.

I will have another look at it and see, if you can supply anymore info that
would be great.

Thanks.


Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Template changes when loading in Dreamweaver - 07-10-2004 , 10:32 AM



Quote:
one of the reasons using Dreamweaver, to not have to get heavily involved
in that.
This is legend. You will not be able to use DW successfully without getting
involved in that. There are many page issues that simply cannot be solved
in Design view.

Quote:
it finds the errors and
fills in some of the code, but somehow a table seems to jump over the
outside
table which relates to the pictures in the top table
It's likely that this is correct. Sadly, the only way to manage this is to
TURN OFF the code rewriting in DW. This means that you will simply continue
to have coding errors on the page which will display unpredictably in your
cross-browser/platform visitor's hands. DW is trying to guess where closing
tags (or opening tags - there were instances of both errors) should be
placed and clearly it is guessing wrong.

Quote:
If I could get a clean version of the template with the errors repaired
and
the layout remaining the same that would be great, but as you probably saw
from
the coppermine forum thread, they aren't too forthcomming with solving
issues,
not even the guy that designed the template, who's english is a little
disjointed.
I would insist on a refund. This code is not suitable for commercial
distribution, and appears to have been written by someone with approximately
the same philosophical approach to code that you stated at the beginning of
this message! <ouch>

Quote:
I will have another look at it and see, if you can supply anymore info
that
would be great.
Cleaning up the code is tedious. Particularly when the table structure is
as monolithic and contorted as that code is. I am not so optimistic here.
How committed are you to this product, and how much have you already spent
with them, if you don't mind my asking?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Flashram" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
They were there before hand, I had seen all that, but not being an expert
on
HTML, one of the reasons using Dreamweaver, to not have to get heavily
involved
in that.

I think what happens is, as it loads in Dreamweaver, it finds the errors
and
fills in some of the code, but somehow a table seems to jump over the
outside
table which relates to the pictures in the top table which is the layout
of
images that is seen when passed into the php environment of coppermine.

It is just frustrating to not be able to edit the html template in
dreamwaver
as I would like to put some other layout in there on the right side and
also
more in the links area on the left side.

If I could get a clean version of the template with the errors repaired
and
the layout remaining the same that would be great, but as you probably saw
from
the coppermine forum thread, they aren't too forthcomming with solving
issues,
not even the guy that designed the template, who's english is a little
disjointed.

The Gau Gau bloke just totally didn't understand what I was saying even
after
posting the image of the screen shot I posted, he thought I was talking
about
the images not showing, where I specifically pointed out that it was the
Admin
and Gallery menus that where being shifted to the right.

Do you think it could be just the odd /tr labels in the lines that is
causing
it. I didn't notice the script between the head and body, will look at
that.
DHTML isn't my forte either.

I will have another look at it and see, if you can supply anymore info
that
would be great.

Thanks.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.