xoops forums

Hadesteam

Not too shy to talk
Posted on: 4/21 11:35
Hadesteam
Hadesteam (Show more)
Not too shy to talk
Posts: 112
Since: 2011/9/5 7
#11

Re: Profile module translation?

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>

Bleekk

Theme Designer
Posted on: 4/21 14:05
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 862
Since: 2002/12/14
#12

Re: Profile module translation?

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

Hadesteam

Not too shy to talk
Posted on: 4/21 16:53
Hadesteam
Hadesteam (Show more)
Not too shy to talk
Posts: 112
Since: 2011/9/5 7
#13

Re: Profile module translation?

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;)

geekwright

Quite a regular
Posted on: 4/21 18:42
geekwright
geekwright (Show more)
Quite a regular
Posts: 209
Since: 2010/10/15
#14

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/b ... atch/tpl/nav-menu.tpl#L16

Hadesteam

Not too shy to talk
Posted on: 4/22 13:31
Hadesteam
Hadesteam (Show more)
Not too shy to talk
Posts: 112
Since: 2011/9/5 7
#15

Re: Profile module translation?

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

Hadesteam

Not too shy to talk
Posted on: 4/22 18:16
Hadesteam
Hadesteam (Show more)
Not too shy to talk
Posts: 112
Since: 2011/9/5 7
#16

Re: Profile module translation?

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