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)

BrettMo 03-23-2007 04:55 AM

Quote:

Originally Posted by BrettMo (Post 1205653)
I need to include a PHP file output in my template, but

Code:

<?PHP include("filename") ?>
does not work in a template. I see this covered over and over in this thread (I did read it) but I don't understand the answer to the problem. It seems to come down to something about making a variable in the "php include start template." Can someone explain how to do that to me in detail? Thanks.

To answer my own question, I ended up using this mod instead which met my needs to include a php file: https://vborg.vbsupport.ru/showthread.php?t=103076

UltimateOreo! 03-27-2007 01:28 AM

Probably outdated PHP, but thanks a lot Brett, your a lifesaver!

Twilkey 04-08-2007 09:54 PM

I cant get anything to work. On this mod, I get Parse errors on line 2. There inst even anything on line 2. And as for Brett, I am having problems with that thing to.

XxBuLLeTz 05-07-2007 12:41 AM

Is there anyway I can create a custom page not in the root directory?

Digbijoy 05-07-2007 10:04 AM

thanx for the tut.

worked cool and fine for me.

i'll be making heaps of custom pages this way, in the near future also.

lukemax 05-14-2007 05:02 PM

me too, I'm trying to create a page like this 1 directory up from the vbulletin one. When I try, I get a blank page, any ideas?

Antivirus 05-21-2007 02:43 AM

Quote:

Originally Posted by lukemax (Post 1247502)
me too, I'm trying to create a page like this 1 directory up from the vbulletin one. When I try, I get a blank page, any ideas?

If you get a blank page, it could be one of several reasons. Usually when i get that, it's because I forgot to put a semicolon at the end of a line somewhere in the script. Also, since you're placing the script 1 directory up from forum directory, make sure that you're calling your required files the correct way like this:

PHP Code:

// ################## REQUIRE BACK-END #### 
chdir('D:\webppliance\conf\domains\site\Inetpub\wwwroot\forum'); // path to forum dir
require_once('./global.php');  
require_once(
'includes/class_bbcode.php'); 


robinhood1995 05-27-2007 10:40 AM

Hi,

I got all of it working.

Lets say that the test.php is called and the linked items that are displayed are links to other php pages which are articles that are written in php format.

So the issue that I have is that I can call the test.php page but when I click on a link I loose vbulletin and only have the new php page up.

Question:
How can I keep the other pages from exiting out of vb and keep the header and footer from vb displayed?

Do I have to create a template for every page?

Thanks

AndyPandy 05-30-2007 04:52 PM

How wud I go about putting a user's avatar on a page like this?

robinhood1995 05-30-2007 06:59 PM

Quote:

Originally Posted by AndyPandy (Post 1257725)
How wud I go about putting a user's avatar on a page like this?

Via the User CP under Avatar section on right hand side


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

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02370 seconds
  • Memory Usage 1,743KB
  • 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
  • (1)bbcode_code_printable
  • (1)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
  • (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