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

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

         :: تالقي مع اجمل فساتين وعبايات وجلابيات بالمملكة (آخر رد :رودى طه)       :: اخصائية مساج الخبر منزلى 0533972744 (آخر رد :رودى طه)       :: massage in riyadh (آخر رد :رودى طه)       :: افضل دكتور حقن مجهري (آخر رد :elzwawy)       :: اخصائية مساج الدمام للرجال 0533972744 (آخر رد :رودى طه)       :: اخصائية مساج بالرياض للرجال562558590 (آخر رد :رودى طه)       :: افضل انواع ستاند جوال للتصوير,افضل نوع ستاند جوال للتصوير,ارخص اسعار ستاند جوال (آخر رد :بوابة الصين العربية)       :: تصاميم مظلات برجولات وجلسات خارجية في الرياض 0563866945 (آخر رد :ksa ads)       :: مساج منزلى مكة 0562558590 (آخر رد :رودى طه)       :: مساج منزلي جازان وابوعريش 0562558590 (آخر رد :رودى طه)      

 
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 01-25-2013, 10:30 PM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,670
عدد الـنقاط :3341
 تقييم المستوى : 2140

Hi,
I spent a bit of time trying to do this myself this morning, using bits and pieces of similar threads on here, but I can't get it working. What I want to do is define an array of forumids in a plugin, and reference the output variable in a conditional. Now, I've done this for non-conditional template use with success in the past but I read that you cannot use vb:raw in this context inside a conditional.

Here's the current plugin code using the global_state_check hook...

Code:
if (!in_array($foruminfo['forumid'], array(61,63,80,31,81,69,24,67,28,77,79,78,84)))
{
$show['not_sponsor'] = true;
}else{
$show['not_sponsor'] = false;
}
Assuming that's correct, how do I reference the variable in the conditional? $not_sponsor? not_sponsor? Also, if I'm not using vb:raw in the template, do I still have to pre-register the variable in the templates? I tried it with this code in the plugin...
Code:
vB_Template:reRegister('ad_navbar_below',array(' not_sponsor' => $not_sponsor));
vB_Template:reRegister('ad_showthread_firstpost_ start',array('not_sponsor' => $not_sponsor));
In the end all I'm trying to do is not show ads in certain forums, or threads within those forums, without maintaining the actual array in each ad template. Any advice/help is more than welcome.
__DEFINE_LIKE_SHARE__
رد مع اقتباس
 

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


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

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


المواضيع المتشابهه
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
Forum forumid condition in headinclude template problem محروم.كوم منتدى أخبار المواقع والمنتديات العربية والأجنبية 0 10-06-2012 08:40 PM
Forum Help with template conditional and possibly if/elseif errors (SHOWTHREAD template) محروم.كوم منتدى أخبار المواقع والمنتديات العربية والأجنبية 0 09-06-2010 02:30 PM
Forum Error Array in plugin template محروم.كوم منتدى أخبار المواقع والمنتديات العربية والأجنبية 0 07-11-2010 05:30 PM
Forum Conditional forumid in template محروم.كوم منتدى أخبار المواقع والمنتديات العربية والأجنبية 0 02-01-2010 03:30 AM
Conditional help showthread* forumID* usergroup... محروم.كوم منتدى أخبار المواقع والمنتديات العربية والأجنبية 0 12-14-2009 01:00 AM


الساعة الآن 11:52 AM


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