vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - [Alexey]Create your own. php file (https://vborg.vbsupport.ru/showthread.php?t=210479)

Alexey? 04-05-2009 10:00 PM

[Alexey]Create your own. php file
 
Ok so here is what you have to do
open a new php file lets say
test.php
write into there this

Quote:

<?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

Quote:

Originally Posted by RTMdotORG (Post 1785421)
is it supposed to be temple or template?

template

Quote:

Originally Posted by ragtek (Post 1785345)
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


All times are GMT. The time now is 11:23 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01089 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete