rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: sofeullah on May 08, 2017, 02:23:00 PM

Title: How to add more Option on template??
Post by: sofeullah on May 08, 2017, 02:23:00 PM
can any one help me how do i add more link on the option on the template.
Thanks
Title: Re: How to add more Option on template??
Post by: bmartino1 on May 08, 2017, 09:21:59 PM
that looks to be a coding issues, it would help if you put a link or atach the temlpate file to this post to further help you.

some further help may be found in the wiki:
http://www.rejetto.com/wiki/index.php?title=HFS:_Template&action=edit&oldid=4111


Title: Re: How to add more Option on template??
Post by: LeoNeeson on May 09, 2017, 04:20:31 AM
@sofeullah: What template are you using?...
Title: Re: How to add more Option on template??
Post by: sofeullah on May 09, 2017, 05:32:32 AM
@sofeullah: What template are you using?...
i am using RAWR-Template-0.1.3, blue
Title: Re: How to add more Option on template??
Post by: LeoNeeson on May 09, 2017, 09:40:53 AM
Do the following steps:

1) Open "RAWR-Template-0.1.3.tpl" using notepad or any text editor.
2) Locate the following section (you can search for the word "navbar"):

Quote
<div id="navbar">
   {.if not|%user%|<div class="bigBtn"><a href="~login"><span>{.!lv_login.}</span></a></div>.}
   <div class="bigBtn">
      <a href="javascript:void(0);" onclick="window.open('/~progress','{.!lv_transfers.}','width=300,height=500,left=100,top=100,scrollbars=1,resizable=1');" class="hide"><span>{.!lv_transfers.}</span></a>
      <noscript><a href="/~progress" target="_blank"><span>{.!lv_transfers.}</span></a></noscript>
   </div>
   {.if|{.get|can upload.}|<div class="bigBtn"><a href="~upload" title="{.!lv_uploadTitle.}"><span>{.!lv_upload.}</span></a></div>.}
   {.if|{.{.!btn_back.}=on.}|{.if not|{.%folder%=/ .}|<div id="backBtn"><a href=".."><span>{.!lv_back.}</span></a></div>.}.}
        <div class="bigBtn"><a href="https://www.google.com/"><span>Google</span></a></div>
        <div class="bigBtn"><a href="https://www.example.com/"><span>Example</span></a></div>
</div>

3) Add the text marked in red color, for example, this adds a link to Google.
4) If you need another button, you add another line there (like the text marked in blue color):

Quote
        <div class="bigBtn"><a href="https://www.example.com/"><span>Example</span></a></div>

I've attached an example, so you can see the changes (it's easy to add more buttons if you need it).

Please report back if this solves your question. :)

Cheers,
Leo.-
Title: Re: How to add more Option on template??
Post by: sofeullah on May 09, 2017, 11:55:56 AM
Thank You.
its working.  :D