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

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


إضافة رد
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 04-16-2010, 02:00 AM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,615
عدد الـنقاط :3341
 تقييم المستوى : 2139

So yeah, I'm trying to show a block at the top (above the first forum category) to one usergroup and a different block to everyone else. I already have the "everyone else" block working (for everyone though). How do I add a condition based on usergroup to the Plugin (set to forumbit_display) php?
I tried something like this:
Code:
if (!($userinfo['usergroupid'] != '18'))
{
stuff
}
else {
stuff
}
but that didn't work. in fact, I got syntax errors sometimes.

if it helps, I am using a few $yresult = $vbulletin->db->query_read's in the "stuff" to get certain parts of the block to update appropriately with what they show. could they be conflicting?

any help is appreciated
__DEFINE_LIKE_SHARE__
رد مع اقتباس
إضافة رد

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


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

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



الساعة الآن 01:17 PM


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

RSS RSS 2.0 XML MAP HTML