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)

The Realist 06-24-2004 01:34 PM

What do you mean by "adding it to the template cache at the top of the page" ??

Thanks M8



Quote:

Originally Posted by Dean C
Make sure you added the template and also added it to the template cache at the top of the page :)


nogerorob 06-24-2004 05:34 PM

Quote:

Originally Posted by The Realist
What do you mean by "adding it to the template cache at the top of the page" ??

Thanks M8

I'm a bit confused by this also. Anyone?

rob

nogerorob 06-24-2004 06:35 PM

Oh k. Finally i figured this out. I am such a n00b.

Ok,

You don't need to create a new custom template for this basic page stuff. You can have it display an existing template

If you're seeing the "all white"screen with the source:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

You're almost there.

The problem is probably your print_output line, you're probably printing a nonexistant template. Try using a template included with vb3 like GENERIC_SHELL. i.e.
eval('print_output("' . fetch_template('GENERIC_SHELL') . '");');

Then if you want to get creative with a new custom template, you must add it using the vB3 admin control panel. Then when you fetch_template('newCustomTemplate') it will show up instead of the "white screen."

Someone want to confirm this?

rob

armani1072 06-25-2004 02:02 AM

anybody have any idea with this one????


https://vborg.vbsupport.ru/showthrea...&page=13&pp=15

Post #195 all the way down at the bottom


thanks

nogerorob 07-13-2004 04:44 AM

Everything works right, but my images aren't loading. Anyone know why the images won't load when I try this?

I'm doing the appropriate changedir to reach the vB root.

Thanks,

Jolten 07-13-2004 06:28 AM

Quote:

Originally Posted by armani1072
great hack :D

however i am having a few issues when i try to align the tables in the body. if i try to align the table on the left the time stamp will appear on the right in stead of the bottom of where it should be. in the attached image you can see how i made two tables side by side and the time stamp appears in between the two tables. no matter what i try in the code nothing seems to move it. i will attach the code too. Any help will be appreciated :) thanks.


HTML Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]&nbsp:: Links</title>
$headinclude
</head>
<body>
$header

$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat">Links</td>
</tr>
<tr>
        <td class="alt1"><p>Great links and friends of Mysite.org.<br>
        </td>
</tr>
</table>
<br>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="48%" align="left">
<tr>
        <td class="tcat">Discussion Boards</td>
</tr>
<tr valign="center">
        <td class="alt1"><br><a href="http://www.site1.org/" target="_blank">Description</a><br><br><a href="http://www.site2.com/" target="_blank">Description2</a><br><br><a href="http://www.site3.com/" target="_blank">Description3</a><br><br><i>more to come...</i><br>
        </td>
</tr>
</table>


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="48%" align="right">
<tr>
        <td class="tcat">Other Sites</td>
</tr>
<tr>
        <td class="alt1"><br><a href="http://www.site1.org/" target="_blank">Description1</a><br><br><a href="http://www.site2.com/" target="_blank">Description2</a><br><br><a href="http://www.site3.com/" target="_blank">Description3</a><br><br><i>more to come...</i><br>
        </td>
</tr>
</table>
<br>
<br>
<br>
$footer

</html>


What's your footer template look like?

You could just enclose your footer in a table.

nogerorob 07-14-2004 08:56 PM

Quote:

Originally Posted by nogerorob
Everything works right, but my images aren't loading. Anyone know why the images won't load when I try this?

I'm doing the appropriate changedir to reach the vB root.

Thanks,

bump.

Anyone?

nonet 07-25-2004 11:00 PM

Works great except the new page does not show up in the nav bar. Any ideas?

getthat 07-26-2004 09:51 AM

Hi,

I want to create a new custom page in the root directory of my website but I always get the errors below. What am I doing wrong here (I'm using vb 3.0.3) ?

Warning: main(./includes/init.php): failed to open stream: No such file or directory in /home/autosurf/public_html/forums/global.php on line 18

Fatal error: main(): Failed opening required './includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/autosurf/public_html/forums/global.php on line 18

sully02 08-01-2004 12:02 AM

Right now, I'm looking through the thread to see if it's there, but I want to include my homepage in the list of locations for currently active users. The problem? The homepage, like my forum homepage is also named index.php

So...

Homepage = www.livemockdraft.com/index.php
Forum main = www.livemockdraft.comforums/index.php

Is there a way to get the functions_online.php file to differentiate between the two?


All times are GMT. The time now is 07:38 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.03043 seconds
  • Memory Usage 1,761KB
  • 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_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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