Go Back   EN World D&D / RPG News > Meta - Forums About Forums > Meta

Meta Post comments and questions about the messageboards and other parts of EN World. If you have a problem, this is where to go. Moderator email addresses are posted here.

 
Share LinkBack Thread Tools Display Modes
Old 3rd March 2003, 03:42 AM   #1 (permalink)
Lost in the Machine
 
Michael Morris's Avatar
 
Join Date: Jan 2002
Location: Knoxville TN
Posts: 7,902
Michael Morris Goblin Sharpshooter (Lvl 2)
Send a message via ICQ to Michael Morris Send a message via AIM to Michael Morris Send a message via MSN to Michael Morris Send a message via Yahoo to Michael Morris
Adding a topbar. (So can we do this or not Pirate Kitty / Morrus)??

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/hoste...d/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/hoste...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 Code:
 include("menuheaderscript.php"); 
Immediately after the body tag...

PHP Code:
 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 by Michael Morris; 4th March 2003 at 10:19 PM..
Michael Morris is offline   Reply With Quote
Old 3rd March 2003, 03:54 AM   #2 (permalink)
Lost in the Machine
 
Michael Morris's Avatar
 
Join Date: Jan 2002
Location: Knoxville TN
Posts: 7,902
Michael Morris Goblin Sharpshooter (Lvl 2)
Send a message via ICQ to Michael Morris Send a message via AIM to Michael Morris Send a message via MSN to Michael Morris Send a message via Yahoo to Michael Morris
Just checked the spacing... The table code will be necessary. This is approximately what it will look like with the code.

http://enworld.cyberstreet.com/hoste...ard/sample.gif

I've been doing multiple edits to this post to get the appearance right. Seems the UUB translator tries to process html commands - I thought that was turned off, but oh well.

Last edited by Michael Morris; 3rd March 2003 at 05:01 AM..
Michael Morris is offline   Reply With Quote
Old 3rd March 2003, 05:17 AM   #3 (permalink)
Registered User
 
Join Date: Jan 2002
Posts: 1,823
Psionicist Goblin Sharpshooter (Lvl 2)
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.
__________________
The river sparkles and dances on the rocks.
At night, it flows deep and strong.

Last edited by Psionicist; 3rd March 2003 at 05:18 AM..
Psionicist is offline   Reply With Quote
Old 3rd March 2003, 05:33 AM   #4 (permalink)
Lost in the Machine
 
Michael Morris's Avatar
 
Join Date: Jan 2002
Location: Knoxville TN
Posts: 7,902
Michael Morris Goblin Sharpshooter (Lvl 2)
Send a message via ICQ to Michael Morris Send a message via AIM to Michael Morris Send a message via MSN to Michael Morris Send a message via Yahoo to Michael Morris
Darn it, I tried 6 times to get the boards to stop processing the PHP code with the tags... How did you do that?
Michael Morris is offline   Reply With Quote
Old 3rd March 2003, 05:41 AM   #5 (permalink)
Registered User
 
Join Date: Jan 2002
Posts: 1,823
Psionicist Goblin Sharpshooter (Lvl 2)
Quote:
Originally posted by Michael_Morris
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)
__________________
The river sparkles and dances on the rocks.
At night, it flows deep and strong.
Psionicist is offline   Reply With Quote
Old 3rd March 2003, 05:44 AM   #6 (permalink)
Registered User
 
Horacio's Avatar
 
Join Date: Jan 2002
Location: Brest - France
Posts: 5,241
Horacio Goblin Sharpshooter (Lvl 2)
Send a message via Yahoo to Horacio
Quote:
Originally posted by Michael_Morris
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:
He used "& lt" (without the space) 
instead of "<" and "& gt" (also w/o space) 
instead of ">" 



And I like a lot the menu bar

Last edited by Horacio; 3rd March 2003 at 05:44 AM..
Horacio is offline   Reply With Quote
Old 3rd March 2003, 05:47 AM   #7 (permalink)
Lost in the Machine
 
Michael Morris's Avatar
 
Join Date: Jan 2002
Location: Knoxville TN
Posts: 7,902
Michael Morris Goblin Sharpshooter (Lvl 2)
Send a message via ICQ to Michael Morris Send a message via AIM to Michael Morris Send a message via MSN to Michael Morris Send a message via Yahoo to Michael Morris
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
Michael Morris is offline   Reply With Quote
Old 3rd March 2003, 05:47 AM   #8 (permalink)
Registered User
 
Terraism's Avatar
 
Join Date: Jan 2002
Location: Savannah, GA
Posts: 1,464
Terraism Goblin Sharpshooter (Lvl 2)
Send a message via ICQ to Terraism Send a message via AIM to Terraism Send a message via MSN to Terraism Send a message via Yahoo to Terraism
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

"Say, has anybody seen Terraism's still-beating heart around here anywhere? Thanks!"
- Piratecat

Please take a look at my Favorite House Rules thread...
Terraism is offline   Reply With Quote
Old 3rd March 2003, 05:55 AM   #9 (permalink)
Registered User
 
Join Date: Jan 2002
Posts: 1,823
Psionicist Goblin Sharpshooter (Lvl 2)
Terraism: Shouldn't be a problem as it's at least 90% JavaScript, which runs locally and not server-side.
__________________
The river sparkles and dances on the rocks.
At night, it flows deep and strong.
Psionicist is offline   Reply With Quote
Old 3rd March 2003, 05:59 AM   #10 (permalink)
Hand and Eye of Piratecat [Moderator]
 
Darkness's Avatar
 
Join Date: Jan 2002
Location: Vienna
Posts: 12,428
Darkness has disabled Experience Points
Quote:
Originally posted by Terraism
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:

Quote:
Originally posted by Michael_Morris
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.
Darkness is offline   Reply With Quote
Old 3rd March 2003, 06:03 AM   #11 (permalink)
Lost in the Machine
 
Michael Morris's Avatar
 
Join Date: Jan 2002
Location: Knoxville TN
Posts: 7,902
Michael Morris Goblin Sharpshooter (Lvl 2)
Send a message via ICQ to Michael Morris Send a message via AIM to Michael Morris Send a message via MSN to Michael Morris Send a message via Yahoo to Michael Morris
Terra's right, it's JAVA script so it isn't going to suck up your processor's power - download time could be a problem, but even in the cast of 28.8 it's not that bad.

The server's only contribution is the upload time. And I would point out that more than a few folks have 'sigs well in excess of 21 K, so I don't *think* this addition is that much of a problem.

Last edited by Michael Morris; 3rd March 2003 at 06:05 AM..
Michael Morris is offline   Reply With Quote
Old 3rd March 2003, 06:15 AM   #12 (permalink)
Registered User
 
Dragongirl's Avatar
 
Join Date: Jul 2002
Posts: 2,285
Dragongirl Goblin Sharpshooter (Lvl 2)
It's and interesting idea, but with the boards already slowed down by all the 3.5 news gawkers (and I mean that in a nice way) I would rather not see something that slows it down more, even if only a few seconds a page. Can you make it optional?
Dragongirl is offline   Reply With Quote
Old 3rd March 2003, 06:19 AM   #13 (permalink)
Hand and Eye of Piratecat [Moderator]
 
Darkness's Avatar
 
Join Date: Jan 2002
Location: Vienna
Posts: 12,428
Darkness has disabled Experience Points
Michael Morris has since checked it again and found that the extra time is only 1/8 of the original estimate, BTW.
So it's not a biggie.
Darkness is offline   Reply With Quote
Old 3rd March 2003, 06:31 AM   #14 (permalink)
Lost in the Machine
 
Michael Morris's Avatar
 
Join Date: Jan 2002
Location: Knoxville TN
Posts: 7,902
Michael Morris Goblin Sharpshooter (Lvl 2)
Send a message via ICQ to Michael Morris Send a message via AIM to Michael Morris Send a message via MSN to Michael Morris Send a message via Yahoo to Michael Morris
Quote:
Originally posted by Darkness
Michael Morris has since checked it again and found that the extra time is only 1/8 of the original estimate, BTW.
So it's not a biggie.
I spoke too soon. My initial pessimistic outlook was correct.
Michael Morris is offline   Reply With Quote
Old 3rd March 2003, 06:33 AM   #15 (permalink)
Lost in the Machine
 
Michael Morris's Avatar
 
Join Date: Jan 2002
Location: Knoxville TN
Posts: 7,902
Michael Morris Goblin Sharpshooter (Lvl 2)
Send a message via ICQ to Michael Morris Send a message via AIM to Michael Morris Send a message via MSN to Michael Morris Send a message via Yahoo to Michael Morris
Quote:
Originally posted by Dragongirl
It's and interesting idea, but with the boards already slowed down by all the 3.5 news gawkers (and I mean that in a nice way) I would rather not see something that slows it down more, even if only a few seconds a page. Can you make it optional?
Making it optional would require altering the messageboard code in a major fashion. That said, it *theoretically can be done (It's a question of omitting 2 include calls).
Michael Morris is offline   Reply With Quote
Old 3rd March 2003, 06:36 AM   #16 (permalink)
Hand and Eye of Piratecat [Moderator]
 
Darkness's Avatar
 
Join Date: Jan 2002
Location: Vienna
Posts: 12,428
Darkness has disabled Experience Points
Quote:
Originally posted by Michael_Morris
I spoke too soon. My initial pessimistic outlook was correct.
Damn - that sucks.
Darkness is offline   Reply With Quote
Old 3rd March 2003, 06:36 AM   #17 (permalink)
Lost in the Machine
 
Michael Morris's Avatar
 
Join Date: Jan 2002
Location: Knoxville TN
Posts: 7,902
Michael Morris Goblin Sharpshooter (Lvl 2)
Send a message via ICQ to Michael Morris Send a message via AIM to Michael Morris Send a message via MSN to Michael Morris Send a message via Yahoo to Michael Morris
BTW, if you want to get a firm idea on how this would affect downloads, visit the Dusk pages (empty your cache first if you've been there before). The code used on those pages is virtually identical to what I'm suggesting.
Michael Morris is offline   Reply With Quote
Old 3rd March 2003, 08:51 AM   #18 (permalink)
Rock Monkey
 
Blacksway's Avatar
 
Join Date: Jan 2002
Location: Newcastle, England
Posts: 436
Blacksway Goblin Sharpshooter (Lvl 2)
Don't mean to throw cold water on what is quite a nice looking menubar, but I can't seem to get it working in Netscape. Has anyone tried it on a Mac?
__________________
/-Sam Judson-/
Homebrews Creature Site - More each day and now with added edit!
Rondaks Portal - Web based PBEM
Blacksway is offline   Reply With Quote
Old 3rd March 2003, 09:05 AM   #19 (permalink)
Lost in the Machine
 
Michael Morris's Avatar
 
Join Date: Jan 2002
Location: Knoxville TN
Posts: 7,902
Michael Morris Goblin Sharpshooter (Lvl 2)
Send a message via ICQ to Michael Morris Send a message via AIM to Michael Morris Send a message via MSN to Michael Morris Send a message via Yahoo to Michael Morris
Version? Netscape isn't 4.0 compliant until version 5.0 (which is the main reason they lost out to MSIE).
Michael Morris is offline   Reply With Quote
Old 3rd March 2003, 09:19 AM   #20 (permalink)
Rock Monkey
 
Blacksway's Avatar
 
Join Date: Jan 2002
Location: Newcastle, England
Posts: 436
Blacksway Goblin Sharpshooter (Lvl 2)
I was using netscape 4.7. Still a browser we check for here at work. (I'm a web developer)
__________________
/-Sam Judson-/
Homebrews Creature Site - More each day and now with added edit!
Rondaks Portal - Web based PBEM
Blacksway is offline   Reply With Quote


Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


And yet another word from our sponsors
Visit Our Sponsors
Visit Our Sponsors... Again
Powered by vBadvanced CMPS v3.0.1

All times are GMT +1. The time now is 12:07 AM.


Site Contents © 2008 ENWorld
PHP Ajax Multimedia Web Framework © 2008 Digital Media Graphix
Powered by vBulletin® Version 3.8.0 Beta 1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

"Vault Data" powered by VaultWiki v2.5.1.
Copyright © 2008 - 2009, Cracked Egg Studios.