Home       About       Bugs       Contact       FAQ       Links       Status       Voices    

6. Our server inserts a banner

At this point, we have pretty much translated the page, but before we can contemplate sending it back, we need to put in a message at the top to confirm that this isn't the original page, but a modified page supplied by The Voices of Many.

The trick here is to look for the BODY tag in the page, as this specifies where the main content starts. If we find it, url.php inserts this into the page just after the BODY tag is finished, and moves on.

Otherwise it just puts the banner at the very start of the document and gets ready to move onward again.

At this point, the page has the banner, translated text and is - now - ready to go. Please move on to part 7 (the last part, you'll be glad to know), to see about getting the content back to the user.