rejetto forum
February 11, 2012, 03:48:24 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Custom Sections(?) In HTML Template  (Read 603 times)
0 Members and 1 Guest are viewing this topic.
ZeroKnight
Occasional poster
*
Offline Offline

United States United States

Posts: 6



View Profile Email
« on: July 29, 2010, 03: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
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11759


View Profile
« Reply #1 on: July 30, 2010, 08:45:50 AM »

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, 08:47:27 AM by rejetto » Logged
ZeroKnight
Occasional poster
*
Offline Offline

United States United States

Posts: 6



View Profile Email
« Reply #2 on: July 30, 2010, 07:50:53 PM »

Hm...I changed: "%active-transfers%" to: "%sym-active-transfers%", but the same thing happened as before...
:/
« Last Edit: July 30, 2010, 08:04:17 PM by ZeroKnight » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11759


View Profile
« Reply #3 on: July 31, 2010, 04: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
Logged
ZeroKnight
Occasional poster
*
Offline Offline

United States United States

Posts: 6



View Profile Email
« Reply #4 on: August 01, 2010, 02: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 Cheesy
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page January 14, 2012, 04:12:31 AM