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)

Boofo 11-25-2004 08:34 AM

Quote:

Originally Posted by JohnBee
xeonkiller711 I cured all my problems with news in my page by switching
to the coranto 1.24 news script its much more powerful than cutenews
and I was able to do anything I wanted within vBB using the phpinclude
functions.

let me know if you need any help I am more than willing to share my
configs and code.

I would be interested in seeing this. ;)

Takamine334 11-28-2004 12:51 AM

excellent!

yellow281 11-28-2004 11:12 PM

Couldnt this be taken one step further and include the categories and sub categories from one of the 50 forums I have to create. It would sure save me a hell of alot of typing setting up ALL these forums when theyre all the same. Be great to do one, then copy them all over doing by doing this and renaming them. Not sure how they would all link together though.. I guess I could set up the master page and have all my 50 categories link to URL's for the other boards. Least they would all be drawing off the same user database to create the larger board I wanted.

Can someone show me if this could be done using this code.. but modified somewhat?

Thanks

Kate

Xtrm2Matt 11-30-2004 04:49 PM

Could someone make some code for me so it displays the posts from a certain forum (with forumid 38) post on the front page of a non-vB powered website? I'd also like templates.

I've tried and failed... someone please help!!!

traderx 12-20-2004 02:51 PM

Ok... I was able to create the page to work in the /forum directory, and it work as posted. But I really want it to work in /forum/glossary directory. I finally was able to get it to work to show the header and footer AND the test template, BUT it doesn't use my CSS for the formatting, could this be because I am using it saved as a file, or did I forget to add something as this is not in the /forum directory but in my /forum/glossary directory. Any help on this would be great as I could really use this.



Code:

<?php

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

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'test1'); // change this depending on your filename

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(

);

// get special data templates from the datastore
// $specialtemplates = array( 
// );

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

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

);

// ######################### REQUIRE BACK-END ############################
chdir('/home/jaxen/public_html/4xtraders/forum/');
require('./global.php');

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

$navbits = array();
$navbits[$parent] = 'Test Page';

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

?>


T3MEDIA 12-20-2004 03:01 PM

Quote:

Originally Posted by glo
unfortunately, i have found the same problem with some of Gary's threads.

He is probably too busy.

Heh...Gary... dont tell me about this guy...

traderx 12-21-2004 05:25 PM

Quote:

Originally Posted by Gary King
3) Replace eval('print_output("' . fetch_template('TEST') . '");'); with your PHP stuff.

Could you pls give a working example so I don't screw it up :)
I am having a hell of a time getting a stand alone glossary script to work and I am now totall lost on what to do to make it happen.

Xtrm2Matt 12-21-2004 05:59 PM

Quote:

Originally Posted by Xtrm2Matt
Could someone make some code for me so it displays the posts from a certain forum (with forumid 38) post on the front page of a non-vB powered website? I'd also like templates.

I've tried and failed... someone please help!!!

Done this and much more now without using any CMS's or anything, just code.

I have stats.. news.. log-in form.. user information.. and more on a non-vB page using only code now.

Thanks anyway :)

T3MEDIA 12-22-2004 11:42 AM

Quote:

Originally Posted by Xtrm2Matt
Done this and much more now without using any CMS's or anything, just code.

I have stats.. news.. log-in form.. user information.. and more on a non-vB page using only code now.

Thanks anyway :)

insted of braggin why not help the poor chap? He is asking for help.

T3MEDIA 12-22-2004 11:45 AM

Quote:

Originally Posted by gspot
Sorry I have this option so new members will register in order to view the images the forum has to offer. Non-the-less, I'm still having the same problem.. And this doesn't effect the coding problem I'm running into, does it???

I know its old but you wont get support from this guy since he stole the idea from somewhere else.


All times are GMT. The time now is 11:07 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.02227 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
  • (1)bbcode_code_printable
  • (6)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