
05-15-2010, 10:42 AM
|
|
|
Join Date: Oct 2007
Posts: 889
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|

Quote:
Originally Posted by BRotondi
With your nice mod, I can create a subforum navigation in the sidebar  .
But one Problem: How to determine, in which forum the user is at the moment?
I can set my php-block to "never cache", but $forum[forumid] is not evaluated at the moment, "includes\block\html.php" evaluates it...
An idea how to solve this?
Thanks!
Bruno
Edit: Got it! Use $GLOBALS['foruminfo']['forumid']
|
Great
Quote:
Originally Posted by AK47 Nemesis
Great mod, one question though, I want to use it on my vBadvanced frontpage. How would I enable it on this piece of php?
PHP Code:
<?php
// ++=========================================================================++
// || vBadvanced CMPS v4.0.0 (vB 4.0) - 70695
// || ? 2003-2010 vBadvanced.com - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 03:20, Mon May 10th 2010
// || 946070695_408351046488
// ++ ========================================================================++
error_reporting(E_ALL & ~E_NOTICE & ~8192);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
define('VBA_SCRIPT', 'CMPS');
// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================
$forumpath = '';
// ============================================
// No Further Editing Necessary!
// ============================================
if ($forumpath)
{
if (!is_dir($forumpath))
{
echo 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.';
exit;
}
chdir($forumpath);
}
$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();
require_once('./includes/vba_cmps_include_template.php');
require_once('./global.php');
print_portal_output($home);
?>
|
I think you should register variables as instructed in the vba_cmps_include_template.php file. I'm guessing as I don't know how vba works
|