Previous Thread
Next Thread
Print Thread
Hop To
#168123 11/11/2006 9:28 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
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 11: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/12/2006 12:17 AM
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/12/2006 12:20 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
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/12/2006 12:25 AM
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/12/2006 12:33 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
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,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
sometimes wink

Ian #168176 11/12/2006 6:21 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
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
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
2 members (Ruben, 1 invisible), 998 guests, and 205 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 20230217)