You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Cody Harris <hc...@ns.sympatico.ca> on 2003/08/17 03:12:41 UTC

[users@httpd] Adding banners

HOw do i write a little bit of code (like a banner) to a page without using SSI (configuratgion file). Is this even possible?

-Cody Harris

Linux Rox My Sox!
Check out HCHS!
http://vectec.net

Proud to use Mandrake Linux 8.1 as a server.
Not proud to use Windows as a primary server.

Registered Linux user #315598
Registered Linux Computer #200951
Wrote on a Windoze Computer :(

Re: [users@httpd] Adding banners

Posted by Robert Andersson <ro...@profundis.nu>.
Cody Harris wrote:
> What i want to do is tell apache: Append this file (to the top or bottom)
of
> ANY .htm, .html files. I have thousands of pages, so this needs to be done
> with Apache.

I you haven't had banners before, but want them from now on, you should make
a one-time script (eg. Perl) that runs through your documents and inserts
the code. Making such script would go much faster than doing it manually,
and not take much longer than any other solution, while giving the best
results. If you need to "enforce" it (ie. applying the banner in documents
created by others) you have no choice but passing them through a filter or
letting a CGI or PHP script handle them.

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by Joseph A Nagy Jr <jo...@charter.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 16 August 2003 21:06, Zac Stevens wrote this in an attempt 
to be witty and informative:
<snip>
> Or, if you're using Apache 2.0, you can define an output filter to do
> the same thing.  Filters can be external scripts and their presence
> is not apparent to the client.
>
> http://httpd.apache.org/docs-2.0/filter.html
>
>
> Zac

I think the easiest way is to use a banner ad server like Adfu[0] (needs 
mySQL). Not sure though it'll automatically insert the code. Perhaps 
the OP could contact Tripod[1] and see how they auto-insert the code.


[0]: http://blockstackers.com/adfu.shtml
[1]: http://www.tripod.com, now part of the Lycos Network has somehow 
managed to automatically insert some code into every web page so that 
it either serves a pop up or inline. They also strip said code when 
using the online html editor. 
- -- 
Wielder of the mighty +1 LARTsaber of Unsubscribe Instructions At End of
Message, the +3 Clue-by-Four of No Attachments to a Mailing List, and
the -4 Shield of No Spell Checker. http://jan-jr-ent.homelinux.org
http://joseph-a-nagy-jr.homelinux.org http://mc-luug.homelinux.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/Pvr/njt9jEvKYeARAgLWAJ4qAfVzKcrjH3uXYj3Xq1KDKNqT7wCeIz4q
rYnVV7v0avatv51dgeXKtQY=
=4+cq
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by Robert Andersson <ro...@profundis.nu>.
Cody Harris wrote:
> > Lets say i want C:\http\foo.pl to go thorugh the files, what addfilter
do
> > i call for .html files and how do i get the incoing data from apache (I
> > assume all output goes out to the client)
>
> I'm tring to move back on topic ;). Lets just restate that question.

Have you stuidied the docs? They seem to explain how:
http://httpd.apache.org/docs-2.0/mod/mod_ext_filter.html

If you can't make it work, I suggest you start a new topic with that
(specific) question, as this one has degenerated quite a bit.

I have not any experience with such filters, and no time to test now, so I
personally cannot help you.

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by Cody Harris <hc...@ns.sympatico.ca>.
----- Original Message ----- 
From: "Cody Harris" <hc...@ns.sympatico.ca>
To: <us...@httpd.apache.org>
Sent: Sunday, August 17, 2003 8:58 AM
Subject: Re: [users@httpd] Adding banners


>
> ----- Original Message ----- 
> From: "Zac Stevens" <zt...@cryptocracy.com>
> To: <us...@httpd.apache.org>
> Sent: Saturday, August 16, 2003 11:06 PM
> Subject: Re: [users@httpd] Adding banners
>
>
> > On Sat, Aug 16, 2003 at 07:01:37PM -0700, Brian Dessent wrote:
> > > Cody Harris wrote:
> > > > Is there or isn't there a way to dump a file into another (i'm
> ignoring all
> > > > html rules here, all i want is a way to dump one file into another
> with
> > > > Apache).
> > >
> > > You could use mod_rewrite to rewrite all requests to a particular
> > > perl/php/cgi script, with the original request as an argument.  This
> > > script could do whatever you want in terms of including or modifying
the
> > > content.  However, this would mean the pages are no longer static (and
> > > wouldn't be cached as well) and there would be some CPU overhead of
> > > course.
> >
> > Or, if you're using Apache 2.0, you can define an output filter to do
the
> > same thing.  Filters can be external scripts and their presence is not
> > apparent to the client.
> >
> > http://httpd.apache.org/docs-2.0/filter.html
>
> Lets say i want C:\http\foo.pl to go thorugh the files, what addfilter do
i
> call for .html files and how do i get the incoing data from apache (I
assume
> all output goes out to the client)

I'm tring to move back on topic ;). Lets just restate that question.

>
> >
> >
> > Zac
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by Cody Harris <hc...@ns.sympatico.ca>.
----- Original Message ----- 
From: "Zac Stevens" <zt...@cryptocracy.com>
To: <us...@httpd.apache.org>
Sent: Saturday, August 16, 2003 11:06 PM
Subject: Re: [users@httpd] Adding banners


> On Sat, Aug 16, 2003 at 07:01:37PM -0700, Brian Dessent wrote:
> > Cody Harris wrote:
> > > Is there or isn't there a way to dump a file into another (i'm
ignoring all
> > > html rules here, all i want is a way to dump one file into another
with
> > > Apache).
> >
> > You could use mod_rewrite to rewrite all requests to a particular
> > perl/php/cgi script, with the original request as an argument.  This
> > script could do whatever you want in terms of including or modifying the
> > content.  However, this would mean the pages are no longer static (and
> > wouldn't be cached as well) and there would be some CPU overhead of
> > course.
>
> Or, if you're using Apache 2.0, you can define an output filter to do the
> same thing.  Filters can be external scripts and their presence is not
> apparent to the client.
>
> http://httpd.apache.org/docs-2.0/filter.html

Lets say i want C:\http\foo.pl to go thorugh the files, what addfilter do i
call for .html files and how do i get the incoing data from apache (I assume
all output goes out to the client)

>
>
> Zac
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by Zac Stevens <zt...@cryptocracy.com>.
On Sat, Aug 16, 2003 at 07:01:37PM -0700, Brian Dessent wrote:
> Cody Harris wrote:
> > Is there or isn't there a way to dump a file into another (i'm ignoring all
> > html rules here, all i want is a way to dump one file into another with
> > Apache).
> 
> You could use mod_rewrite to rewrite all requests to a particular
> perl/php/cgi script, with the original request as an argument.  This
> script could do whatever you want in terms of including or modifying the
> content.  However, this would mean the pages are no longer static (and
> wouldn't be cached as well) and there would be some CPU overhead of
> course.

Or, if you're using Apache 2.0, you can define an output filter to do the
same thing.  Filters can be external scripts and their presence is not
apparent to the client.  

http://httpd.apache.org/docs-2.0/filter.html


Zac

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by Brian Dessent <br...@dessent.net>.
Cody Harris wrote:
> 
> Is there or isn't there a way to dump a file into another (i'm ignoring all
> html rules here, all i want is a way to dump one file into another with
> Apache).

You could use mod_rewrite to rewrite all requests to a particular
perl/php/cgi script, with the original request as an argument.  This
script could do whatever you want in terms of including or modifying the
content.  However, this would mean the pages are no longer static (and
wouldn't be cached as well) and there would be some CPU overhead of
course.

Brian

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by Cody Harris <hc...@ns.sympatico.ca>.
Is there or isn't there a way to dump a file into another (i'm ignoring all
html rules here, all i want is a way to dump one file into another with
Apache).
----- Original Message ----- 
From: "Zac Stevens" <zt...@cryptocracy.com>
To: <us...@httpd.apache.org>
Sent: Saturday, August 16, 2003 10:42 PM
Subject: Re: [users@httpd] Adding banners


> On Sat, Aug 16, 2003 at 10:28:47PM -0300, Cody Harris wrote:
> > What i want to do is tell apache: Append this file (to the top or
bottom) of
> > ANY .htm, .html files. I have thousands of pages, so this needs to be
done
> > with Apache.
>
> If you're adding a banner, you don't want it prepended to the original
> file.  You need HTML added after the <body> tag in the original file.
> That's something quite different and entirely more complex than simply
> prepending another file to the output.
>
> That having been said, it's the kind of thing which could be automated in
a
> variety of ways; perl immediately springs to mind, but there are many
> alternatives.  However, it has nothing to do with Apache.
>
> Cheers,
>
>
> Zac
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by Zac Stevens <zt...@cryptocracy.com>.
On Sat, Aug 16, 2003 at 10:28:47PM -0300, Cody Harris wrote:
> What i want to do is tell apache: Append this file (to the top or bottom) of
> ANY .htm, .html files. I have thousands of pages, so this needs to be done
> with Apache.

If you're adding a banner, you don't want it prepended to the original
file.  You need HTML added after the <body> tag in the original file.
That's something quite different and entirely more complex than simply
prepending another file to the output.

That having been said, it's the kind of thing which could be automated in a
variety of ways; perl immediately springs to mind, but there are many
alternatives.  However, it has nothing to do with Apache.

Cheers,


Zac

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by ge...@ameritech.net.
At 17:05 (UTC-0400) on Sun, 17 Aug 2003 Marty Landman said:

= At 04:36 PM 8/17/2003 -0400, you wrote:
= 
= >Well then you don't know CSS very well.  I've done it this very thing 
= >before.  It does work.
= 
= I've always put global content on sites using either SSI or global HTML 
= templates and am new to CSS. How do you do it with CSS?

See <http://www.w3.org/Style/CSS/>.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by Marty Landman <ML...@face2interface.com>.
At 04:36 PM 8/17/2003 -0400, you wrote:

>Well then you don't know CSS very well.  I've done it this very thing 
>before.  It does work.

I've always put global content on sites using either SSI or global HTML 
templates and am new to CSS. How do you do it with CSS?


Marty Landman
Face 2 Interface Inc
SIMPL Quizzes:   http://face2interface.com/cgi-bin/SimplQuiz/index.cgi/
SIMPL Websites: http://face2interface.com/Home/Demo.shtml

Re: [users@httpd] Adding banners

Posted by Robert Andersson <ro...@profundis.nu>.
gebser@ameritech.net wrote:
> I pointed to a solution

You did not.

> Maybe you could explain why I should do this for such a
> pleasant and collegial person as yourself.

I doubt that Brian, as I, is very interested in your 'solution'. As it looks
now, you don't have a solution and appear a troll, why we encourage you to
explain your 'solution' in order to make yourself credible; for your own
sake.

The 'solution' has not 'been addressed and answered repeatedly', as you
claim, for the two years I've been on this list, and I have read 95% of all
messages during this period.

As a logical deduction, it is *impossible* to do this with CSS if a
centralized CSS script isn't guaranteed to be linked to in each document, as
a stand-alone CSS cannot alter a document it isn't a part of. However, if
the latter predicate was true, it might be possible as an awful hack (eg.
body { background-image: url('xxx'); margin-top: 80px; } ).

> The information I gave in my previous post [...] clearly shows that CSS
> can be used for the requested purpose... if you would bother to look
> where I suggested.

You mean here?
http://www.google.com/search?q=css+footer

Kindly point out which page you find the answer on. On the few I followed,
all I see is unthoughtful kids asking and sensible people telling them it
isn't possible.

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by ge...@ameritech.net.
At 20:05 (UTC-0700) on Sun, 17 Aug 2003 Brian Dessent said:

= gebser@ameritech.net wrote:
= >
= > Doing a quick google of "CSS footer" turned up a lot of hits and example
= > code.  It seems that this topic has been addressed and answered
= > repeatedly already (what some of the hits reported) which (not to go
= > off-topic) is a good reason to check the documentation already available
= > before wasting bandwidth on running through the entire topic again.
= > Then, too, this is no longer an apache topic, but one more suitable to a
= > list on CSS.
= 
= Nice dodge.  If there are so many links that explain how to add a
= banner-like header or footer using -only- CSS and with -no- changes to
= the source page, why don't you grace us with one?  The original poster
= asked a specific question, with specific code... You respond with "it's
= so easy, go do a search loser."  What you get with a Google search for
= "css footer" is a bunch of people discussing how to use CSS to specify
= the layout of the content at the end of their page, and is not relevent
= to the discussion at hand since the footer content is part of the HTML.
= 
= And yes, this is on-topic because the alternative to your elusive magic
= CSS is configuring mod_rewrite or mod_ext_filter to do the job.
= 
= So again, how exactly would you add a banner-ad to a site using only CSS
= and no changes to the content?  Answer: you don't.
= 
= Brian
= 

Brian,

I think you miss the point of free and voluntary help such as this list
provides.  It's not my nor anyone else's obligation to write code and
find turn-key solutions gratis.  I pointed to a solution and gave more
than enough detail for a reasonably intelligent person to go the rest of
the way.  Your snide challenge tells me you want someone else to do your
work for you.  Maybe you could explain why I should do this for such a
pleasant and collegial person as yourself.  Well, maybe you're
understandably suffering from some frustration.  Try to relax, drop the
attitude, reread the thread from the beginning, do a little research and
testing from the information I've given, and try to learn on your own.  
Or you might try to make a positive contribution in some other way
instead of criticizing and disparaging others who are trying to help.  
The information I gave in my previous post (which you cleverly edited
out of your reply to it) clearly shows that CSS can be used for the
requested purpose... if you would bother to look where I suggested.

ken



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by Brian Dessent <br...@dessent.net>.
gebser@ameritech.net wrote:
>
> Doing a quick google of "CSS footer" turned up a lot of hits and example
> code.  It seems that this topic has been addressed and answered
> repeatedly already (what some of the hits reported) which (not to go
> off-topic) is a good reason to check the documentation already available
> before wasting bandwidth on running through the entire topic again.
> Then, too, this is no longer an apache topic, but one more suitable to a
> list on CSS.

Nice dodge.  If there are so many links that explain how to add a
banner-like header or footer using -only- CSS and with -no- changes to
the source page, why don't you grace us with one?  The original poster
asked a specific question, with specific code... You respond with "it's
so easy, go do a search loser."  What you get with a Google search for
"css footer" is a bunch of people discussing how to use CSS to specify
the layout of the content at the end of their page, and is not relevent
to the discussion at hand since the footer content is part of the HTML.

And yes, this is on-topic because the alternative to your elusive magic
CSS is configuring mod_rewrite or mod_ext_filter to do the job.

So again, how exactly would you add a banner-ad to a site using only CSS
and no changes to the content?  Answer: you don't.

Brian

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by ge...@ameritech.net.
At 00:39 (UTC+0200) on Mon, 18 Aug 2003 Robert Andersson said:

= [growing off-topic...]
= 
= gebser@ameritech.net wrote:
= > > > CSS (Cascading Style Sheets) will do this.
= > >
= > > I don't think that will work.
= >
= > Well then you don't know CSS very well.  I've done it this very thing
= > before.  It does work.
= 
= I do know CCS fairly well, but it really beats me how it could be utilized
= in this case.
= 
= Let's say we have this document:
= 
=     <?xml version="1.0" encoding="ISO-8859-1"?>
=     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "...">
=     <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
=     <head><title>Blah</title></head>
=     <link href="global.css" rel="stylesheet" type="text/css" />
=     <body>Some body!</body></html>
= 
= How do you propose to edit 'global.css' to get a banner displayed on this
= page? Better yet, how do we do it (with CSS) so that 'global.css' isn't
= required to be linked in each document?

Doing a quick google of "CSS footer" turned up a lot of hits and example
code.  It seems that this topic has been addressed and answered
repeatedly already (what some of the hits reported) which (not to go
off-topic) is a good reason to check the documentation already available 
before wasting bandwidth on running through the entire topic again.  
Then, too, this is no longer an apache topic, but one more suitable to a 
list on CSS.

Putting a uniform footer into a document can also be done with PHP.  
Check the web for more info on that.  Using PHP it will be necessary to
insert code into each individual document.  To automate the insertion,
sed is the obvious utility.  It's gnu, so available for whatever
platform will run gcc.  There's also plenty of ports of it already.  
For details on how to use sed for this task, check the web.  This
identical situation has been addressed countless times already, so there
should be a number of docs on it.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by Robert Andersson <ro...@profundis.nu>.
[growing off-topic...]

gebser@ameritech.net wrote:
> > > CSS (Cascading Style Sheets) will do this.
> >
> > I don't think that will work.
>
> Well then you don't know CSS very well.  I've done it this very thing
> before.  It does work.

I do know CCS fairly well, but it really beats me how it could be utilized
in this case.

Let's say we have this document:

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "...">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head><title>Blah</title></head>
    <link href="global.css" rel="stylesheet" type="text/css" />
    <body>Some body!</body></html>

How do you propose to edit 'global.css' to get a banner displayed on this
page? Better yet, how do we do it (with CSS) so that 'global.css' isn't
required to be linked in each document?

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by Cody Harris <hc...@ns.sympatico.ca>.
Automaticly adding text and pictures to every .htm and .html pages that does
through?
----- Original Message ----- 
From: <ge...@ameritech.net>
To: <us...@httpd.apache.org>
Cc: <ge...@ameritech.net>
Sent: Sunday, August 17, 2003 5:36 PM
Subject: Re: [users@httpd] Adding banners


> At 10:03 (UTC-0300) on Sun, 17 Aug 2003 Cody Harris said:
>
> =
> = ----- Original Message ----- 
> = From: <ge...@ameritech.net>
> = To: <us...@httpd.apache.org>
> = Cc: "Robert Andersson" <ro...@profundis.nu>
> = Sent: Sunday, August 17, 2003 9:05 AM
> = Subject: Re: [users@httpd] Adding banners
> =
> =
> = > At 22:28 (UTC-0300) on Sat, 16 Aug 2003 Cody Harris said:
> = >
> = > =
> = > = ----- Original Message ----- 
> = > = From: "Robert Andersson" <ro...@profundis.nu>
> = > = To: <us...@httpd.apache.org>
> = > = Sent: Saturday, August 16, 2003 10:26 PM
> = > = Subject: Re: [users@httpd] Adding banners
> = > =
> = > =
> = > = > Cody Harris wrote:
> = > = > > HOw do i write a little bit of code (like a banner) to a page
> = > = > > without using SSI (configuratgion file). Is this even possible?
> = > = >
> = > = > Open an editor and edit the HTML document?
> = > = >
> = > = > Sorry, but what do you mean? There are many ways of adding
contents to
> = a
> = > = web
> = > = > page, and (almost) all has nothing to do with Apache.
> = > =
> = > = What i want to do is tell apache: Append this file (to the top or
> = bottom) of
> = > = ANY .htm, .html files. I have thousands of pages, so this needs to
be
> = done
> = > = with Apache.
> = > =
> = > = >
> = > = > Regards,
> = > = > Robert Andersson
> = > = >
> = >
> = > CSS (Cascading Style Sheets) will do this.
> =
> = I don't think that will work.
>
> Well then you don't know CSS very well.  I've done it this very thing
> before.  It does work.
>
>
> =
> = >
> = >
> = > "I am never serious [said K.], and therefore I have to make jokes do
> = > duty for both jest and earnest.  But I was arrested in earnest."
> = > --Franz Kafka, deleted fragment from _The_Trial_
> = >
> = >
> = > ---------------------------------------------------------------------
> = > The official User-To-User support forum of the Apache HTTP Server
Project.
> = > See <URL:http://httpd.apache.org/userslist.html> for more info.
> = > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> = >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> = > For additional commands, e-mail: users-help@httpd.apache.org
> = >
> =
> =
> = ---------------------------------------------------------------------
> = The official User-To-User support forum of the Apache HTTP Server
Project.
> = See <URL:http://httpd.apache.org/userslist.html> for more info.
> = To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> = For additional commands, e-mail: users-help@httpd.apache.org
> =
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by ge...@ameritech.net.
At 10:03 (UTC-0300) on Sun, 17 Aug 2003 Cody Harris said:

= 
= ----- Original Message ----- 
= From: <ge...@ameritech.net>
= To: <us...@httpd.apache.org>
= Cc: "Robert Andersson" <ro...@profundis.nu>
= Sent: Sunday, August 17, 2003 9:05 AM
= Subject: Re: [users@httpd] Adding banners
= 
= 
= > At 22:28 (UTC-0300) on Sat, 16 Aug 2003 Cody Harris said:
= >
= > =
= > = ----- Original Message ----- 
= > = From: "Robert Andersson" <ro...@profundis.nu>
= > = To: <us...@httpd.apache.org>
= > = Sent: Saturday, August 16, 2003 10:26 PM
= > = Subject: Re: [users@httpd] Adding banners
= > =
= > =
= > = > Cody Harris wrote:
= > = > > HOw do i write a little bit of code (like a banner) to a page
= > = > > without using SSI (configuratgion file). Is this even possible?
= > = >
= > = > Open an editor and edit the HTML document?
= > = >
= > = > Sorry, but what do you mean? There are many ways of adding contents to
= a
= > = web
= > = > page, and (almost) all has nothing to do with Apache.
= > =
= > = What i want to do is tell apache: Append this file (to the top or
= bottom) of
= > = ANY .htm, .html files. I have thousands of pages, so this needs to be
= done
= > = with Apache.
= > =
= > = >
= > = > Regards,
= > = > Robert Andersson
= > = >
= >
= > CSS (Cascading Style Sheets) will do this.
= 
= I don't think that will work.

Well then you don't know CSS very well.  I've done it this very thing 
before.  It does work.


= 
= >
= >
= > "I am never serious [said K.], and therefore I have to make jokes do
= > duty for both jest and earnest.  But I was arrested in earnest."
= > --Franz Kafka, deleted fragment from _The_Trial_
= >
= >
= > ---------------------------------------------------------------------
= > The official User-To-User support forum of the Apache HTTP Server Project.
= > See <URL:http://httpd.apache.org/userslist.html> for more info.
= > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
= >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
= > For additional commands, e-mail: users-help@httpd.apache.org
= >
= 
= 
= ---------------------------------------------------------------------
= The official User-To-User support forum of the Apache HTTP Server Project.
= See <URL:http://httpd.apache.org/userslist.html> for more info.
= To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
=    "   from the digest: users-digest-unsubscribe@httpd.apache.org
= For additional commands, e-mail: users-help@httpd.apache.org
= 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by Cody Harris <hc...@ns.sympatico.ca>.
----- Original Message ----- 
From: <ge...@ameritech.net>
To: <us...@httpd.apache.org>
Cc: "Robert Andersson" <ro...@profundis.nu>
Sent: Sunday, August 17, 2003 9:05 AM
Subject: Re: [users@httpd] Adding banners


> At 22:28 (UTC-0300) on Sat, 16 Aug 2003 Cody Harris said:
>
> =
> = ----- Original Message ----- 
> = From: "Robert Andersson" <ro...@profundis.nu>
> = To: <us...@httpd.apache.org>
> = Sent: Saturday, August 16, 2003 10:26 PM
> = Subject: Re: [users@httpd] Adding banners
> =
> =
> = > Cody Harris wrote:
> = > > HOw do i write a little bit of code (like a banner) to a page
> = > > without using SSI (configuratgion file). Is this even possible?
> = >
> = > Open an editor and edit the HTML document?
> = >
> = > Sorry, but what do you mean? There are many ways of adding contents to
a
> = web
> = > page, and (almost) all has nothing to do with Apache.
> =
> = What i want to do is tell apache: Append this file (to the top or
bottom) of
> = ANY .htm, .html files. I have thousands of pages, so this needs to be
done
> = with Apache.
> =
> = >
> = > Regards,
> = > Robert Andersson
> = >
>
> CSS (Cascading Style Sheets) will do this.

I don't think that will work.

>
>
> "I am never serious [said K.], and therefore I have to make jokes do
> duty for both jest and earnest.  But I was arrested in earnest."
> --Franz Kafka, deleted fragment from _The_Trial_
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by ge...@ameritech.net.
At 22:28 (UTC-0300) on Sat, 16 Aug 2003 Cody Harris said:

= 
= ----- Original Message ----- 
= From: "Robert Andersson" <ro...@profundis.nu>
= To: <us...@httpd.apache.org>
= Sent: Saturday, August 16, 2003 10:26 PM
= Subject: Re: [users@httpd] Adding banners
= 
= 
= > Cody Harris wrote:
= > > HOw do i write a little bit of code (like a banner) to a page
= > > without using SSI (configuratgion file). Is this even possible?
= >
= > Open an editor and edit the HTML document?
= >
= > Sorry, but what do you mean? There are many ways of adding contents to a
= web
= > page, and (almost) all has nothing to do with Apache.
= 
= What i want to do is tell apache: Append this file (to the top or bottom) of
= ANY .htm, .html files. I have thousands of pages, so this needs to be done
= with Apache.
= 
= >
= > Regards,
= > Robert Andersson
= >

CSS (Cascading Style Sheets) will do this.


"I am never serious [said K.], and therefore I have to make jokes do
duty for both jest and earnest.  But I was arrested in earnest."
			--Franz Kafka, deleted fragment from _The_Trial_


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by Cody Harris <hc...@ns.sympatico.ca>.
----- Original Message ----- 
From: "Robert Andersson" <ro...@profundis.nu>
To: <us...@httpd.apache.org>
Sent: Saturday, August 16, 2003 10:26 PM
Subject: Re: [users@httpd] Adding banners


> Cody Harris wrote:
> > HOw do i write a little bit of code (like a banner) to a page
> > without using SSI (configuratgion file). Is this even possible?
>
> Open an editor and edit the HTML document?
>
> Sorry, but what do you mean? There are many ways of adding contents to a
web
> page, and (almost) all has nothing to do with Apache.

What i want to do is tell apache: Append this file (to the top or bottom) of
ANY .htm, .html files. I have thousands of pages, so this needs to be done
with Apache.

>
> Regards,
> Robert Andersson
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding banners

Posted by Robert Andersson <ro...@profundis.nu>.
Cody Harris wrote:
> HOw do i write a little bit of code (like a banner) to a page
> without using SSI (configuratgion file). Is this even possible?

Open an editor and edit the HTML document?

Sorry, but what do you mean? There are many ways of adding contents to a web
page, and (almost) all has nothing to do with Apache.

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org