Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

"Hosted on" banner


  • Please log in to reply

#1
Supercalifragilistic

Supercalifragilistic

    Member

  • Member
  • PipPipPip
  • 404 posts
How do I make a banner appear at the top of any page on my site?

For example, if I give someone some space, it says "Hosted by domain.com" on a banner along the top.

Here's an example, http://www.phpbbhacks.com/ (the iFroggy bit at the top)

Sorry for all these questions lately. Thanks.

Edited by Supercalifragilistic, 22 July 2007 - 02:17 PM.

  • 0

Advertisements


#2
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Have you got your banner made yet? Can you use Server Side Includes (SSI)? What code have you done already and do you have your pages online yet? There are different ways so not giving any code here yet for banner.

Ron
  • 0

#3
scozzard

scozzard

    Member

  • Member
  • PipPip
  • 26 posts
What technology are you using? You could in any instance use an includes file to have on your page tables top row..? Otherwise if you are using .NET you could integrate it into your masterpage template
  • 0

#4
Supercalifragilistic

Supercalifragilistic

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 404 posts
I want the banner to be 100% width (maybe image at left and image at right, with pure black in the middle that gets stretched 100%?), and about 10 pixels high.

I can use PHP, and have unlimited MySQL databases. The web host says, "Apache/2.0.54 (Fedora) Server" on a 404 page.

Thanks
  • 0

#5
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Are you talking about two images, one left and one right, with a 10px high black bar between them? There are still many ways of doing this and, without the image(s) you are working from, it's hard to visualize what you want. The link you gave shows one image at the left.

Ron
  • 0

#6
Supercalifragilistic

Supercalifragilistic

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 404 posts
Okay, 20px high

Left image (example)
Posted Image

Center (example)
Posted Image

Right (example)
Posted Image
  • 0

#7
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Is this close to what you want:

Banner

Ron
  • 0

#8
Supercalifragilistic

Supercalifragilistic

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 404 posts
Yeah, like that on top of every page.
  • 0

#9
ScHwErV

ScHwErV

    Member 5k

  • Retired Staff
  • 21,285 posts
  • MVP
http://www.google.co...r side includes
  • 0

#10
Supercalifragilistic

Supercalifragilistic

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 404 posts
So, I would use PHP to display the banner, and then the HTML would show under it?
  • 0

Advertisements


#11
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
I use SSI (or will as I'm still converting files) for all my pages. If you want to use SSI, find or make an .htaccess file. Put it in your root directory. On the file put:

AddType text/html .shtml
AddHandler server-parsed .shtml

Make a plain file that contains the banner code that you want to use. Mine, if you want to use it, but you need to transfer styling to a separate CSS file that you use for all pages. Name file whatever you want with an HTML extension. Do not use the doc type, <html>, <head>, <meta>, <title> or <body> tags. Only what you would need to put banner on each page.

You will have to rename all your pages from *.html to *.shtml.

Say, you named the file _a_banner.html, you would then place the following where you want the banner to appear in one of two ways:

File in same directory: <!--#include file="_a_banner.html" -->

File in different directory: <!--#include virtual="/_a_banner.html" -->

Test it online to see if you have done it right and banner is where you want it on the *.shtml file(s).

NOTE: I named my files with " _a_ " to keep them alphanumerically at the top in my editor's window. Name them as you like.

Ron

Edited by Major Payne, 27 July 2007 - 05:29 PM.

  • 0

#12
Supercalifragilistic

Supercalifragilistic

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 404 posts
Okay, I think I understand. Thanks.
  • 0

#13
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
You're welcome. I hope you have downloaded and saved the example page from my site as I will delete it soon. Or could attach here if you want????

Ron

Edited by Major Payne, 27 July 2007 - 07:52 PM.

  • 0

#14
Supercalifragilistic

Supercalifragilistic

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 404 posts
Sorry, which page?
  • 0

#15
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Attached.

Ron
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP