vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164)

Xencored 03-18-2009 01:45 PM

i seem to get

PHP Code:

Parse errorsyntax errorunexpected T_VARIABLE in /home/vkmike/public_html/Privacy_Statement.php on line 42 

all the time this is all way to hard for my brain power lol

Lynne 03-18-2009 01:50 PM

I don't know what is on line 42 or you file, but it seems the error is there.

Xencored 03-18-2009 02:01 PM

Quote:

Originally Posted by Lynne (Post 1771119)
I don't know what is on line 42 or you file, but it seems the error is there.

i was only testing this out but this is what i did

PHP Code:

<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS'1);
define('THIS_SCRIPT''Privacy_Statement.php'); // change this depending on your filename

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(

);

// get special data templates from the datastore
$specialtemplates = array(
    
);

// pre-cache templates used by all actions
$globaltemplates = array(
    
'Privacy_Statement',
);

// pre-cache templates used by specific actions
$actiontemplates = array(

);

// ######################### REQUIRE BACK-END ############################
require_once('/public_html/global.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

$navbits = array();
$navbits[$parent] = 'Privacy_Statement;

$navbits = construct_navbits($navbits);
eval('
$navbar "' . fetch_template('navbar') . '";');
eval('
print_output("' . fetch_template('Privacy_Statement') . '");');

?>


ragtek 03-18-2009 02:05 PM

a ' is missing here:
PHP Code:

$navbits[$parent] = 'Privacy_Statement; 

It should be:
PHP Code:

$navbits[$parent] = 'Privacy_Statement'


Xencored 03-18-2009 02:08 PM

Quote:

Originally Posted by ragtek (Post 1771133)
a ' is missing here:
PHP Code:

$navbits[$parent] = 'Privacy_Statement; 

It should be:
PHP Code:

$navbits[$parent] = 'Privacy_Statement'


Hahah it worked thanks for that bro :D

Digital Jedi 03-19-2009 01:32 PM

Quote:

Originally Posted by Stagehandspace (Post 1764034)
As mentioned I have just simply copied the code from first page, and set test.php as the terms of service link, As member it is viewable but not as guest....strange

using 3.8.1 if that help any...

Do your Guests view the forums using a different style?

adamskiii 03-19-2009 09:13 PM

Please help. This is what is showing up on my page:

https://vborg.vbsupport.ru/external/2009/03/67.jpg

thanks

ragtek 03-19-2009 09:56 PM

It would be better if you post the code instead of the picture

adamskiii 03-20-2009 01:04 AM

which code would you like me to post?

RLShare 03-20-2009 01:32 AM

Is your page not in the same directory as your forum? If so then you probably need to set your image paths to full paths instead of relative paths.


All times are GMT. The time now is 02:33 PM.

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.02515 seconds
  • Memory Usage 1,753KB
  • 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
  • (6)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete