Help me with this please

gumya

Well-known member
Registered
Joined
Oct 9, 2019
Messages
131
Points
53

Reputation:

I want the Upgrade link on the site menu to show up only for logged in users.
Upgrade Link.PNG

So, what should I add in the "Display condition" field in order to accomplish this?
Display condition.PNG
 

Best223

Well-known member
Registered
Joined
Mar 20, 2021
Messages
51
Points
28

Reputation:

Please tell me how to add this button to the paid rights enhancement? Screenshot attached
 

Attachments

  • 741222.png
    741222.png
    18.8 KB · Views: 97

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,497
Points
523

Reputation:

@gumya

Found the solution on Xenforo, someone asked nearly the same question, I execute it and it works see below:
Create public navigation link:
1616687832700.png


In the templates search for account_upgrades and enter the following four lines after the first one:

Code:
<xf:if is="$xf.uri == {{ link('account/upgrades') }}">
    <xf:page option="section">Upgrades</xf:page>
</xf:if>

The name in the section line need to be the exact NavigationID you entered in the first screenshot.
Please check that you selected the correct style.

1616687860900.png


Open the main page and now select Upgrades VIP
1616688173600.png


You will be navigated to the account upgrades page and it is now selected, see below
1616688220600.png
 

TheMechanic

Active member
Registered
Joined
Mar 23, 2021
Messages
31
Points
18

Reputation:

@BattleKing this worked great! If anyone wants to set this towards the bottom. Make sure you set the display order to 700(for me atleast you might have added more things to your navigation) now I need to figure out how to add fa-fa card lol
Screenshot_20210325-125251_Chrome.jpg
Screenshot_20210325-125436_Chrome.jpg
Screenshot_20210325-125336_Chrome.jpg
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,497
Points
523

Reputation:

@TheMechanic yes of course:

add this code into your extra.less:

Less:
.p-navEl [data-nav-id="Upgrades"]::before {
    font-family: 'Font Awesome 5 Pro';
    content: "\f09d";
    padding-right: 5px;
}
 
Top