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)

Cebby 12-22-2005 01:56 AM

Quote:

Originally Posted by ncangler
I don't know if this is possbile or not but I'm trying to create a stand alone index.php file that contains some code for a Beach Tide Table. The trick is getting the vBulletin header, footer and navbar on the page so it looks consistent with the rest of my site. The Tide Table code has to be in the index.php file as it contains information for multiple locations that is refreshed when you click on the location you want. Here is the Tide Table link:

http://www.ncangler.com/tides/wilmington/index.php

My forums are located here: http://www.ncangler.com/forums/

Can anyone tell me if this can be implemented with this hack? Thanks for your help!

I have this hack pretty much done, except I want to do the same thing you do.

I think this post applies to what we want to do. (This is speaking of images, but I think the same methodology for calling other pages applies) I'd really like to display a separate PHP file in the main window. Seems this isn't like working in frames like HMTL...

MRGTB 12-26-2005 10:09 AM

is there a version of this for vB3.5 series?

derekivey 12-26-2005 02:19 PM

It works on 3.5. The only change you should make is to move $headinclude up before <title> in the template.

MRGTB 12-26-2005 03:03 PM

You mean like this:

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</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>

If thats right, does nothing need to be changed in the PHP file?

derekivey 12-27-2005 06:50 PM

Yes, thats right. Nothing in the PHP file needs to be changed.

Eagle Creek 01-12-2006 09:50 PM

Quote:

Originally Posted by Gary Bolton
You mean like this:

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</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>

If thats right, does nothing need to be changed in the PHP file?

Is there an edit to the file so I won't to change it (I mean, the 3.5.x version).

demojames 01-13-2006 02:21 AM

Thanks worked perfect on Vb 3.0.12 :up:

Asi9ine 01-13-2006 02:53 PM

I'm gonna bookmark this page. Not got the time right now, but excellent work nonetheless. Well done.

cyberhypnotic 01-24-2006 08:14 PM

How do you get the Who's Online to work in 3.5.3?

I did the original edit, but it came back with "Unknown" and a link to a file on my server.

I see that when you click on "Currently Active Users" it's online.php that handles it. What do I change in there?

Meanwhile, I'll keep trying some things.

matttiger 01-29-2006 08:00 AM

Great tutorial. Thanks ;)


All times are GMT. The time now is 07:42 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.01891 seconds
  • Memory Usage 1,744KB
  • 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_code_printable
  • (2)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