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

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

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

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

In vBa Links, I'm using a simple fairly plugin to generate a tab in the navbar and sub-navigation.
Here's the plugin code, which is added to the 'parse_templates' hook location:
Code:
if (VBA_SCRIPT == 'links_directory')
{
require_once(DIR . '/includes/vba_links_plugin_pt.php');
$vbulletin->options['selectednavtab'] = 'vba_links';
global $catid_int;
}
// Add navbar link
if ($vbulletin->options['vba_links_addnavbar'])
{
$templater = vB_Template::create('adv_links_navbar');
$templater->register('catid_int', $catid_int);
$templater->register('lnavbarwidth', $lnavbarwidth);
$templater->register('mylinkslink', $mylinkslink);

$templater->register('newlinknavbits', $newlinknavbits);
$templater->register('newlinkslink', $newlinkslink);
$templater->register('newpostnavbits', $newpostnavbits);
$templater->register('newpostslink', $newpostslink);
$templater->register('orderby', $orderby);
$templater->register('poplinklinks', $poplinklinks);
$templater->register('vba_options', $vba_options);
$template_hook['navtab_' . $vbulletin->options['vba_links_addnavbar']] .= $templater->render();
}
This works fine by itself, but when I add new plugins that use $templater, it seems to nullify most of the variables that are being used in the template. For example, I can add this simple plugin to the 'global_start' hook location:
Code:
$templater = vB_Template::create('anytemplate');
And that's enough to break the variables and keep the 'adv_links_navbar' template from my plugin from being displayed properly. I've stripped the 'adv_links_navbar' template down to some basic code just to test, but it doesn't seem to make a difference. If that additional plugin is enabled, then I lose the 'Moderation' link in the following template.
Code:

{vb:raw vboptions.vba_links_title}



So... Anyone have any idea why things are behaving like this or what the issue is?
__DEFINE_LIKE_SHARE__
رد مع اقتباس
 

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


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

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



الساعة الآن 06:25 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