PDA

View Full Version : Mini Mods - [Alexey]Create your own. php file


Alexey?
04-05-2009, 10:00 PM
Ok so here is what you have to do
open a new php file lets say
test.php
write into there this

<?php
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('GET_EDIT_TEMPLATES', true);
define('THIS_SCRIPT', 'newpage');
$phrasegroups = array();
$specialtemplates = array();
$globaltemplates = array();
$actiontemplates = array();
require_once('./global.php');
$navbits = array();
$navbits[''] = 'NAME IN NAVBAR';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('TEMPLE NAME') . '");');
?>

And change the
"NAME IN NAVBAR" - this is will be displayed in the navbit
"TEMPLE NAME" - this must be the name of the temple you will create in your style.

And what ever you'r going to write in the temple that you will create wiil be shown there.


Any one who need help contact me in privet
Enjoy!

Daniel_HBK
04-06-2009, 09:23 PM
thx! , it will help me later

ragtek
04-06-2009, 09:26 PM
1. your code is "old"
define('NO_REGISTER_GLOBALS', 1); is not necessary, it was for vb < 3.5 or 3.0
2. define('GET_EDIT_TEMPLATES', true); isn't always needed

2. https://vborg.vbsupport.ru/showthread.php?t=62164

RTMdotORG
04-06-2009, 11:36 PM
is it supposed to be temple or template?

Jasem
04-07-2009, 08:30 AM
thank you!

Alexey?
04-07-2009, 09:18 AM
is it supposed to be temple or template?

template

1. your code is "old"
define('NO_REGISTER_GLOBALS', 1); is not necessary, it was for vb < 3.5 or 3.0
2. define('GET_EDIT_TEMPLATES', true); isn't always needed

2. https://vborg.vbsupport.ru/showthread.php?t=62164

this code is from my old vBulletin and i use it in my vB 3.8.2 witout problem so i published it

Princeton
04-08-2009, 05:04 PM
moved to graveyard

not a modification