rejetto forum

disabling the '/' address using macro

Guest · 13 · 9291

0 Members and 1 Guest are viewing this topic.

bendioe50

  • Guest
I want to know this sentence and

[link : http://www.rejetto.com/forum/index.php/topic,5950.0.html

"Can probably be improved with macro, the back button hiding and altering the breadcrumbs."

"Yes but this can be fixed by disabling the '/' address using macro. But you will have to work it out yourself, cause I am working on stuff. "]

I want to know how to write code..
« Last Edit: September 12, 2010, 01:13:00 AM by bendioe50 »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
it's not clear to me to what it means the '/', if the character, or the root folder.
after that, also "disabling" has several meanings.


bendioe50

  • Guest
First access root directory. and then, If you refresh(access,approche) the root directory, only redirect to root folder


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
it took me a while to understand what you meant by "root directory" and "root folder".
the picture helped a lot.
what hfs version are you using?
when you access the / only index.html is provided, so there you can't really access /.


bendioe50

  • Guest
HFS version 2.3 beta
build #269

Index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//KR" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow">
<title>The Secret Chamber...</title>
</head>
<frameset rows="24,*" framespacing="0" frameborder="no" border="0">
   <frame src="/frame.html" name="leftFrame"  marginheight="1" marginwidth="20" frameborder="no" scrolling="no" id="leftFrame">
   <frame src="/root/" name="rightFrame" frameborder="no" scrolling="yes" id="rightFrame">    
 </frameset>
<noframes><body></body></noframes>
</html>


Frame.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//KR" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
   <title>BoneMan's Vids and Shouts</title>
</head>
<body style="background:#000;">
<embed src="/jwplayer/jwplayer.swf" width="1040" height="24" flashvars="file=/music/1.xml&autostart=true&playlist=right&shuffle=true&repeat=list&volume=20&playlistsize=350"/>
</body>
</html>
« Last Edit: September 13, 2010, 12:54:26 PM by bendioe50 »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
i guess a good solution is to hide the link you marked in the first picture.

you should spot the text in the template,
and replace this
{.%folder%=/ .}

with this
{.%folder% <= /root/ .}

i hope it works, i didn't test.


bendioe50

  • Guest
Thank you for your help.

Several problems arose.

Error(Server error ,Access denied , Cancel upload, No permission to access the folder)

----->occur same problem

So, I want to redirect to root folder


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile

bendioe50

  • Guest
attach template.

This template translated by korean.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
i downloaded your file, and applied the change i suggest you.
i could enter any folder, except the protected ones, i also uploaded successfully a file.
i met no error. Maybe you did something wrong.

you have to change this line

   {.if|{.{.!btn_back.}=on.}|{.if not|{.%folder%=/ .}|<div id="backBtn"><a href=".."><span>{.!lv_back.}</span></a></div>.}.}

with this line

   {.if|{.{.!btn_back.}=on.}|{.if not|{.%folder% <= /root/ .}|<div id="backBtn"><a href=".."><span>{.!lv_back.}</span></a></div>.}.}


bendioe50

  • Guest
« Last Edit: September 19, 2010, 03:40:10 AM by bendioe50 »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
1. when you click "back" the player goes away because of a problem with the template you are using.
you'll see there's
target="_parent"

in the upload page.
that's likely to be the thing that's breaking it.
if it's not that, it's a target=SOMETHING for sure.

2. you are asked for a password because that folder is protected, that is, access is restricted.
that should be the same with or without modification i suggested.


bendioe50

  • Guest
thank you, rejetto

modification

1.   {.if|{.{.!btn_back.}=on.}|{.if not|{.%folder%=/ .}|<div id="backBtn"><a href=".."><span>{.!lv_back.}</span></a></div>.}.}


   {.if|{.{.!btn_back.}=on.}|{.if not|{.%folder% <= /root/ .}|<div id="backBtn"><a href=".."><span>{.!lv_back.}</span></a></div>.}.}

2.target="?????"

  target="bottom"   ****bottom is bottomframe name*****

3.{.if|{.{.!btn_back.}=on.}|<div id="backBtn"><a href="/"><span>{.!lv_back.}</span></a></div>.}

   {.if|{.{.!btn_back.}=on.}|<div id="backBtn"><a href="/root/"><span>{.!lv_back.}</span></a></div>.}

« Last Edit: September 20, 2010, 12:56:15 AM by bendioe50 »