Adding a topbar. (So can we do this or not Pirate Kitty / Morrus)??

Michael Morris

First Post
I have prepared a topbar specifically for the messageboards similar to the one in use on the Dusk Site but tailored to the messageboard. A test of it is here:

http://enworld.cyberstreet.com/hosted/Dusk/messageboard/titlebar.php

The file uses JAVA script, but then again so does the UUB boards themselves, so none of the browsers on this site should have any problem with it.

The generating files are all in

http://enworld.cyberstreet.com/hosted/Dusk/messageboards/

They are

menuheaderscript.php
menubody.php
mm_menu.js
arrows.gif
titlebar.gif

Installation
Installing the menubars, is self contained. If updates are needed later I can do this for you by changing the menuheaderscript.php file (I do not have to tamper with the main index file).

Place all the files above in the same directory as the forumn's index.php file. Then add these two lines of PHP code.

Somewhere in the header of the file

PHP:
 include("menuheaderscript.php");

Immediately after the body tag...

PHP:
 include("menubody.php");

The whole thing is only 20 pixels high, and I think it will be very useful. Though I suspect that it is possible to create an alternate index file on the boards to test this, I didn't want to try since its not my place to tamper with the boards.

Anyway Russ, Piratecat, I'd really like this to see use. What do you say?
 
Last edited:

log in or register to remove this ad


Excellent work.

For the admins: If the above installation doesn't work. try

<?php include("menuheaderscript.php"); ?>

and

<?php include("menubody.php"); ?>

Edit: Damn board formatting.
 
Last edited:


Michael_Morris said:
Darn it, I tried 6 times to get the boards to stop processing the PHP code with the tags... How did you do that?

Quote my post, it's standard "HTML special characters codes" ( & g t ; without the spaces for example)
 

Michael_Morris said:
Darn it, I tried 6 times to get the boards to stop processing the PHP code with the tags... How did you do that?

Code:
[COLOR=silver]He used "& lt" (without the space) 
instead of "<" and "& gt" (also w/o space) 
instead of ">"[/COLOR]




And I like a lot the menu bar :)
 
Last edited:

Ok, that's useful to know...

Actually, I should have thought of that.. Oh well - I'm too dependent on Macromedia Dreamweaver to encode special characters for me :P
 

Darkness made a good point, in that it could be a resource eater, but I doubt it. Either way, if it works, I'm voting for it.
 


Terraism said:
Darkness made a good point, in that it could be a resource eater, but I doubt it. Either way, if it works, I'm voting for it.
Here's Michael Morris' response to my query, BTW:

Michael_Morris said:
This is how much memory the two included files need...

menubody.php 1687 bytes
menuheaderscript.php 20,474 bytes

Total 22,161 bytes (21 K). This can't be cached, so it has to reload with *every* page. This comes out to just over 7 seconds / page @ 28.8 kbaud (the lowest end of modems still commonly in use).

Your browser can cache the other two involved files.
 

Remove ads

Top