rejetto forum

Custom Sections(?) In HTML Template

0 Members and 1 Guest are viewing this topic.

Offline ZeroKnight

  • Occasional poster
  • *
    • Posts: 6
    • View Profile
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: 13438
    • View Profile
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
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: 13438
    • View Profile
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
I have no idea how I missed that.
Thank you for your help rejetto, and keep up the excellent work on HFS :D