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)

AndyPandy 05-30-2007 07:20 PM

That made no sense what so ever, any other suggestions?

jasonmerchant 06-18-2007 02:49 AM

Hello, I have a page located outside of the vbulletin directory and the script is running smoothly. The page attempts to call cron.php, but it is showing up in my log that it can not find it. Where can I set the path to cron.php? Is there an option in the control panel or must it be done in code?

Thanks

OpalCat 06-21-2007 10:06 PM

I have a weird problem... I'm displaying an embedded swf file and the QuickLinks and Search dropdowns are going behind the swf...?

http://fff.fathom.org/forums/hero.php

J0iN 07-03-2007 07:56 PM

Nice really needed that for my forum, Thanks

This is great i can make my own pages cheers for this mate

T_Richardson 07-06-2007 07:48 PM

Quote:

Originally Posted by SirAdrian (Post 740342)
Put it in the PHP file, instead of using echo/print use variables, then just put the variable in the template. If that is too much work, I think you can use something like this:
PHP Code:

ob_start();

// All your PHP you want in the template here

$above ob_get_contents();
ob_end_clean(); 

Then putting $above in your template would show all the PHP.

Thank you, I've been searching for this solution to include a separate index.php file for 3 hrs. This worked like a dream.

Just to make it clear what I did I'll show it for someone who is also looking:


Code snipet at end of custom page php file.
PHP Code:

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

ob_start();

require_once(
'./bf2_status/index.php');

$above ob_get_contents();
ob_end_clean();

$navbits = array();
$navbits[$parent] = 'BF2 Status';

$navbits construct_navbits($navbits);
eval(
'$navbar = "' fetch_template('navbar') . '";');
eval(
'print_output("' fetch_template('STATUS') . '");');


?> 

I put in "require_once('./bf2_status/index.php');" to get the php file. Then in the template where you usually put the html code for the content, I just put $above

rnmcd 07-06-2007 11:09 PM

Anyone want to link me to a site that is using this mod? I would like to see what you can do with it.

Thanks.

ragtek 07-07-2007 08:56 AM

lol
you can make your own sites
and thats no hack;)
thats just the basic code you need in your file if you want to make a extrafile with the vb classes

how it looks:
http://www.ragtek.org/forum/stencil.php or http://www.ragtek.org/forum/linkliste.php or http://www.ragtek.org/forum/spende.php

rnmcd 07-07-2007 10:05 PM

So it adds the header, footer and navbar, etc to the page and you can enter the 'body' of the page?

Ragtek, how did you create the new links in your navbar?

T_Richardson 07-07-2007 10:26 PM

Quote:

Originally Posted by rnmcd (Post 1285404)
So it adds the header, footer and navbar, etc to the page and you can enter the 'body' of the page?

Ragtek, how did you create the new links in your navbar?

Yes, It adds all those. Works great with Ultimate Side Bars

rnmcd 07-08-2007 12:34 AM

What a coincidence. That is the only other hack/modification I am considering doing at this time!


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.07003 seconds
  • Memory Usage 1,745KB
  • 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_php_printable
  • (2)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