11
Hadesteam
Re: Profile module translation?
  • 2017/4/21 15:35

  • Hadesteam

  • Not too shy to talk

  • Posts: 162

  • Since: 2011/9/5 1


How do I edit my menu so that when I log in instead of the Login text, I see an Edit Account entry (like here on xoops forum) ?, this is my nav-bar menu file: Line 58

<header class="adhesiveHeader">
<
div class="navbar-wrapper">
  <
div class="navbar navbar-inverse navbar-static-top global-nav">
    <
div class="container">
      <
div class="navbar-header">
        <
button data-target=".navbar-collapse" data-toggle="collapse" class="navbar-toggle" type="button">
        <
span class="icon-bar"></span>
        <
span class="icon-bar"></span>
        <
span class="icon-bar"></span>
        </
button>
        <
a href="<{$xoops_url}>" class="navbar-brand xlogo" title="<{$xoops_sitename}>">
            <
img src="<{$xoops_imageurl}>images/logo.png" alt="<{$xoops_sitename}>">
        </
a>
        </
div>
      <
div class="navbar-collapse collapse">
        <
ul class="nav navbar-nav">
          <
li class="active"><a href="<{$xoops_url}>"><{$smarty.const.THEME_HOME}></a></li>
          <
li><a href="/modules/news">ArtykuĹ‚y</a></li>
          <
li class="dropdown"> <a data-toggle="dropdown" class="dropdown-toggle" href="javascript:;">Atlas Ä‡wiczeĹ„<class="caret"></b></a>
            <
ul class="dropdown-menu">
              <
li><a href="/modules/icontent/index.php?op=explore&currentDir=7">Klatka</a></li>
              <
li><a href="/modules/icontent/index.php?op=explore&currentDir=9">Biceps</a></li>
              <
li><a href="/modules/icontent/index.php?op=explore&currentDir=32">Brzuch</a></li>
              <
li><a href="/modules/icontent/index.php?op=explore&currentDir=12">Uda i Ĺ‚ydki</a></li>
              <
li><a href="/modules/icontent/index.php?op=explore&currentDir=6">Plecy</a></li>
              <
li><a href="/modules/icontent/index.php?op=explore&currentDir=10">Triceps</a></li>
              <
li><a href="/modules/icontent/index.php?op=explore&currentDir=11">Barki</a></li>
              <
li><a href="/modules/icontent/index.php?op=explore&currentDir=13">PrzedramiÄ™</a></li>
              <
li><a href="/modules/articles">Atlas Ä‡wiczeĹ„ Filmy</a></li>
                
            </
ul>
          </
li>
          <
li><a href="<{$xoops_url}>/modules/myalbum">Galerie</a></li>
          <
li><a href="<{$xoops_url}>/modules/xoopstube/">Filmy</a></li>

                      <
li class="dropdown"> <a data-toggle="dropdown" class="dropdown-toggle" href="javascript:;">Trening<class="caret"></b></a>
            <
ul class="dropdown-menu">
              <
li><a href="/modules/news/index.php?storytopic=23">Trening w kulturystyce</a></li>
              <
li><a href="/modules/news/index.php?storytopic=39">Trening na masÄ™</a></li>
              <
li><a href="/modules/news/index.php?storytopic=40">Trening na rzeĹşbÄ™</a></li>
              <
li><a href="/modules/news/index.php?storytopic=41">Trening na siĹ‚Ä™</a></li>
              <
li><a href="/modules/news/index.php?storytopic=38">Treningi dla kobiet</a></li>
              <
li><a href="/modules/news/index.php?storytopic=32">Trening mistrzĂłw</a></li>
              <
li><a href="http://plany.kulturystyka.org.pl">Trening indywidualny</a></li>
            </
ul>
          </
li>
                      <
li class="dropdown"> <a data-toggle="dropdown" class="dropdown-toggle" href="javascript:;">Dieta<class="caret"></b></a>
            <
ul class="dropdown-menu">
              <
li><a href="/modules/news/index.php?storytopic=34">Dieta na masÄ™</a></li>
              <
li><a href="/modules/news/index.php?storytopic=53">Dieta na rzeĹşbÄ™</a></li>
              <
li><a href="/modules/news/index.php?storytopic=6">Diety kulturystyczne</a></li>
              <
li><a href="/modules/news/index.php?storytopic=36">Diety dla kobiet</a></li>
              <
li><a href="http://plany.kulturystyka.org.pl">Dieta dopasowana do ciebie</a></li>
            </
ul>
          </
li>
              <
li><a href="<{$xoops_url}>/modules/newbb">Forum</a></li>
              <
li><a href="http://www.sfd.pl/sklep/prdir.aspx?pid=20"><font color="orange">SKLEP</font></a></li>
              <
li><a href="<{$xoops_url}>/modules/profile/user.php">Zaloguj</a></li>
        </
ul>
        <
form class="navbar-form navbar-right" role="search" action="<{xoAppUrl search.php}>" method="get">
            <
div class="form-group">
                <
input type="text" name="query" class="form-control" placeholder="<{$smarty.const.THEME_SEARCH_TEXT}>">
                <
input type="hidden" name="action" value="results">
            </
div>
            <
button class="btn btn-primary" type="submit"><{$smarty.const.THEME_SEARCH_BUTTON}></button>
        </
form>
      </
div>
    </
div>
  </
div>
</
div><!-- .navbar-wrapper -->
</
header>

12
Bleekk
Re: Profile module translation?
  • 2017/4/21 18:05

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


Here on xoops we use the mymenus module. But with this smarty you can check if a user is logged in
<{$xoops_isuser} >

13
Hadesteam
Re: Profile module translation?
  • 2017/4/21 20:53

  • Hadesteam

  • Not too shy to talk

  • Posts: 162

  • Since: 2011/9/5 1


ok thx bleekk, i try this solution tomorrow, yes i used mymenus module and block, this is great modify by Angelo Rocha! (all theme is awesome) , but i need something every page on my site, so thats why i'm writing here ...

So what is the example code?

Login <if><{$xoops_isuser} >Edit Profile< /if> hmm sorry but i do not know php... Okay, but how to make login "disappear" after login and instead of "Edit Profile"? I will ask for a modification and apologize immediately that I have so much time on the Forum;)

14
geekwright
Re: Profile module translation?

There is an example in xswatch in XOOPS 2.5.9 that you could adapt to what you need:
https://github.com/XOOPS/XoopsCore25/blob/master/htdocs/themes/xswatch/tpl/nav-menu.tpl#L16

15
Hadesteam
Re: Profile module translation?
  • 2017/4/22 17:31

  • Hadesteam

  • Not too shy to talk

  • Posts: 162

  • Since: 2011/9/5 1


It works, geekwright many thanks for You! ;) Do You have more this awesome changes which improves page functionality?

16
Hadesteam
Re: Profile module translation?
  • 2017/4/22 22:16

  • Hadesteam

  • Not too shy to talk

  • Posts: 162

  • Since: 2011/9/5 1


Bleekk when i change the background i have them literally everywhere ... not that i meant. Where there is a page content, articles etc let it stay as it is, white. I mean back ground ".

Now it looks like this:

Resized Image

Login

Who's Online

198 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 198


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits