vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Very n00b like question... Plz help... (https://vborg.vbsupport.ru/showthread.php?t=42069)

Meioh 08-08-2002 02:36 PM

Very n00b like question... Plz help...
 
Well im a COMPLETE newb to php and i jus have one simple question... I want to create a new .php page to display some information... All it needs to be consisted of is some tables and an image... My question is: How would i go about setting up a page so that those things appear? Also, how would i have it so this page corresponds with my forum in that the header, footer information still stays on the page... Any help would be appreciated..

Meioh 08-09-2002 04:14 AM

any help would really be appreciated..

Neo 08-09-2002 04:27 AM

This is a basic PHP script that is used for vbulletin. It contains template connections so that you can get the header and footer information.

PHP Code:

<?php
error_reporting
(7);

$templatesused=" your_template_here ";
require(
"./global.php");

// Your PHP Code Here

eval("dooutput(\"".gettemplate('your_template_here ')."\");");
?>


now in the template you will want to put something like this.

PHP Code:

{htmldoctype}
<
html>
<
head>
    <!-- 
no cache headers -->
    <
meta http-equiv="Pragma" content="no-cache">
    <
meta http-equiv="no-cache">
    <
meta http-equiv="Expires" content="-1">
    <
meta http-equiv="Cache-Control" content="no-cache">
    <!-- 
end no cache headers -->
    <
meta name="keywords" content="vbulletin,forum,bbs,discussion,jelsoft">
    <
meta name="description" content="$bbtitle is a discussion forum powered by vBulletin. To visit the forum, go to $bburl/ . To find out about vBulletin, go to [url]http://www.vbulletin.com/[/url] .">
    <
title>$bbtitle powered by vBulletin</title>
    
$headinclude 
</head>
<
body>
$header

<!-- your html code here -->

$footer
</body>
</
html

Now you will have to add the image / tables within the template for it to work / view correctly.

Meioh 08-10-2002 12:31 AM

wow thnx alot!! it kinda worked.. I got the header, footer and the image/table i wanted to appear but there was only one problem... Above my header (banner) it says

"Warning: Cannot add header information - headers already sent by (output started at /home/dbzgtunl/public_html/forums/dragonradar.php:2) in /home/dbzgtunl/public_html/forums/admin/functions.php on line 1648"

Im not quite sure what this is... or how i can fix it.. If you can plz help me, it would be greatly appreciated... Also, would this be a problem cuz i didn't put in php code for the basic PHP script.. Whatever it is, any help would be appreciated to fix this problem.. Also, thanks again!!

Steve Machol 08-10-2002 04:15 AM

Meioh, please go to this page and enter your username, to show you are licensed. (you will need to use your customer number and password to access that page)

Also please restore the vBulletin/Jelsoft copyright to your footer template?

http://www.otakuforums.com/

Right now you are in violation of the licensing agreement. At a minimum the copyright must read:

vBulletin, Copyright ?2000 - 2002, Jelsoft Enterprises Limited.

Neo 08-10-2002 05:08 AM

I wish you would tell us these things in the postbit..


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