vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Extra page via templates (https://vborg.vbsupport.ru/showthread.php?t=60868)

cdrive 01-28-2004 03:51 PM

Extra page via templates
 
I'm wanting to know if someone is planning on updating this hack that c-pr0mt did a while ago

Old hack : https://vborg.vbsupport.ru/showthread.php?t=36600


cheers

Cdrive

assassingod 01-28-2004 04:10 PM

It's not that hard, here's a simple way:
PHP Code:

<?php

error_reporting
(E_ALL & ~E_NOTICE);
require_once(
'./global.php');

eval(
'print_output("' fetch_template('YOUR TEMPLATE') . '");');
?>

Then create a template called 'YOUR TEMPLATE' (without quotes) and add your page in there:)

cdrive 01-28-2004 04:24 PM

thanks, very much!

cdrive 01-28-2004 04:30 PM

ok now the only problem is that i can't get the navbar to show; this is the code i used

PHP Code:

$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
    <!-- 
no cache headers -->
    <
meta http-equiv="Pragma" content="no-cache" />
    <
meta http-equiv="Expires" content="-1" />
    <
meta http-equiv="Cache-Control" content="no-cache" />
    <!-- 
end no cache headers -->
    <
title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
    
$headinclude
</head>
<
body>
$header
$navbar

<thead>
    <if 
condition="$show['guest']">
    <!-- 
guest welcome message -->
    <
tr>
        <
td class="tcat" colspan="6"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
    </
tr>
    <
tr>
        <
td class="alt1" colspan="6">
            <
phrase 1="faq.php?$session[sessionurl]2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase>
        </
td>
    </
tr>
    <!-- / 
guest welcome message -->
    </if>

</
thead>

<
br>
YOUR CONTENT GOES HERE 
<br>
$footer
</body>
</
html


assassingod 01-28-2004 04:36 PM

Use this code:
PHP Code:

<?php 
 
error_reporting
(E_ALL & ~E_NOTICE); 
require_once(
'./global.php'); 
 
eval(
'$navbar = "' fetch_template('navbar') . '";');
eval(
'print_output("' fetch_template('YOUR TEMPLATE') . '");'); 
?>


cdrive 01-28-2004 04:49 PM

ok cheers working now!

Loxias 02-06-2004 11:51 PM

Gotta...just took a little more searching ;)

PranK 03-25-2004 05:39 AM

nice one - i love it!


All times are GMT. The time now is 08:40 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.01331 seconds
  • Memory Usage 1,740KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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