rejetto forum

Comment on file properties

0 Members and 1 Guest are viewing this topic.

Offline s4isw4l4qu4tro

  • Occasional poster
  • *
    • Posts: 16
    • View Profile
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
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: 2059
    • View Profile
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: 13510
    • View Profile
{.if not|%user%|Private section of the server, requires authorization.}


try this


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
on build 219, don't work, only javascript can do this?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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.