CUTCODEDOWN
Minimalist Semantic Markup

Welcome Guest
Please Login or Register

If you have registered but not recieved your activation e-mail in a reasonable amount of time, or have issues with using the registration form, please use our Contact Form for assistance. Include both your username and the e-mail you tried to register with.

Author Topic: directory layout changes  (Read 2425 times)

Jason Knight

  • Administrator
  • Hero Member
  • *****
  • Posts: 1054
  • Karma: +188/-1
    • CutCodeDown -- Minimalist Semantic Markup
directory layout changes
« on: 1 Dec 2020, 06:31:23 am »
I've moved css into it's own /template/templatename/css, but should I move the .template.php files into their own "php" subdirectory as well? Would that be an improvement, or would it make things confusing?

Side note, the admin panel for user creation/deletion/listing is about halfway there.
We are all, we are all, we are all FRIENDS! For today we're all brothers, tonight we're all friends. Our moment of peace in a war that never ends.

GrumpyYoungMan

  • Hero Member
  • *****
  • Posts: 792
  • Karma: +8/-0
    • Grumpy Young Man
Re: directory layout changes
« Reply #1 on: 1 Dec 2020, 06:41:40 am »
I've moved css into it's own /template/templatename/css, but should I move the .template.php files into their own "php" subdirectory as well? Would that be an improvement, or would it make things confusing?

I like that idea as it would making skinning it easier to?

Side note, the admin panel for user creation/deletion/listing is about halfway there.

:)
Trying to learn a new trick to prove old dogs can learn new ones...

Total Novice have-a go Amateur Programmer - not sure that is the right thing to say... but trying to learn...

xmohamadx

  • Junior Member
  • *
  • Posts: 23
  • Karma: +2/-0
Re: directory layout changes
« Reply #2 on: 1 Dec 2020, 07:08:45 am »
I've moved css into it's own /template/templatename/css, but should I move the .template.php files into their own "php" subdirectory as well? Would that be an improvement, or would it make things confusing

not a big deal but seems more organized, maybe someday php template files grow!
but surely not confusing

benanamen

  • Full Member
  • ***
  • Posts: 189
  • Karma: +18/-0
Re: directory layout changes
« Reply #3 on: 1 Dec 2020, 12:02:21 pm »
I expect ALL css to be in a single folder. I expect ALL Js to be in a single folder. I expect a templates folder to ONLY have templates and either be in the the public dir or above it. Anything else is a "surprise".
To save time, let's just assume I am never wrong.

GrumpyYoungMan

  • Hero Member
  • *****
  • Posts: 792
  • Karma: +8/-0
    • Grumpy Young Man
Re: directory layout changes
« Reply #4 on: 1 Dec 2020, 12:16:26 pm »
I expect ALL css to be in a single folder. I expect ALL Js to be in a single folder. I expect a templates folder to ONLY have templates and either be in the the public dir or above it. Anything else is a "surprise".
Or a “skin”(s) directory for various skin/CSS files?
Trying to learn a new trick to prove old dogs can learn new ones...

Total Novice have-a go Amateur Programmer - not sure that is the right thing to say... but trying to learn...

benanamen

  • Full Member
  • ***
  • Posts: 189
  • Karma: +18/-0
Re: directory layout changes
« Reply #5 on: 1 Dec 2020, 12:25:15 pm »
Yes. Point being logically grouped together.
To save time, let's just assume I am never wrong.

John_Betong

  • Full Member
  • ***
  • Posts: 218
  • Karma: +24/-1
    • The Fastest Joke Site On The Web
Re: directory layout changes
« Reply #6 on: 1 Dec 2020, 05:24:59 pm »
I prefer a common assets folder with css, js,  svg and imgs sub folders just below root and containing all public accessible files.

All system and application files above the root making it easier to update or revert back to previous  versions.


Root directory only contains an index.php file used to call applications above the root.



« Last Edit: 1 Dec 2020, 05:27:35 pm by John_Betong »
Retired in the City of Angels where the weather suits my clothes

benanamen

  • Full Member
  • ***
  • Posts: 189
  • Karma: +18/-0
Re: directory layout changes
« Reply #7 on: 1 Dec 2020, 06:03:37 pm »
I prefer a common assets folder with css, js,  svg and imgs sub folders

Sure. Right now we have CSS files mixed with Php template files in a templates directory and JS in a scripts directory in the templates folder.
To save time, let's just assume I am never wrong.

John_Betong

  • Full Member
  • ***
  • Posts: 218
  • Karma: +24/-1
    • The Fastest Joke Site On The Web
Re: directory layout changes
« Reply #8 on: 1 Dec 2020, 07:59:19 pm »
Until I’m back on the desktop...

could someone confirm that Jason’s below the root directory structure prevents viewing files within the directory?

Normally I would view source then click on the link to the CSS file which would show the contents.

Edit:
Same for JavaScript and images. The reason why these files can be viewed by Joe Public for SEO purposes.

Edit - back on the desktop:
Most of the files could be viewed except for the favicon.ico
Quote

ERROR 404 - Not Found!
The following error occurred:The requested URL was not found on this server.
Please check the URL or contact the webmaster.


« Last Edit: 1 Dec 2020, 11:13:37 pm by John_Betong »
Retired in the City of Angels where the weather suits my clothes

xmohamadx

  • Junior Member
  • *
  • Posts: 23
  • Karma: +2/-0
Re: directory layout changes
« Reply #9 on: 2 Dec 2020, 12:29:40 am »
Most of the files could be viewed except for the favicon.ico

There is no such file, there wasn't from the beginning, the name of the file just written.

John_Betong

  • Full Member
  • ***
  • Posts: 218
  • Karma: +24/-1
    • The Fastest Joke Site On The Web
Re: directory layout changes
« Reply #10 on: 2 Dec 2020, 01:52:38 am »



@xmohamdx,


./deathshadow/default.ini.php:
   13  [link]
   14  favicon[rel]  = "shortcut icon"
   15: favicon[href] = favicon.ico


The missing favicon.ico is causing the ERROR 404 - Not Found!
« Last Edit: 2 Dec 2020, 01:55:19 am by John_Betong »
Retired in the City of Angels where the weather suits my clothes

xmohamadx

  • Junior Member
  • *
  • Posts: 23
  • Karma: +2/-0
Re: directory layout changes
« Reply #11 on: 2 Dec 2020, 02:07:03 am »

./deathshadow/default.ini.php:
   13  [link]
   14  favicon[rel]  = "shortcut icon"
   15: favicon[href] = favicon.ico


The missing favicon.ico is causing the ERROR 404 - Not Found!

Yes, as I said the name of the file (favicon.ico) is just written in the default.ini.php, but the file itself doesn't exist in the directory, I did add my "favicon.ico" to fix.

Jason Knight

  • Administrator
  • Hero Member
  • *****
  • Posts: 1054
  • Karma: +188/-1
    • CutCodeDown -- Minimalist Semantic Markup
Re: directory layout changes
« Reply #12 on: 2 Dec 2020, 02:18:29 am »
Ah the petty stupid shit I assume people are smart enough to figure out. My bad.
We are all, we are all, we are all FRIENDS! For today we're all brothers, tonight we're all friends. Our moment of peace in a war that never ends.

 

SMF spam blocked by CleanTalk

Advertisement