I have this:
domai.com/irc_stats/index.php (custom vbulletin page the code bellow);
PHP Code:
<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'irc_stats');
// #################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
//$phrasegroups = array('threadmanage', 'posting', 'postbit');
// get special data templates from the datastore
$specialtemplates = array(
);
// pre-cache templates used by all actions
$globaltemplates = array(
'irc_stats',
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ########################## REQUIRE BACK-END ############################
//require_once('./global.php'); // only if custom page is in default board folder
define('patch_crazy', (($getcwd = getcwd()) ? $getcwd : '.'));
chdir("/home/myuser/mydomain.com/forum");
require_once('./global.php');
chdir(patch_crazy);
...
.....
........
And in plugin I use this:
Code:
irc_stats/index.php:IRC STATS
But, still showing 'main board page'. How to fix it?
I have other page mydomain.com/forum/map.php
and in plugin:
Code:
/forum/map.php:The Map page
Work fine.