#1
|
||||
|
||||
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?
__________________
Mason: Luckily we at the Agency use use a high-tech piece of software that will let us spot him instantly via high-res satellite images. Sergeant: You can? That's amazing! Mason: Yes. We call it 'Google Earth'. - Five Minute 24 S1 (it lives, honest!) "Everybody loves pie!" - Spongebob Squarepants |
#2
|
||||
|
||||
There's an idea, because let me tell you, I'd much rather have the Enterprise D or E than the NX-01
__________________
-KillerGM Well I guess I'll just live WITHOUT an avatar then! |
#3
|
||||
|
||||
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.
__________________
FiveMinute.net: because stuff is long and life is short [03:17] FiveMinZeke: Galactica clearly needs the advanced technology of scissors, which get around the whole "yanking on your follicles" problem. [03:17] IJD: cylons can hack any blades working in conjunction |
#4
|
||||
|
||||
Ooh! I like the second one! Can one of them be a salmon?
__________________
O to be wafted away From this black aceldama of sorrow; Where the dust of an earthy today Is the earth of a dusty tomorrow! |
#5
|
||||
|
||||
^ The Salmon of Doubt?
__________________
Methinks Ted Sturgeon was too kind. 'Yes, but I think some people should be offended.' -- John Cleese (on whether he thought some might be offended by Monty Python) |
#6
|
||||
|
||||
^ I wouldn't think so. Seems kinds fishy.
__________________
The first run through of any experimental procedure is to identify any potential errors by making them. |
#7
|
||||
|
||||
Quote:
__________________
FiveMinute.net: because stuff is long and life is short [03:17] FiveMinZeke: Galactica clearly needs the advanced technology of scissors, which get around the whole "yanking on your follicles" problem. [03:17] IJD: cylons can hack any blades working in conjunction |
#8
|
||||
|
||||
ARRRRGH!
Stealth puns. You never see them coming.
__________________
The first run through of any experimental procedure is to identify any potential errors by making them. |
#9
|
||||
|
||||
Quote:
It's holly iritating.
__________________
O to be wafted away From this black aceldama of sorrow; Where the dust of an earthy today Is the earth of a dusty tomorrow! |
#10
|
||||
|
||||
Zeke's the master of the stealth pun. He's a bit of a dirk that way.
__________________
The first run through of any experimental procedure is to identify any potential errors by making them. |
#11
|
||||
|
||||
Quote:
__________________
O to be wafted away From this black aceldama of sorrow; Where the dust of an earthy today Is the earth of a dusty tomorrow! |
#12
|
||||
|
||||
We've done that one already.
If he does get offended, he can go drown his sorrows in a gin sea.
__________________
The first run through of any experimental procedure is to identify any potential errors by making them. |
#13
|
||||
|
||||
The puns! They burn! But in a good way!
__________________
e of pi, fastest keyboard in the fora. e of pi: I know you have too much free time. Ddoof: HEY! e of pi: Well, so does anyone who posts on 5M.net. It comes from the extra 55 minutes. We are the BSG. Your resources and injokes wil be added to our own, depleting your fanbase. Resistance is futile. So say we all. Member of the Persons Who Believe that Ryan Connors Leslie Should Have Lines in Other Series Since He's Hardly In TOS Fivers |
#14
|
|||
|
|||
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*
__________________
Me, singing: Krieg, huh... wozu ist der gut? Um Europa zu übernehmen! Vote Morphine - the party for Not Crushing Opium! Yoda, to his ice-cream: The sauce is upon you, and soon, sprinkles must fall! |
#15
|
||||
|
||||
^You do that, I'll be in that corner moping because I had NO idea what you just said
__________________
-KillerGM Well I guess I'll just live WITHOUT an avatar then! |
#16
|
|||
|
|||
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.
__________________
Me, singing: Krieg, huh... wozu ist der gut? Um Europa zu übernehmen! Vote Morphine - the party for Not Crushing Opium! Yoda, to his ice-cream: The sauce is upon you, and soon, sprinkles must fall! |
#17
|
||||
|
||||
Quote:
Besides, Zeke is hoarding all the puns in caverns measureless to man...
__________________
O to be wafted away From this black aceldama of sorrow; Where the dust of an earthy today Is the earth of a dusty tomorrow! |
#18
|
||||
|
||||
Quote:
Quote:
__________________
FiveMinute.net: because stuff is long and life is short [03:17] FiveMinZeke: Galactica clearly needs the advanced technology of scissors, which get around the whole "yanking on your follicles" problem. [03:17] IJD: cylons can hack any blades working in conjunction |
#19
|
|||
|
|||
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.
__________________
Me, singing: Krieg, huh... wozu ist der gut? Um Europa zu übernehmen! Vote Morphine - the party for Not Crushing Opium! Yoda, to his ice-cream: The sauce is upon you, and soon, sprinkles must fall! |
#20
|
|||
|
|||
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/ 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:
__________________
Me, singing: Krieg, huh... wozu ist der gut? Um Europa zu übernehmen! Vote Morphine - the party for Not Crushing Opium! Yoda, to his ice-cream: The sauce is upon you, and soon, sprinkles must fall! |
|
|