PDA

View Full Version : Mini Mods - [Alexey] Create a new php file Easy and fast


Alexey?
04-06-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('Template NAME') . '");');
?>

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

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


Any one who need help contact me in privet
Enjoy!

TalkVirginia
04-07-2009, 07:49 PM
There's already an article on this.

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

Alexey?
04-08-2009, 05:30 AM
Yea i saw that.
but this is a diffrent way to do it.

Rich
04-08-2009, 10:11 AM
This is the same thing as the other minus the comments which explain everything to the user viewing it and the addition of "define('GET_EDIT_TEMPLATES', true);" which isn't needed.

I advise everyone to use the link posted by talkvirginia. If you need something like this to create a page, you are MUCH better off using the link and learning to do it right.

Princeton
04-08-2009, 04:59 PM
moved to graveyard - not a modification
closer to being an article