rejetto forum

How to add more Option on template??

0 Members and 1 Guest are viewing this topic.

Offline sofeullah

  • Occasional poster
  • *
    • Posts: 3
    • View Profile
can any one help me how do i add more link on the option on the template.
Thanks


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 911
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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


Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 857
  • Status: On hiatus       (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
@sofeullah: What template are you using?...
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline sofeullah

  • Occasional poster
  • *
    • Posts: 3
    • View Profile

Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 857
  • Status: On hiatus       (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
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.-
« Last Edit: May 09, 2017, 09:42:55 AM by LeoNeeson »
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.