rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - gogi1000

Pages: 1 2 3
16
HTML & templates / Re: uploading file just from parent location
« on: September 26, 2016, 06:37:00 AM »
sorry if i made problem. i just search help for my problem
<quote>
my problem is when the user specially lies/ fails test... or plainly ignores..
</quote>
i don't lie. sorry my english is bad, maybe i don't understand your explain

i tryed with global variable but this solution also nothing

 {.set|lokacija|%folder%.}
   {.if|{.and|{.get|can upload.}|{.%folder%={.^#lokacija.}.}.}|<div class="bigBtn"><a href="~upload" title="{.!lv_uploadTitle.}"><span>{.!lv_upload.}</span></a></div>.}

17
HTML & templates / Re: uploading file just from parent location
« on: September 23, 2016, 11:12:40 AM »
my code
/test/ -parent location
/test/subfolder/ -sub location
{.if|{.and|{.get|can upload.}|{.%folder%=/test/.}.}|<div class="bigBtn"><a href="~upload" title="{.!lv_uploadTitle.}"><span>{.!lv_upload.}</span></a></div>.}

when in code i put {.%folder%=/test/.}.}
 all is ok, but because i have many users with different locations
i don't know how instead /test/ put some symbol or variable that i receive location according users

18
HTML & templates / Re: uploading file just from parent location
« on: September 23, 2016, 06:03:27 AM »
i just want  hide upload button when user in subfolder. but when in parent folder upload button is showed

19
HTML & templates / Re: uploading file just from parent location
« on: September 22, 2016, 10:52:30 AM »
i tryed with next code

{.if|{.and|{.get|can upload.}|{.%folder%=/test/.}.}|<div class="bigBtn"><a href="~upload" title="{.!lv_uploadTitle.}"><span>{.!lv_upload.}</span></a></div>.}

and this code is working but how instead /test/ putting some symbol or something else?

20
HTML & templates / Re: uploading file just from parent location
« on: September 22, 2016, 08:45:16 AM »
sorry my mistake. hidding upload button when user on subfolder location

VFS location folder (user see upload button)
VFS location subfolder (user not see upload button)

i tryed with next code

{.AND|{.get|can upload.}|{.%folder% = /.}|<div class="bigBtn"><a href="~upload" title="{.!lv_uploadTitle.}"><span>{.!lv_upload.}</span></a></div>.}

but upload button is hidden for every location

21
HTML & templates / uploading file just from parent location
« on: September 21, 2016, 07:21:18 AM »
i have a question. how i enable that my users which permission for uploading can uploading just from parent location, not when go to subfolder?
structure of virtual file sistem is

parent folder (can upload)
  subfolder (cannot upload, for example hide upload button)

22
HTML & templates / Re: server-side scripting
« on: August 18, 2016, 10:45:48 AM »
problem is solved. i made encoding text files to ANSI with notepad++ and when i load text file from web browser i receive unicode characters.thanks.

i have one more question about hide upload button. i want hiding of this button when i placed in folder where's files. when i placed on level where're folders i want that show this button.

how?

23
HTML & templates / Re: server-side scripting
« on: August 18, 2016, 05:36:08 AM »
when i changed text file from UNICODE to ANSI all is ok. there's option for unicode format of text file?

24
HTML & templates / Re: server-side scripting
« on: August 17, 2016, 09:50:10 AM »
when i start debugger in firefox and i click on list i receive data from text file like on picture but i cannot see them in browser. where is problem?

25
HTML & templates / Re: server-side scripting
« on: August 17, 2016, 06:08:53 AM »
again problem. this code works in internet explorer and chrome but not works in firefox.

{.if|{.member of|budzet.}|
  {:<script type="text/javascript">$(document).ready(function(){
   
        $("#lista").load("/template/pitanja-budzet.txt");
   });</script>:}|
{.if|{.member of|lokal.}|
  {:<script type="text/javascript">$(document).ready(function(){
   
        $("#lista").load("/template/pitanja-lokal.txt");
 
});</script>:}|{.if|{.member of|ooso.}|
  {:<script type="text/javascript">$(document).ready(function(){
   
        $("#lista").load("/template/pitanja-ooso.txt");
 
});</script>:}|{.if|{.member of|JAVNA.}|
  {:<script type="text/javascript">$(document).ready(function(){
   
        $("#lista").load("/template/pitanja-javna_preduzeca.txt");
 
});</script>:}|{.if|{.member of|NBS.}|
  {:<script type="text/javascript">$(document).ready(function(){
 
        $("#lista").load("/template/pitanja-nbs.txt");
   
});</script>:}
/if.}
/if.}
/if.}
/if.}
/if.}

where is problem?

26
HTML & templates / Re: server-side scripting
« on: August 05, 2016, 01:29:07 PM »
i solved problem with this code

{.if|{.member of|budzet.}|
  {:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-budzet.txt");
    });
});</script>:}|
{.if|{.member of|lokal.}|
  {:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-lokal.txt");
    });
});</script>:}|{.if|{.member of|ooso.}|
  {:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-ooso.txt");
    });
});</script>:}
/if.}
/if.}
/if.}

thank's

27
HTML & templates / Re: server-side scripting
« on: August 05, 2016, 05:58:11 AM »
i set {.switch|{.get account|%user%|member of.}|,| instead {.switch|{.%user%|member of.}|,| but all is same i receive elements of list from text file the pitanja-ooso.txt. any user from any group logged every time i receive from the pitanja-ooso.txt

my code is now

{.switch|{.get account|%user%|member of.}|,|
  #budzet#|{:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-budzet.txt");
    });
}); </script>:}|
   #lokal#|{:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-lokal.txt");
    });
});</script>:}
 #ooso#|{:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-ooso.txt");
    });
});</script>:}
/switch.}

28
HTML & templates / Re: server-side scripting
« on: August 05, 2016, 04:49:28 AM »
{.switch|{.%user%|member of.}|,|  --->> {.switch|{.get account|%user%|member of.}|,|

where is error? how i correct them?

29
HTML & templates / Re: server-side scripting
« on: August 04, 2016, 10:14:51 AM »
i tryed with next code

   {.switch|{.%user%|member of.}|,|
  budzet|{:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-budzet.txt");
    });
}); </script>:}|
   lokal|{:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-lokal.txt");
    });
});</script>:}
 ooso|{:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-ooso.txt");
    });
});</script>:}
/switch.}

but nothing

30
HTML & templates / Re: server-side scripting
« on: August 04, 2016, 07:27:01 AM »
i try with next code

<script type="text/javascript">
      var theme="{.!theme.}";
      var mod_statistics="{.!mod_statistics.}";
      //Language Strings
      var lv_hideTitle="{.!lv_hideTitle.}";
      var lv_showTitle="{.!lv_showTitle.}";
      
   
   
   function change(obj) {


    var selectBox = obj;
    var selected = selectBox.options[selectBox.selectedIndex].value;
    var textarea = document.getElementById("skriveno");

    if(selected != '0'){
       
      document.getElementById("skriveno").disabled = false;
    }
   
}
  {.if|{.get account|%user%|member of|#budzet#.}|
  $(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-budzet.txt");
    });
});
/if.}
 {.if|{.get account|%user%|member of|#lokal#.}|
  $(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-lokal.txt");
    });
});
/if.}
{.if|{.get account|%user%|member of|#ooso#.}|
  $(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-ooso.txt");
    });
});
/if.}
   </script>

but i receive elements of list from text file the pitanja-ooso.txt. any user logged every time i receive from the pitanja-ooso.txt

Pages: 1 2 3