|
إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...
انضم الينا
#1
| ||
| ||
im trying to pass variables to a custom page. im sure everyone has put a custom button on there nav bar by now, so im sure you will recognize this: PHP Code: $tabselected = ''; $tablinks = ''; if (THIS_SCRIPT == 'yourpage') { $vbulletin->options['selectednavtab']='unique_name'; $tabselected = ' class="selected"'; $tablinks = ' Link 1 Drop Down SubLink 1 SubLink 2 SubLink 3 </ul> Link 2 Link 3 </ul> '; } $template_hook['navtab_end'] .= 'Download Amicus'.$tablinks.' ' ; so what i did was to add a few hidden fields in a form and to submit the form i used some JavaScript. so i ended up with this: PHP Code: $tabselected = ''; $tablinks = ''; if (THIS_SCRIPT == 'yourpage') { $vbulletin->options['selectednavtab']='unique_name'; $tabselected = ' class="selected"'; $tablinks = ' Link 1 Drop Down SubLink 1 SubLink 2 SubLink 3 </ul> Link 2 Link 3 </ul> '; } $template_hook['navtab_end'] .= ' Download Amicus'.$tablinks.' ' ; and the it take off all my nav bar buttons except Forum and What's New. is there some im doing wrong???? __DEFINE_LIKE_SHARE__ |
مواقع النشر (المفضلة) |
| |