News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

suggestion - default paths/URLs

Started by Kindred, August 26, 2024, 08:53:42 AM

Previous topic - Next topic

Kindred

I'd like to suggest that 3.0 implement a default structure.

In other words,  allow an admin to define the themes,  avatar and attachments paths if they desire  -- but default to the root structure defined in Settings.php if not specifically overwritten.

Path and URL would then not need to be redefined in multiple places,  especially during a server move.  Change the base setting and everything else gets the global assignment unless told to use a custom assignment.

This is usually the number one problem when admins move a site or even just switch from http to https.

It also removes the need to run repair_settings.php twice on a server move.

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

Even better, make the path handling be aware of $boarddir/$boardurl and friends meaning that you define the default theme dir as $boarddir/Themes/default, the default theme URL as $boardurl/Themes/default and everyone wins.
Holder of controversial views, all of which my own.


Kindred

Arantor,

Yes, that's what I meant.  I am just sleep deprived, so I couldn't word
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: