إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية


 
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 06-07-2010, 12:10 AM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,669
عدد الـنقاط :3341
 تقييم المستوى : 2140

Hello what is the first possible hook, where I can check userid?

I need to know ASAP does someone is logged in or not, i.e. by:
PHP Code:
$vbulletin->userinfo['userid']

If there is other way to check it - please tel how. I do not care how I will check it - I care do do it ASAP, to avoid unnecessary evaluation (I'm redirecting under some conditions for guests).

Right now I'm checking it in global_start but:
1. Lot of things are made earlier - I could stop it if I know earlier does user is logged. So now it is just waist of resources.
2. And most important - not all vB places supports global_start hook. As I remember CMS is not using this hook.

PS.
Also please answer for same question, but for vB 3.8
__DEFINE_LIKE_SHARE__
رد مع اقتباس
 

مواقع النشر (المفضلة)


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن 03:18 PM


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML