rejetto forum

How to edit templates in FHFS.

giggy · 12 · 9437

0 Members and 1 Guest are viewing this topic.

Offline giggy

  • Occasional poster
  • *
    • Posts: 26
    • View Profile
Can anyone tell me how to edit fhfs templates to be suitable to my own website such as using my own logo, etc?

Thank you for your prompt replies in advance.
« Last Edit: January 05, 2013, 09:13:51 PM by Mars »


Offline giggy

  • Occasional poster
  • *
    • Posts: 26
    • View Profile
I forgot to mention that I am using 2.05.
« Last Edit: January 05, 2013, 09:14:11 PM by Mars »


Offline raybob

  • Moderator
  • Tireless poster
  • *****
    • Posts: 454
    • View Profile
    • FileSplat.com
Open up the various TPL files in the FHFS folder with notepad and start editing.

Be very careful though, it's very easy to mess up functionality.


Offline giggy

  • Occasional poster
  • *
    • Posts: 26
    • View Profile
Thanks. But could you answer me one specific question I have now?

If I want to replace FHFS logo with my own, where can I start?

I see base64 files are the only image files and I velieve I should replace a file with that extension and I do not know hpow to edit that file.

Thank you for your answer in advance.
« Last Edit: January 06, 2013, 03:44:21 PM by giggy »


Offline raybob

  • Moderator
  • Tireless poster
  • *****
    • Posts: 454
    • View Profile
    • FileSplat.com
Well, you can replace the base64 data with that from your own image (you can find base64 encoders online) or you can also just replace the base64 data with a URL to your logo.  Just open up the file with notepad to see the data.  In FHFS, pretty much everything that's not an EXE or DLL is written in plain-text and can be edited with notepad (that's what I use for writing FHFS, no IDE or anything :) ).

Basically whatever you put in that file will go into the HTML between the quotes in

 
Code: [Select]
<img src="" />
« Last Edit: January 07, 2013, 03:58:28 AM by raybob »


Offline giggy

  • Occasional poster
  • *
    • Posts: 26
    • View Profile
Well, you can replace the base64 data with that from your own image (you can find base64 encoders online)
Basically whatever you put in that file will go into the HTML between the quotes in


So I should convert my img to base64. Right?

or you can also just replace the base64 data with a URL to your logo.  Just open up the file with notepad to see the data.


You mean to open up the base64 file or template file?

And the folder, resource" is the only place image files are stored. Right?

Thanks.


Offline raybob

  • Moderator
  • Tireless poster
  • *****
    • Posts: 454
    • View Profile
    • FileSplat.com
1) Yes

2) Open the .base64 file.  This can contain either base64 image data or a URL to an external image.

3) Yes, all images are stored encoded in base64 format to be sent out as part of the webpage.


Offline bobf

  • Occasional poster
  • *
    • Posts: 10
    • View Profile
I've been trying to put my own logo in FHFS but I can't seem to figure out how. When I open the base64 image file in a text editor it's just a bunch of mumbo jumbo. I don't see any paths or anything that would be useful.

I've also tried to code my own image and rename the base64 file to a file name that's already in the /resources/images directory but it doesn't seem to do anything. I can't even break anything it seems!

I've never worked with base64 images before so any other help you can lend would be great. Thanks!


Offline raybob

  • Moderator
  • Tireless poster
  • *****
    • Posts: 454
    • View Profile
    • FileSplat.com
Simply replace all the mumbo jumbo in the .base64 file with a URL to an image you want to use. 


Offline bobf

  • Occasional poster
  • *
    • Posts: 10
    • View Profile
Can I use the local url path in Windows to an image?

I managed to break the main fhfs.png image but it's not showing up with the image I want it to. The fhfs image simply just goes away. Almost there...

Thanks for the help.


Offline bobf

  • Occasional poster
  • *
    • Posts: 10
    • View Profile
I got it to work with an image online but can I use a local image or does it have to be an url that's on the internet?

Thanks again.


Offline raybob

  • Moderator
  • Tireless poster
  • *****
    • Posts: 454
    • View Profile
    • FileSplat.com
It either has to be a URL on the internet or encoded base64 data.  Whatever is in that file will be sent directly to the client's browser, so it would not be able to open a local file on the server.