Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 09-07-2004, 10:08 AM
rake's Avatar
rake rake is offline
 
Join Date: Nov 2002
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

quote from a couple of posts above.

Quote:
Originally Posted by rake
Copy & Paste from the navbar template and remove any variables or conditionals.
Reply With Quote
  #12  
Old 09-07-2004, 12:12 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bad Bunny
First of all, you're adding php into the middle of an html file. Unless you have changed your htaccess file to run html files as php, then this just doesn't work.
Secondly, I see you are placing vb if conditional statements right inside html. That just doesn't work.
Well then, how do I make it work? And yes, I have it set to allow php inside of html, otherwise you would not see what you are seeing.

Quote:
Originally Posted by rake
quote from a couple of posts above.
The goal here is to make it so when I change my navbar, it changes on this page too. If I do what you suggest, I would have to change this page seperately if my navbar were to change. That is not what I want.
Reply With Quote
  #13  
Old 09-07-2004, 04:21 PM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bitg
Well then, how do I make it work? And yes, I have it set to allow php inside of html, otherwise you would not see what you are seeing.

The goal here is to make it so when I change my navbar, it changes on this page too. If I do what you suggest, I would have to change this page seperately if my navbar were to change. That is not what I want.
But the point is that I am not seeing anything. Also, if you are including the header templates as you say, why are you declaring the doctype yourself?

I recommend you use vba cmps. You can set it outside your forum, you can make as many pages as you want. It seems as though it will take far more effort to code your own thing.
Reply With Quote
  #14  
Old 09-08-2004, 07:43 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I understand.

What I would like to see is the means to have any php page with the proper lines be able to fit within the vb3 format.

For example if you were to tell me EXACTLY what to put in the php page to make it work within VB3, then I could add my custom stuff to the middle to make my stuff work.

Eg.

Page code would be as follows
------------------------
vB3 header code

My text

vB3 footer code.
------------------------

Then everything I add to the "My text" area would atomatically be put between the vB3 header and footer.
Reply With Quote
  #15  
Old 09-08-2004, 08:23 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A good example of what I have so far can be found at the following url.

http://www.dungeonkeepersdomain.com/forums/codetest.php

I have attached what I would like the header and footer to look like. These images are screen captures of what the primary site that is running the vb3 software looks like.

It is obvious that I am close, but it is not all there yet.
Attached Images
File Type: gif footer.gif (8.8 KB, 0 views)
File Type: gif header.gif (28.1 KB, 0 views)
Reply With Quote
  #16  
Old 09-08-2004, 08:29 PM
rake's Avatar
rake rake is offline
 
Join Date: Nov 2002
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're missing the $headinclude
Either add that in, or copy and paste from the source of a vbulletin page. It's the style definition. That's what's missing.
Reply With Quote
  #17  
Old 09-08-2004, 09:46 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool. So my code should look like this.

<?php
include("./global.php");
eval('$headinclude = "' . fetch_template('headinclude') . '";');
echo $headinclude;
eval('$header = "' . fetch_template('header') . '";');
echo $header;
eval('$navbar = "' . fetch_template('navbar') . '";');
echo $navbar;
echo "<center><table border=1 cellpadding=10 cellspacing=0><tr><td align=center>I want my own custom text or program to be in this spot</td></tr></table></center>";
eval('$footer = "' . fetch_template('footer') . '";');
echo $footer;
?>
Reply With Quote
  #18  
Old 09-09-2004, 01:34 AM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, now how do I make this new page accept vb3 phrases?
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 06:52 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.06303 seconds
  • Memory Usage 2,251KB
  • Queries Executed 14 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (2)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete