NEED TO UPGRADE SITE FROM Publisher 2002... what to do?

S

Stevan

My Current website (http://www.timesaversforteachers.com) is created in
Publisher 2002. I need however to redesign my site so that it opens in the
middle of the browser and not to the left side.
Can this be done in Publisher 2003? I have Publisher 2007 but it seems
useless as I can only see the first page and not the rest of the pages.
Can Publisher 2003 make my current page open in the middle (and maybe even
make it wider)? I am also concerned about the index page size as I do not
want this to be a negative issue. Any comments would be greatly appreciated.

Stevan
 
D

Don Schmidt

No Publisher version to date will create websites other than left justified.

You can manually change coding to center Publisher websites by editing the
website files or use the free "ReplaceInFiles" program to edit the website
files.

Below are canned responses to achieve that goal for Publisher websites.

=====================================================
A Donald Canned Response -
Centering Publisher 2000 & 2003 webpages:

This works only for websites created with Publisher 2000 & 2002.
There are other fixes for other versions of Publisher; see below.

Each of your html files requires adding the <center> code after the
existing </head> code.

You can go into each html file and do it manually or get the free
ReplaceInFiles program and make it an easy chore.


"ReplaceInFiles" can be downloaded from:

<http://www.emurasoft.com/index.htm>

The four boxes require the following information:

Find: </head>
Replace with: </head> <center>
File Types: *.html
In Folder:
(use the button to go to the folder where the html files are located
on your hard drive)

The bottom four boxes can be left blank.

Note: Once the boxes are filled out and the "Replace all" is selected,
the entries are retained for the next time you use the program.

=====================================================
A Donald Canned Response -

Thanks to "Spike" who has given us this:

The fix to center pages using publisher 2003 and 2007
Publish to your hard drive
Edit the htm file(s) and replace </head> with

</head><table border="0" cellpadding="0" cellspacing="2"
width="760"align="center"><tr><td>
(All on one line)

If you are using a page width different than 760 pixels change that number
in the above line

If you have multiple pages you might want to look at
<http://www.emurasoft.com/replall/> a simple replace lines in multiple htm
files

Then ftp the files to your ISP

=====================================================

--
Don - Publisher 2000® www.vanusa.org
Vancouver, USA

P.S. One of the kind visitors of this news group told us of
ReplaceInFiles program some time ago;
'Sorry I forgot the individual's name. (Another unsung hero).

=====================================================
 
E

Eric James

Using the <center> tag is not an entirely reliable method.
Another method using css follows - unfortunately I can't guarantee this will
work without causing other problems for all sites but it may be a little
more cross-browser compatible.

Open up your html file(s) in Notepad or Wordpad & edit as follows:
Assuming there is a css header block present, near the top of the file,
before these 2 lines:
-->
</style>
insert these 10 lines:
body {
text-align: center;
min-width: 800px;
}

#whole {
width: 800px;
margin: 0 auto;
text-align: left;
}

After a line a little further down starting:
<body .....
insert this line:
<div id="whole">

Near the end of the file, before the line:
</body>
Insert the line:
</div>

Thats it.
You may nead to tweak the "800px" values to suit your page - this assumes
that your page body is 800 pixels (ish) wide.
A much better solution is to not use Publisher to build your web pages.
 
M

MAURH

Stevan,

From someone who has used Publisher to create successful websites for a few
years now...and enjoyed it...I use Don's suggestion of 'Replace in Files'. I
find it very clear and easy to use and once you have set it up...it only
takes a few minutes...you are only a couple of clicks away from centring
your pages. Easy Peasy as someone else said!

Maureen
 
D

DavidF

Don,

You might want to update your canned response in regards to 2002. After Pub
2000 the default was changed from .html to .htm for the file extensions.
This means that if you use ReplaceInFiles, you need to set the File types to
..htm unless the user happened to choose .html.

Oh, and I think you meant 'Centering Publisher 2000 & 2002 webpages:'
instead of 'Centering Publisher 2000 & 2003 webpages:'

DavidF
 
D

DavidF

The reason you "only see the first page and not the rest of the pages" in
Pub 2007 is that it produces the web files in a different way than Pub 2002.
You are producing your pages and web files "loose" and all together with Pub
2002 (the same for Pub 2000). By default Pub 2007 (and Pub 2003) is set to
use a 'support folder', and when you produce your web files you will get an
'index.htm' file (your home page) and an 'index_files' folder which contains
the other pages of your site plus all the supporting graphics. If you upload
only the index.htm file then all you will see is the home page. You need to
upload the index_files folder too.

Here is a couple articles that explains a lot of this:

Web Publication Changes Made in Version 2002 of Publisher:
http://msmvps.com/blogs/dbartosik/pages/81262.aspx

Publisher 2003 - What's new in web design for this version:
http://msmvps.com/blogs/dbartosik/pages/80555.aspx

If you prefer the way you have been doing it with Pub 2002, then in Pub 2007
you can go to Tools > Options > Web tab and uncheck 'Organize supporting
files...'. Now Publisher will produce all your web files 'loose' as it did
in 2002.

Also for what its worth, you go to File > Publish to the Web to produce your
files with Pub 2007. If memory serves, you "export as..." with 2002. While
there are other differences between 2002 and 2007, one of the most important
in my mind is that 2002 was the only version that had a fixed page length.
All the other versions will truncate the page after the last design element
on the page and create custom length pages. A big advantage of using Pub
2007 in my opinion.

With all that said, my goal here was just to explain why you didn't see all
your pages when using Pub 2007. If you are more comfortable with 2002, then
by all means stay with what you know.

DavidF
 
D

Don Schmidt

David,

Many thanks for the "heads up". And, apologies to anyone I may have
mislead.
Canned message will be changed ASAP!

Don
 
D

DavidF

I do it all the time when I am trying to develop 'canned' responses to FAQs.
I write and proof it carefully, only to post it and then find that I goofed
something up. Sometimes you can't see the forest for the trees. Ain't no
biggy.

DavidF
 
E

Eric James

It should be pointed out though that although these hacks may appear to
work, they are both technically invalid and violate the most basic of rules
concerning html document structure.
Caveat emptor.
 
D

Don Schmidt

Hacks? The methods you disapprove of are html coding added to html coding.
We in the front office refer to these adjustments as micro-corrective
surgery. ;-)
 
D

DavidF

Stevan,

It occurs to me that you might find this whole idea of editing the html code
of your Publisher websites files as intimidating, confusing, difficult or
somehow a bad idea. After all, the whole reason most of us use Publisher is
so that we don't have to mess with the coding or understand it. However, the
instructions that Don gave you do work, work consistently, and are much
easier than they may seem. And once you download and set up ReplaceInFiles,
changing your site files so that they will automatically center is a simple
two click operation.

To show you how easy and effective it is, try this manual code edit:

1. Open your Publisher 2002 file > File > Export As, just as you normally do
to produce your webfiles, but direct them to a folder on your computer where
you can easily find them such as your desktop.

2. Go to those newly generated website files and find the index.htm file and
double click it and open it in IE.

3. In IE go to View > Source and this will open your index.htm file in
NotePad. There is the html code for your page in case you never looked at it
before. Yeah, that is why most of us don't want to mess with html coding and
prefer to let Publisher do it for us.

4. In NotePad go to Edit > Find and paste in ' said:
Find next. It will take you to where </head> is in the code. Or you can
scroll down until you find it. Then paste ' <center> ' without the quotes
directly after </head>, so that the line will now read ' </head> <center> '
, without the quotes.

5. Close NotePad and say yes to save the changes.

6. Double click the index.htm file again and open in IE, and now your page
will be centered in your browser window. Change the size of the browser
window and the page moves dynamically to the center regardless of the size
of the window.

Now to do that with each page of your website files each time you make a
change to your site would be tedious, and that is where ReplaceInFiles is so
handy. You don't have to open the .htm files in NotePad and ever look at the
source code or manually edit it. Once you set it up it will automatically go
through each page of your html code and replace ' </head> ' with ' </head>
<center> '. And once you set it up to the first time it remembers the setup
the next time you open it, so from that point on it is a two click, easy
peasy (I like those words) operation.

Of course if you switch to Pub 2007 then the only difference is the line of
code that you replace. Still easy peasy once you set it up correctly the
first time.

Try it, you'll like it ;-) We have been doing it for years without a
problem.

DavidF
 
E

Eric James

Apologies to all but I don't really have the time to highlight just how
remarkably stupid this piece of advice from DavidF is. I am beginning to
wonder if he is actually a real entity, or whether his posts are in fact
being generated by an artificial intelligence experiment in a Microsoft
laboratory, for which they have yet to develop the intelligence.
I can only direct those interested to seek out other sources of information
on the web on html coding and the importance of correct coding and
standards. Maybe start here: http://www.webstandards.org/learn/faq/#p3
Unfortunately it is simply not possible to create fully compliant or even
valid html code using Publisher, but even so it is misguided at best to
damage it further in the manner suggested.
There are some further sensible general tips here:
http://www.ianchadwick.com/ordovician/design.html

Just a snippet: "After all, the whole reason most of us use Publisher is so
that we don't have to mess with the coding or understand it."
So - clearly not understanding the code, he then advocates messing with it!
Badly. Unbelievable.
 
R

Rob Giordano [MS MVP]

Serif's web editor is just as easy as Pub, while not a true html editor, it
does produce much better code.

Pub as you know was never meant to produce websites except for maybe
intranet being viewed by IE. Though I am sympathetic to people that use Pub,
the effort that is spent with workarounds could just as easily be spent
learning just a little about html & css and using a program designed for the
task....Serif, CoffeeCup (cheap, easy), DW ($, learning curve), or EW ($,
learning curve), etc)



--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression
 
R

Rob Giordano [MS MVP]

....and the worst part about using Publisher for web work is...by the time
the user finds out about the pitfalls, they have already produced a website
with 500 pages that can't be converted to normal html by any editor, so all
their effort is wasted because they'll have to start over.

--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression
 
E

Eric James

At last.
A voice of sanity!

(...work still occasionally going on here converting 1000+ publisher pages
into pdf. Version 2000 too, so they're that not actually that bad, but bad
enough. At least that's one thing Publisher can do! It seemed like a good
idea at the time.)
 
R

Rob Giordano [MS MVP]

Another editor people should look at is Amaya...w3c...free too.



--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression
 
E

Eric James

I've seen that too, it looks very promising. Unfortunately though it crashed
& died after I played around with it for a couple of minutes, but I'm sure
even that could be better than Publisher 2007 which I've just had crash &
irrretrievably corrupt its .pub file after forty minutes of real work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top