Author Topic: Comment on file properties  (Read 1684 times)

0 Members and 1 Guest are viewing this topic.

Offline s4isw4l4qu4tro

  • Occasional poster
  • *
  • Posts: 16
    • View Profile
Comment on file properties
« on: January 20, 2009, 05:50:13 AM »
Hi guys,

Please advise if this is possible, or if there are any workarounds...

Build = 219, using terayon 1.3.2

Help is very appreciated

Offline Foggy

  • Tireless poster
  • ****
  • Posts: 806
    • View Profile
Re: Comment on file properties
« Reply #1 on: January 20, 2009, 12:48:19 PM »
I am not quite sure what you are trying to acheive exactly but from first looks you need to use an if macro in the template where the file comment is loaded.

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1895
    • View Profile
Re: Comment on file properties
« Reply #2 on: January 20, 2009, 03:07:37 PM »
you have to use no macro macro but javascript:

Quote
<script language="javascript">
if( '%user%' == '' ) document.write('Private section, requires authorization.')
  else document.write('Real comment for this folder');
</script>


but you must unselect

Menu > Virtual file system > List protected item only .......

 ;)

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: Comment on file properties
« Reply #3 on: January 22, 2009, 11:40:35 PM »
{.if not|%user%|Private section of the server, requires authorization.}


try this

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1895
    • View Profile
Re: Comment on file properties
« Reply #4 on: January 22, 2009, 11:49:14 PM »
on build 219, don't work, only javascript can do this?

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: Comment on file properties
« Reply #5 on: January 23, 2009, 01:10:16 AM »
you are clearly right mars.

but i don't like this way, i want only macros from external files to be blocked.
internal comments are considered half-safe.
half, because a warning is displayed when loading an untrusted vfs file.

SO, next build will make internal comments (like the one above) work with macros.