rejetto forum

HTML @ root

0 Members and 1 Guest are viewing this topic.

Offline Tech-Marty

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
I should be able to figure this out, but haven't yet.
I implemented HFS in a high school environment in hopes that classes could go almost paperless.

It's working well so far from the teacher feedback I've received.

I'm trying to use HTML simple web pages as links to teacher folders and class period folders.

It works great until I put a page in root, then it seems that the hfs.tpl won't display properly further down in the folder hierarchy. There is no background, all justification is to the left, the boxes normally on the left like login box, actions box are the entire width of the page.

This is hard to explain, if you would like to see my problem, I can send you a link to my test server at home.

Thanks


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
ok, let's try.
send the link privately to support@rejetto.com
and please in the email link this topic


Offline Tech-Marty

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
Thank you for looking into this for me.
I think I have it figured out, although I'm not sure why I had to make the changes I did.

These 2 entries were in the HFS onscreen log file:
Requested GET /?mode=section&id=style.css
Requested GET /?mode=section&id=lib.js

The /?mode=section&id=lib.js was the error IE 8 was giving me.

I know some basic HTML programming, and a little javascript,and nothing about css.
I decided to try to edit my default template and remove the / in both entries and it works just great now.

Maybe someone could explain why I had to do this to make it work.

Thank you again...I think HFS great, teachers and studentsboth love how easy it is to use!


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
i clicked the link just as a test but had no time to look at the problem yet.
i'm not home


Offline crazyboris

  • Tireless poster
  • ****
    • Posts: 140
    • View Profile
simple.

look at this.


see the / at the end.
same happends on your page.
so your "links" is /?mode=section&id=lib.js

therefor you will get 2 /
www.yoursite.com//?mode=section&id=lib.js
it will be like that.


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 911
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
if you have the files added to your hfs and have permission flags: hidden / don't log/ broweserable....

in html:

css file:
in html code having this line adjusted to your path in the head tags
<link href="https://bmartino1.dyndns.org/template/HTTPS_HTML_CSS.css" rel="stylesheet" type="text/css" />

Scripts:
:: and some where in between the body and the head the java script:

<script src="https://bmartino1.dyndns.org/main.js"></script>
------------------------------------
adding these to your html code will grantee that the files will load with the pages, if this issues hasn't been fixed...

This will make any html page lad these scripts in the event they need them...

Good luck, i have pitched this to my local High school for basic web page test and development, and it was a hit for the class...
**Also make sure your schols network admin known as he/she may block it due to what it is...
(portabe web server... some school network admins don't want this on there network...)
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing