Jump to content

Question

Posted

Salut

Nu pot urca codul urmator in globalTemplate, imi da eroare:

   {{if \IPS\Member::loggedIn()->member_id }}
 <span class="indicator_onoff">
          {{if $member->isOnline()}}
          <span class="online_in"></span>
                {{else}}
          <span class="offline_in"></span>
                 {{endif}}
          </span>
  {{endif}}
Quote

[[Template core/front/global/usercard is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

 

2 answers to this question

Recommended Posts

  • 0
Posted

Pai in global template nu ai ce cauta cu variabila $member :))

Codul tau trebuie sa arate asa:

{{if \IPS\Member::loggedIn()->member_id }}
<span class='member_online'>is online</span>
{{else}}
<span class='member_offline'>is offline</span>
{{endif}}

Cu toate astea nu vad de ce ai adauga asa ceva pentru ca nu vezi niciodata ca esti offline, codul asta ar avea mai multa logica daca ai crea un sistem de Away, Busy, etc.

  • 0
Posted
On 4/29/2023 at 12:01 AM, COOLPIX said:

Salut

Nu pot urca codul urmator in globalTemplate, imi da eroare:

   {{if \IPS\Member::loggedIn()->member_id }}
 <span class="indicator_onoff">
          {{if $member->isOnline()}}
          <span class="online_in"></span>
                {{else}}
          <span class="offline_in"></span>
                 {{endif}}
          </span>
  {{endif}}

 

Codul tau este ok, doar ca nu se adauga in globalTemplate ci in userPhoto -> iar mai apoi il stilizezi in css dupa cum iti place!

WWW.TECTONICPX.COM [ Professional Web Design Services ]

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.