|
إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...
انضم الينا
#1
| ||
| ||
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: ![]() vB_Template: ![]() 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. ![]() |
مواقع النشر (المفضلة) |
| |
![]() | ||||
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
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 |