Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 142
G
member
member
G Offline
Joined: Jun 2006
Posts: 142
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
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
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

Joined: Jun 2006
Posts: 142
G
member
member
G Offline
Joined: Jun 2006
Posts: 142
Unfortunately I didn't have time to fix it properly, so I just changed to PNG in all the files.



aka Olle Johansson

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
Who's Online Now
1 members (Ruben), 807 guests, and 148 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)