Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-07-2007, 09:59 PM
breamy1990 breamy1990 is offline
 
Join Date: Mar 2007
Location: United Kingdom
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Isit Possible

isit possible to have 5 vbulletin pages in my main site directionary while still having my forums in a seperate directionary

so ive got 5 vb pages in trueconsoleghosts.com using my vbulletin template and login system

and have my forum and vbadvanced all remain the same in forum.trueconsoleghosts.com ?

is this possible?
Reply With Quote
  #2  
Old 04-07-2007, 11:10 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

5 different installations of vB?
Reply With Quote
  #3  
Old 04-07-2007, 11:12 PM
breamy1990 breamy1990 is offline
 
Join Date: Mar 2007
Location: United Kingdom
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its 5 different pages to match the template thats installed on my vb forum so custom pages but outside of the forums folder
Reply With Quote
  #4  
Old 04-07-2007, 11:22 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do this:

Create a file titled "vbglobal.php" with the following contents and upload it to your public_html directory. Make sure to edit the value of $forumpath to the absolute forum path.

PHP Code:
<?php
/* ################################################################ *\
   Created By: Ken Iovino
   Email:  KenIovino@gmail.com
   --
   Copyright ?2007 iVino, Inc. All Rights Reserved.
   This file may not be redistributed in whole or significant part.       
\* ################################################################ */

// enter the absolute forum path. (Use ending slash!)
$forumpath "/home/name/public_html/forum/";

// move to vBulletin directory
chdir($forumpath);

// require vBulletin's core file
require_once($forumpath 'global.php');

// bass CSS infomation
$basecss "<base href=\"" $vbulletin->options['bburl'] . "/\">";

?>
Then anytime you create a new file in the public_html directory, you could use this:

PHP Code:
<?php

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

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT''scriptname');

// ################### 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();

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

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

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

eval('$navbar = "' fetch_template('navbar') . '";');
eval(
'print_output("' fetch_template('template_name_here') . '");');

?>
Make sure to edit the "template_name_here" to the template you want to use. Hope this helps.

Here is a quick default template:

HTML Code:
$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 -->
    $basecss
    $headinclude
    <title>Your Title</title>

</head>
<body>
$header
$navbar

    my code here

$footer
</body>
</html>
Having the $basecss in place insures that all your links "should" point to the correct path.

- Ken Iovino
Reply With Quote
  #5  
Old 04-08-2007, 08:57 PM
breamy1990 breamy1990 is offline
 
Join Date: Mar 2007
Location: United Kingdom
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so basically i have to create a file called vbglobal.php and put it in www.trueconsoleghosts.com

then i create another file called index.php and put the 2nd lot of code into the file and stick that in the www.trueconsoleghosts.com

then create a template in style manage in admincp ?
Reply With Quote
  #6  
Old 04-09-2007, 12:47 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep.
Reply With Quote
  #7  
Old 04-09-2007, 03:14 PM
breamy1990 breamy1990 is offline
 
Join Date: Mar 2007
Location: United Kingdom
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i get an error ???

http://www.trueconsoleghosts.com/index.php
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:52 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04016 seconds
  • Memory Usage 2,228KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete