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)

ClErK1991 01-22-2012 04:56 PM

Quote:

Originally Posted by cellarius (Post 2291003)
Read and implement the article for the vB version you are running. This is for vB3, you're clearly running vB4.

ahhh yea is true, but there is no way to put on vb 4?

HMBeaty 01-22-2012 05:07 PM

Quote:

Originally Posted by ClErK1991 (Post 2291019)
ahhh yea is true, but there is no way to put on vb 4?

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

ClErK1991 01-22-2012 05:56 PM

thanks bro, that what i need :D

brishi 03-18-2012 03:52 AM

OK, so being new to vB, I just tried this out and received the following error message and am not sure what I need to do? Probably very simple but...

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 4330

Parse error: syntax error, unexpected T_STRING in /home/brishi69/public_html/vb/test.php(42) : eval()'d code on line 1

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: TEST in [path]/includes/functions.php on line 4330

Cheers,
BriShi

cellarius 03-18-2012 11:01 AM

Please note that this tutorial is for vB3.x. You are obviously running vB4.x, so you need to look out for the vB4-article on this topic (in the vB4-articles subforum).

brishi 03-18-2012 06:27 PM

Thanks you for responding cellarius, I noticed and found the one for vB4 late last night and was too tired to change it then. I just tried that one and now I just get a white page. So am looking through the replies on that page too see if anyone had a similar problem before I post in there....

Cheers,
BriShi

Chase 04-23-2012 03:11 AM

When I am browsing my forum on my phone I am unable to view my custom page ... All I get is a white blank page. But when I view the forum on the desktop skin I can view the custom page just fine.

How can I get my custom page to show up when I am using my mobile theme?

BirdOPrey5 04-23-2012 10:33 AM

You probably need to add the template you created to your mobile style.

You probably added it initially only to your default style, so your mobile style is missing the template.

I don't know if it talks about it in this article but you should really enable debug mode in the admin cp (https://vborg.vbsupport.ru/showthread.php?t=165623)

In debug mode you can add a net template to the usually hidden "MASTER Style" which will automatically allow it to be used in ALL styles simultaneously instead of having to add it individually to each style.

Chase 04-24-2012 10:36 PM

Thank you... that was the issue.

Sworm 11-24-2012 03:33 PM

Hi all, i have created a privacy page using this code, but if i try to see that page logged out, the browser report:

Code:

Unable to add cookies, header already sent.
File: /home/download/public_html/vb/tos.php
Line: 1

the php page is:
Code:

<?php

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

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'tos'); // 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(
    'Tos',
);

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

);

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

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

$navbits = array();
$navbits[$parent] = 'Privacy e Tos';

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

?>

There's a solution? i'm using vb 3.8.7 and php 5.3.16

Thanks

@@@@@@@@@@@@@@@@@@@@@@@@@@

Solved, there'was a white space before <?php


All times are GMT. The time now is 01:21 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.03907 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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