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

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


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

Hello!
I added a new tab to the navbar by this article:
http://www.vbulletin.org/forum/showthread.php?t=226914

But, I can't add a link to section(I can link just to static pages) - Because the select tab doesn't work here(I mean, when you press on section tab the Forum tab still selected because there is no condition for the section area).

as you can see in my post:
http://www.vbulletin.org/forum/showp...&postcount=222

I tried to change the condition to:
PHP Code:
$tabselected = '';
$tablinks = '';
if (
in_array($this->content->getNodeId(), 5))
{
$vbulletin->options['selectednavtab']='content.php?r=5';
$tabselected = ' class="selected"';
$tablinks = '';

}
$template_hook['navtab_end'] .= 'News'.$tablinks.'' ;

but I got this error: Quote:
Fatal error: Call to a member function getNodeId() on a non-object in /home/*username*/public_html/vb/includes/class_bootstrap.php(399) : eval()'d code on line 3

Anyone can help me with this condition?

Thanks a lot!

Yonatan
__DEFINE_LIKE_SHARE__
رد مع اقتباس
إضافة رد

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

أدوات الموضوع
انواع عرض الموضوع

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

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



الساعة الآن 09:34 AM


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