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)

JompaMP 08-21-2006 10:23 AM

i have problem when i go to this page its just a white page look http://forum.drazonia.com/premium.php

i got it to work

Renmiri 08-23-2006 02:46 AM

You are an angel, thanks for this!

:)

aycan555 09-10-2006 06:09 AM

Hi i have insatlled this hack, and it works perfectly,

But the problem is only registered users can view this page, i want to show all visitors, how can i do this?

SaN-DeeP 09-13-2006 01:15 AM

works perfect in Vb 3.6 but need some modifications to whos online code..
can someone direct to right modifications for whos online for custom pages in 3.6 ?

ZacUSNYR 09-20-2006 01:13 PM

Quote:

Originally Posted by SaN-DeeP
works perfect in Vb 3.6 but need some modifications to whos online code..
can someone direct to right modifications for whos online for custom pages in 3.6 ?

Who's on-line has changed in the newer versions - just use plugins.

https://vborg.vbsupport.ru/showthread.php?t=82882

Simple and works great :)

Cebby 10-01-2006 03:27 PM

Quote:

Originally Posted by ang2el
I tried Iframe code in the template but it didn't display the website that I wanted to display in the costume page created.


Can anyone help me how to display through template


or


how to create a page with just header navbar and footer or say no need to fetch template


thanks

I have a need for this also. I just get a blank page. Any way to make this work? I've stripped out as much off the stuff out of the src file for the iframe as possible...

Or is there another way? (the reason for this is the person generating the content that I want to display in the iframe won't try to manually code it into the template directly) Any workarounds?

Dumi 10-14-2006 04:41 AM

I get this when i try and access the test page? Any ideas?

http://www.prisonbreakscene.com/test.php

Adrian Schneider 10-14-2006 04:53 AM

Add "<?php" to the very beginning of the file.

Dumi 10-14-2006 03:18 PM

Quote:

Originally Posted by SirAdrian
Add "<?php" to the very beginning of the file.

I'm such an idiot cant even copy and past! :confused:

Samouel 10-21-2006 01:41 PM

For vbulletin 3.6.2 you could use :

You have to create a 'TEST' template :
Quote:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
$headinclude
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</head>
<body>
$header
$navbar

<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" style="border-bottom: 0" width="100%" align="center">
<tr>
<td class="cat-top">TEST</td>
</tr>
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td colspan="2">TEST</td>
</tr>
</tbody>
</table>
<br />

$footer
</body>
</html>
and a test.php file :

Quote:

<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'index');

// pre-cache templates used by all actions
$globaltemplates = array(
'TEST'
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('TEST') . '");');
?>
I think it will work :up:

:bunny: :bunny:

************

Hum... I have a question :)

In my database, I have 5 records (5 names of country) and I would like to list them in the 'test.php' page.

My test.php file :
Code:

$name = $db->query_read_slave("SELECT name FROM country");

        while ($country = $db->fetch_array($name))
        {
                $vbphrase[name] =  $country['name'];
        }

In the template, I indicate :

Code:

$vbphrase[name]
But I have just one name of country which is listed !
What I have to do to list all names of country ?

Thanks :rambo:


All times are GMT. The time now is 10:48 AM.

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.02417 seconds
  • Memory Usage 1,743KB
  • 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
  • (5)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