vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Add pages (https://vborg.vbsupport.ru/showthread.php?t=175391)

Goomzee 04-07-2008 03:13 AM

Add pages
 
i add php page it;s not working plz help me what i am doing wrong

here is a Link
http://www.mknexusonline.com/content/mkgames/test.php

i also post there but nobody replay

Dismounted 04-07-2008 04:09 AM

What code are you using?

Bradley_Wint 04-07-2008 04:57 AM

try this one instead.

https://vborg.vbsupport.ru/showthrea...light=new+page

Lynne 04-07-2008 02:17 PM

In order for us to help, you need to post your code. Post the php code and the template.

Goomzee 04-07-2008 04:27 PM

i used same that code copy paste

https://vborg.vbsupport.ru/showthrea...light=new+page

this below code for my test.php

PHP Code:

<?php 

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

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

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

); 

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

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

$navbits = array(); 
$navbits[$parent] = 'Test Page'

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

?>


and this is my Template code

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header

$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat">Title</td>
</tr>
<tr>
        <td class="alt1">Text</td>
</tr>
</table>

$footer
</body>
</html>


Lynne 04-07-2008 06:12 PM

Is this page located in the same directory as all your other vbulletin files? And are the permissions set correctly (644 I think)? And is the template named "TEST" (all caps)?

Goomzee 04-08-2008 03:16 AM

Quote:

Originally Posted by Lynne (Post 1485425)
Is this page located in the same directory as all your other vbulletin files? And are the permissions set correctly (644 I think)? And is the template named "TEST" (all caps)?


well my forums address is

www.mknexusonline.com/forums/ and where as i want add this page here
http://www.mknexusonline.com/content/mkgames/test.php and i did not add forums/ vb files on this path http://www.mknexusonline.com/content/mkgames/test.php and yes and Template name is TEST in all caps

Lynne 04-08-2008 01:21 PM

Well, you can't call global.php in your page that way since you are in a different directory now. So, you need to change directories, and then call global.php. Add something like this before your global call:
Code:

chdir('/full/path/to/your/site/forums');

Goomzee 04-08-2008 04:08 PM

Quote:

Originally Posted by Lynne (Post 1485973)
Well, you can't call global.php in your page that way since you are in a different directory now. So, you need to change directories, and then call global.php. Add something like this before your global call:
Code:

chdir('/full/path/to/your/site/forums');

can u plz tell me which directory should i copy or need to change directories can you plz tell me in brief or step by step i really appricate to you

Lynne 04-08-2008 06:01 PM

I just told you want to do. You need to put that line before the call to your global.php page and put in the path to where to find that file. I don't know what the full path to your site is, so I can't tell you anymore than that.


All times are GMT. The time now is 10:19 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.02192 seconds
  • Memory Usage 1,747KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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