About the (eventual) skin
I was just thinking, it would be really cool Zeke if you created five different skins for the board that are all the same bar the ship that appears in the top left hand logo deely. Being able to pick which series you want displayed would be very very nice indeed, and not all that much work, surely?
|
There's an idea, because let me tell you, I'd much rather have the Enterprise D or E than the NX-01
|
I've had this idea before. The bad news is, it won't work. The good news is, I have another idea which might.
The thing about skins is that each one has its own folder of .tpl files which are templates for the various pages. That means that every time I make a modification to the forums -- the suggested gender mod, for example -- I have to edit the relevant .tpl files in both of our current skins. Those files aren't quite identical, so I have to edit and upload them separately just to be safe. You see the problem: if we had a skin for every ship you guys might want in the forum logo, maintenance would become a nightmare. However, I think there's another way to do it. What I can do is add another field to the user profile allowing you guys to choose from various logos. Based on your choice, the forum header template could then load the appropriate logo (as long as you were logged in). That would be more work than the gender mod, but I think I could do it. A simpler alternative would just be to make a bunch of logos and make the selection random. I might try that first. |
Ooh! I like the second one! Can one of them be a salmon?
:D |
^ The Salmon of Doubt?
|
^ I wouldn't think so. Seems kinds fishy.
|
Quote:
|
ARRRRGH!
Stealth puns. You never see them coming. |
Quote:
It's holly iritating. |
Zeke's the master of the stealth pun. He's a bit of a dirk that way.
|
Quote:
|
We've done that one already.
If he does get offended, he can go drown his sorrows in a gin sea. |
The puns! They burn! But in a good way!
|
Quote:
Or, better yet, I know there are ways to use a php file to dynamically select the image that gets displayed... say that you add one field to each user's profile where they select which ship they'd like to see, and then point the layout at a php script for displaying the pic they'd chosen? *is gonna try making that one himself* |
^You do that, I'll be in that corner moping because I had NO idea what you just said
|
okay, I'll try again..
php - the scripting language that this forum is written in - typically has the ability to manipulate images built into it. It is possible to create a php script which you can call as an image file, and which will just return an image when called. I use one such script to make thumbnails for my photo gallery. The point is, that you could set the image to link to one of these scripts instead of to an actual file, and you could have the script look up with ship the person in question prefers, and send out the correct image file for that person. Only one style, a slight modification to the database, a slight modification to the signup and profiles pages, and 1 fairly straightforward php script and you're laughing. |
Quote:
Besides, Zeke is hoarding all the puns in caverns measureless to man... |
Quote:
Quote:
|
mod_rewrite's an apache module for doing slightly more complicated redirects - for instance, redirecting every url containing '.tpl' to a different folder.
.htaccess is a 'supplementary' configuration file for apache that sits in the directory it's meant to affect. I'm going to modify one of the test forums I keep to try and get the dynamic image generator working, if you want to give that mod a try, let me know. |
Okay, I just spent awhile sketching out the first half of an idea...
(this needs mod_rewrite - ask your host if that's available) First up, the two example files I made you can find at http://thirdcursus.com/partial-mod.zip Now, the way I made this section of the mod work is to move all the contents of the /templates/<templatename>/images/ folder to a new folder (I used /templates/<templatename>/target/ when I was writing it). Then edit the .htaccess file so that it contains the proper URL for the folder you moved the images to. (There's only one URL in the file, so just change that to the URL you've used), and place it in the now-empty images folder. Next, you need to edit the spic.php file. The 6 variables at the top will need to be replaced with ones that will allow read access to the phpbb_users table (or whatever you named your equivalent). The first variable ($field) needs to be set to the field in the users table that will be used to store the person's choice of picture. the second, $default, is the picture you want someone to see if they haven't made a selection yet. The spic.exe file then goes into the 'target' folder along with the images. This system also needs you to add one field to the user table (remember to allow this to be null, or you'll have to modify the signup process as well), and to modify the profile page to allow people to chose options from a drop-down box to go into that field. *grins* That was an hour well-wasted, I think. Anyway, this is the code from the two files, feel free to play around with it. Quote:
Quote:
|
My...Brain...Hurts...
:P |
Quote:
|
Quote:
|
Huh?
|
Elseif Eregi. I think I've met her.
|
...you know, it is possible to make a worse joke then that one. Just not easy.
|
Anyone wanna try?
|
I try all the time. Doesn't it show?
By the way, that round of Dirk Gently references makes me wonder -- what do you guys think of it? I've only read the first one so far, and it was great stuff, but I found the ending really, really fanboyish. (Bach was a great composer, to be sure, but blessed with the music of the spheres?) whoiam: Thanks very much -- I'll check your stuff out as soon as I've taken care of some more immediate things. |
Quote:
For this reason, imho, the second Gently novel, which grew out of the character and not the need to recycle a story, is superior to the first. |
Quote:
On DGHDA: It's very Adamsy. It's very funny. It's utterly insane. I prefer "The Long, Dark Teatime of the soul." ;) |
Niiiiiice job, Zeke. ::clicks reload to see all the new Forum piccies::
|
Ohhh....Andromeda...shiny....
|
*presses F5 a lot* Niiiice.
|
Alright. While I like the idea, and the basic effect, there is one thing that bugs me. The images are different heights, so the main body of the forum starts in a different place depending on which image it is. Any chance of fixing this?
|
It bugs me too, but by the time I realized the problem, it was late and I was exhausted from making six of these things in a row. Look, images by me are temporary, all right, guys? I have someone with genuine experience working on new graphics for the whole site. When we have a proper skin for this forum, I guarantee the graphics will look professional.
|
Okay. It's pretty minor, anyway. Glad to hear about you getting some help with this.
|
By the way, anyone who has an all-consuming hunger to see the full set of images will find them here.
|
Looking at them all at once, I think I like the E-E one best.
|
yep yep yep yep yep yep and yep
I have seen them all :D should download them and defend them |
To defend them from... their enemies.
(Sorry. ReBoot moment.) DS9 is my favourite so far. It's vivid. |
All times are GMT. The time now is 11:30 PM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.