Kullanım tekniği Get user_id of visitor

Kullanım tekniği Get user_id of visitor
0
1K

plouf

Banned
Katılım
12 May 2019
Mesajlar
34
Tepki puanı
13
Puanları
8
Compatible XF Versions 2.x

In XenForo 1, getting the user_id involved the getInstance and getUserId methods.

Kod:
Dear Guests, welcome! Please, Giriş Yap or Kayıt Ol to view hide content!


In XenForo 2, it's a matter of using visitor().


Kod:
Dear Guests, welcome! Please, Giriş Yap or Kayıt Ol to view hide content!

Once the user_id is known then the $user information is available.

Kod:
Dear Guests, welcome! Please, Giriş Yap or Kayıt Ol to view hide content!
 
Quick Jump
2,620Konular
12,449Mesajlar
1,428Kullanıcılar
Geri
Üst