rejetto forum
May 24, 2012, 05:25:55 AM *
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: Template Variables  (Read 2282 times)
0 Members and 1 Guest are viewing this topic.
Martok
Experienced poster
***
Offline Offline

Posts: 88

285180864
View Profile
« on: April 11, 2006, 04:56:19 PM »

Some of the basic variables in HFS are not supported in the upload pages.
[upload] misses %host% and
[upload-result] misses %up%, %host%, %upload-link%(which I think is not important here)

Is there a special reason for it and could you please add these variables for these pages?
Logged

Cheers,

Martok
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #1 on: April 11, 2006, 05:13:09 PM »

could you tell me how would you use them?
Logged
Martok
Experienced poster
***
Offline Offline

Posts: 88

285180864
View Profile
« Reply #2 on: April 11, 2006, 05:27:15 PM »

Quote from: "rejetto"
could you tell me how would you use them?
I have a page header which always has this layout:
Code:
<table width="100%" class=table_head>
  <tr style="border-style: none; border-width: medium; font-family:Courier New; font-size:10pt; text-align:left">
    <td width="135" style="text-indent: 4; margin: 0" valign="top">%up%</td>
    <td width="413" style="text-align:center" valign="top">%host%%folder%<br>%folder-comment%</td>
    <td width="30" valign="top">&nbsp;</td>
    <td width="30" valign="top"><a href="/">Home</a></td>
    <td width="69" valign="top">%login-link%%loggedin%</td>
  </tr>
  </table>

But instead of showing the up link, I always get "%up%" shown. The same with the %host%%folder%: it is translated as %host%/Uploads/, which looks quiete weird.
Logged

Cheers,

Martok
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #3 on: April 11, 2006, 05:50:33 PM »

ok, i will add %up% and %host%
but consider not using %host%, you can use relative URLs... indeed i don't use %host% in the default tpl
Logged
Martok
Experienced poster
***
Offline Offline

Posts: 88

285180864
View Profile
« Reply #4 on: April 11, 2006, 05:55:07 PM »

Quote from: "rejetto"
ok, i will add %up% and %host%
but consider not using %host%, you can use relative URLs... indeed i don't use %host% in the default tpl

Thank you very much!
I dont use %host% for linking, it is just a banner to show people where they are.
Logged

Cheers,

Martok
~GeeS~
Tireless poster
****
Offline Offline

Netherlands Netherlands

Posts: 269


"The web was made for sharing..."


View Profile
« Reply #5 on: April 12, 2006, 12:13:32 PM »

Thx, this is exactly what i needed, too! Smiley
Logged

~GeeS~
rejetto forum
« Reply #5 on: April 12, 2006, 12:13:32 PM »

Do you like this software? Consider even $2
 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 May 10, 2012, 04:12:19 AM