The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Navbar doesn?t show
hey i use this script to show a page from a custom template and it does work but when i go to ?p=add it is showing up everything exept navbar. can someone help me with this? i have add $navbar in that template
Code:
<?php // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // #################### DEFINE IMPORTANT CONSTANTS ####################### define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'index'); // ################### PRE-CACHE TEMPLATES AND DATA ###################### // pre-cache templates used by all actions $globaltemplates = array( 'vbnewsbit', 'vbnewslist', 'vbaddnews', ); // ######################### REQUIRE BACK-END ############################ GLOBAL $parser; require_once('./includes/class_bbcode.php'); require_once('./global.php'); $parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); // ######################## START MAIN SCRIPT ############################ $newslimit = $vbulletin->input->clean($vbulletin->options['newslimit'], TYPE_INT); $getnews = $db->query_read("SELECT * FROM vb_news ORDER BY id DESC LIMIT 0, $newslimit"); while($news = $db->fetch_array($getnews)) { $news['title'] = preg_replace('/\<[a-zA-Z0-9 \<\<\>\>\:\;\"\'\,\.\?\/\~\`\!\@\#\$\%\^\&\*\(\)\_\-\+\=]*\>/', '', $news['title']); $news['title'] = unhtmlspecialchars($news['title']); $news['date'] = vbdate($vbulletin->options['dateformat'], $news['dateline']); $news['time'] = vbdate($vbulletin->options['timeformat'], $news['dateline']); $news['poster'] = $news['poster']; $news['pagetext'] = $parser->do_parse($news['pagetext'], 1, 1, 1, 1); if (!isset($vbnewsbit)) { eval('$vbnewsbit .= "' . fetch_template('') . '";'); } if (isset($vbnewsbit)) { eval('$vbnewsbit .= "' . fetch_template('vbnewsbit') . '";'); } } if ($_REQUEST['p'] == 'add') { eval('print_output("' . fetch_template('vbaddnews') . '");'); } $navbits = array(); $navbits[$parent] = 'Home'; $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('$vbnewslist .= "' . fetch_template('vbnewslist') . '";'); eval('print_output("' . fetch_template('vbnewslist') . '");'); ?> |
#2
|
||||
|
||||
remove or rewrite
PHP Code:
|
#3
|
|||
|
|||
ok but i want a page on index.php and another one in index.php?p=add so what code do i user to be able to have navbar on that page?
|
#4
|
|||
|
|||
Bump
--------------- Added [DATE]1200839405[/DATE] at [TIME]1200839405[/TIME] --------------- Nobody that can help me? |
#5
|
|||
|
|||
BUMP again
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|