Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 08-08-2002, 03:36 PM
Meioh Meioh is offline
 
Join Date: Jun 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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..
Reply With Quote
  #2  
Old 08-09-2002, 05:14 AM
Meioh Meioh is offline
 
Join Date: Jun 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any help would really be appreciated..
Reply With Quote
  #3  
Old 08-09-2002, 05:27 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 08-10-2002, 01:31 AM
Meioh Meioh is offline
 
Join Date: Jun 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
  #5  
Old 08-10-2002, 05:15 AM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 08-10-2002, 06:08 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:50 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.04161 seconds
  • Memory Usage 2,211KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete