Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
5 registered (Flyin V, Harold, jacampbe, Ruben Rocha, Thelockman), 22 Guests and 18 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 11/08/06
Posts: 36
Top Posters (30 Days)
Ruben Rocha 179
Gizmo 112
Rick 106
Thelockman 79
driv 43
AllenAyres 35
ntdoc 28
Ian 24
Sirdude 23
ScriptKeeper 20
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: 2077
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
No Birthdays
Recent Topics
I'm the Admin but.....
by David DelMonte
Today at 11:12 AM
Fatal error: Smarty::require_once
()

by ThreadsUser
Today at 08:17 AM
PayPal batch file for ID'ing expired and failed payment subscriptions?
by Mitch P.
Today at 06:02 AM
Shrinking graemlins
by Djuma
Yesterday at 05:48 PM
2 problems I'm seeing now.
by DougMM
Yesterday at 04:39 PM
Forum Stats
4261 Members
33 Forums
30535 Topics
154977 Posts

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