Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
3 registered (Island Piper, Jim, packlite), 20 Guests and 18 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/25/08
Posts: 8
Top Posters (30 Days)
Ruben Rocha 167
Rick 116
Gizmo 107
Thelockman 63
driv 56
AllenAyres 35
ScriptKeeper 34
Ian 31
Mark S 30
blaaskaak 29
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
Topic Options
Rate This Topic
#215500 - 07/15/08 12:43 PM Remove hard-coded image references
Gardener Offline
member

Registered: 06/06/06
Posts: 157
Loc: Sweden
It would be a good idea if the image names weren't hardcoded into scripts, and spread all over the place.

I updated my threads to use PNG images today, and I needed to change not only templates, but scripts, libs includes and even javascript files. There was also at least one admin script that needed change. Even for images that there was image upload functionality for I had to modify code.

It would be nice if there was a centralized list of all the image names that could be easily updated. This could then be used in the entire system.
_________________________
aka Olle Johansson

Top
#215501 - 07/15/08 01:07 PM Re: Remove hard-coded image references [Re: Gardener]
Sirdude Offline

*****

Registered: 04/19/07
Posts: 2066
Loc: SoCal, USA
did you re-hardcode them to the PNGs or did you make it flexible ? laugh

we could all benefit, if you did it the way you are suggesting it be done wink
_________________________


Top
#215504 - 07/15/08 01:54 PM Re: Remove hard-coded image references [Re: Sirdude]
Gardener Offline
member

Registered: 06/06/06
Posts: 157
Loc: Sweden
Unfortunately I didn't have time to fix it properly, so I just changed to PNG in all the files.
_________________________
aka Olle Johansson

Top


Shout Box

Today's Birthdays
Neptin
Recent Topics
How do I set Moderation Queue for an individual user?
by luket
Today at 11:28 AM
Custom Island per Forum?
by unixpaul
Today at 10:18 AM
SQL Corruption?
by Jason Carey
Today at 05:52 AM
adding views column to portal page
by nick1
Today at 05:12 AM
Upload broken in 7.4.1
by MacW
Today at 03:23 AM
Forum Stats
4247 Members
33 Forums
30483 Topics
154643 Posts

Max Online: 978 @ 06/24/07 08:19 PM