Previous Thread
Next Thread
Print Thread
Hop To
#168123 11/11/2006 8:28 PM
Joined: Jun 2006
Posts: 16,369
Likes: 126
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,369
Likes: 126
Had a thought... I've seen this somewhere and found it pretty nice...

Ok, modding your forum invalidates your support from infopop, and to un-mod things is easy since you can just upload the old files right...

how about we have a "mod" directory for templates/scripts/etc (templates/mods) or a "mod" extension (showmembers.inc.mod for example) which will override the original files; thus the originals are untouched, and replacements are used if they are available...

So (ex1):
if the script associated with showmembers.inc.php is called, and showmembers.inc.mod exists, showmembers.inc.mod is used instead of showmembers.inc.php.

So (ex2):
if the script associated with showmembers.inc.php is called, and showmembers.inc.php exists in the mod directory, showmembers.inc.php in the mod directory is used.

This would be helpful for those who modify their forums, and don't want to worry about re-modding for an upgrade (as they can use beyondcompare or visually edit the scripts to apply the updates to their modded files)...

what do you think?


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #168135 11/11/2006 10:41 PM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
Great idea Giz, that would save a lot of time for those of us who use mods a lot. I know with the gallery software I use, inside the template directory there is a local directory where you put your modded stuff. It looks there first and when you upgrade it wont over ride the modded file in the local directory.

Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
yes, please smile


- Allen
- ThreadsDev | PraiseCafe
Gizmo #168139 11/11/2006 11:17 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I really like the idea, and it would be fairly easy to implement. The only thing I'm not sure about is all of the extra file_exists() calls. Every place this was used it would need to do a file_exists to see if a modded version exists. Since we have a header/footer and the body template, you'd be looking at 3 file_exists for the templates and 1 for the script, for a total of 4 for every page load. I'd need to do some benchmarking and see what type of impact this would cause on a busy forum.

Rick #168140 11/11/2006 11:20 PM
Joined: Jun 2006
Posts: 16,369
Likes: 126
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,369
Likes: 126
Perhaps we could have a inc.mods.php that has a simple system in it:
Code
$showmembers == 0;
$viewflat == 1;

Then if 0 use stock, if 1 use modded; then we wouldn't have to use a ton of if exists? woudln't be dummyproof, but it'd save some time in the benchmarking market no?


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #168143 11/11/2006 11:25 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Actually, we might be able to use some type of caching system for this. The admin would need to manually rebuild it, but basically it would do a scan and build a cache file of all scripts/templates that have a modded counterpart.

Something to chew on...

Rick #168144 11/11/2006 11:33 PM
Joined: Jun 2006
Posts: 16,369
Likes: 126
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,369
Likes: 126
See, sometimes I have good ideas :nod:


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 3,839
Likes: 1
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,839
Likes: 1
sometimes wink

Ian #168176 11/12/2006 5:21 PM
Joined: Jun 2006
Posts: 16,369
Likes: 126
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,369
Likes: 126
I've had a few...
SE Friendly URL's
CAPTCHA
Moficiation System

and i'm sure there where others over the years lol...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Profile avatar storage settings
by SenecaFlyer - 12/05/2024 1:24 PM
Not allowing attachment over 2m
by ehill - 12/03/2024 3:16 PM
New Admin Here
by SenecaFlyer - 12/02/2024 4:14 PM
Who's Online Now
2 members (Ruben, Gizmo), 953 guests, and 102 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.1
(Snapshot build 20240918)