Author Topic: Custom Sections(?) In HTML Template  (Read 1394 times)

0 Members and 1 Guest are viewing this topic.

Offline ZeroKnight

  • Occasional poster
  • *
  • Posts: 6
    • View Profile
Custom Sections(?) In HTML Template
« on: July 29, 2010, 08:27:15 PM »
Hello, I'm new to the rejetto forums ^^
First off, HFS is a great program, I use it extensively and is incredibly convenient for file sharing.

I'm wondering if it's possible, in the HTML Template to declare your own sections (I think that's what they're called)
The parts of the code in the brackets.

Examples:

[logged-in]
[upload]
etc.

When playing around with my template, I tried to declare my own "section", called: "[active-transfers]".
It was supposed to be a button that links to the active transfers page.

But when I inserted: "%active-transfers%" in the same area with "%login%" and "%upload%", instead of making a button, it literally showed "%active-transfers%" as text at the top of the page.
I had to make a separate div and add it that way.

So I was wondering. Can you not declare your own "sections"?

I'm running HFS 2.2f
Browser: Firefox 3.6.8

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: Custom Sections(?) In HTML Template
« Reply #1 on: July 30, 2010, 01:45:50 PM »
you meant to get the content of section [active-transfers] where you typed %active-transfers% ?
with HFS 2.2 to get this effect you have to type %sym-active-transfers%
with HFS 2.3 type {.$active-transfers.}
« Last Edit: July 30, 2010, 01:47:27 PM by rejetto »

Offline ZeroKnight

  • Occasional poster
  • *
  • Posts: 6
    • View Profile
Re: Custom Sections(?) In HTML Template
« Reply #2 on: July 31, 2010, 12:50:53 AM »
Hm...I changed: "%active-transfers%" to: "%sym-active-transfers%", but the same thing happened as before...
:/
« Last Edit: July 31, 2010, 01:04:17 AM by ZeroKnight »

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: Custom Sections(?) In HTML Template
« Reply #3 on: July 31, 2010, 09:38:57 AM »
oh, i'm sorry, i missed a thing.
by reading at http://www.rejetto.com/wiki/index.php/HFS:_Template
you can see that also the section must be named [sym-active-transfers] for it to work

Offline ZeroKnight

  • Occasional poster
  • *
  • Posts: 6
    • View Profile
Re: Custom Sections(?) In HTML Template
« Reply #4 on: August 01, 2010, 07:18:48 PM »
I have no idea how I missed that.
Thank you for your help rejetto, and keep up the excellent work on HFS :D