Follow vBSEO on Twitter
vBulletin Modifications
  • Forums
  • Add-Ons
  • Template Modifications
  • Styles
  • Graphics
  • Tutorials
  • Support Center
  • Register
  • vBulletin SEO

Member Log In

Site Navigation

  • Register
  • Members List
  • Social Groups
  • Search
  • Today's Posts
  • Mark Forums Read

Latest Modifications

  • [vB 3.8.4] THX - Hack for VB. 3.8.4
    By: bluedog
  • [vB 3.8.4] Cyb - Chatbox V.2.3
    By: bluedog
  • [vB 4.0.x] PHPKD - Advanced Quick...
    By: PHPKD
  • [vB 3.6.x] StopSpam
    By: flappi282
  • [vB 3.8.x] vBulletin Chat Addon for...
    By: 123flashchat

Latest Template Mods

  • [vB 4.0.x] Remove My Profile Link...
    By: Ak Worm
  • [vB 3.8.x] Images DownloadBox...
    By: cRs!MP
  • [vB 3.8.x] Adviertise Mod On Forum...
    By: MG4
  • [vB 3.8.4] Images PassWordBox...
    By: cRs!MP
  • [vB 3.8.4] Footer Follow Ups
    By: Ak Worm

Latest Styles

  • [vB 4.0.x] 4.0.3 - VB4STYLE-TWEETA...
    By: Belon
  • [vB 4.0.x] [4.0.3] vbdesigns.de...
    By: Belon
  • [vB 3.8.4] CompletevB - Skylight
    By: DreadKnight
  • [vB 3.8.3] [vB 3.8.4] Barcelona...
    By: hoiquantinhoc.com
  • [vB 3.8.3] Natures Walk by vBSkin...
    By: Chri5

Latest Graphics

  • [vB ] [anim.]Team Ranks
    By: cRs!MP
  • [vB ] Abstract Circles (3...
    By: cRs!MP
  • [vB ] PlayStation Rank Images
    By: cRs!MP
  • [vB 3.6.12] Heavy Stroked Button...
    By: Shelley
  • [vB ] Minature Ranks.
    By: Shelley
vBulletin Modifications » General vBulletin Section » vBulletin Modification Tutorials » [How To] Run a vb page outside of the forum directory
Reply

 

  • Thread Tools
Old 03-18-2006, 03:23 PM   #1
Junior
Coder

Junior's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 ssssss809
Location: U.S.A
Age: 30
Junior is on a distinguished road
Status: Offline Default [How To] Run a vb page outside of the forum directory
1. the php file
PHP Code:
/*======================================================================*\
|| #################################################################### ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000-2006 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'index.php');
// ################### 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 ############################
chdir('forum directory');
require_once(
'./global.php');

/* alll php code goes here */




// the maain template you want to use goes here
eval('print_output("' . fetch_template('main_template') . '");'); 

2. templates
make w/e templates you want via your admin cp they dont even have to be default vb templates as long as its html its good

Last edited by Junior; 03-19-2006 at 02:53 PM.
Reply With Quote
Old 06-08-2006, 09:23 PM   #2
KingYes
vB Newbie

Activity Longevity
0/20 15/20
Today Posts
0/3 sssssss23
KingYes is on a distinguished road
Status: Offline Default
tnx.
but, if my board is blocked for ghost, how is create new page for ghost only with VB setting?
Reply With Quote
Old 08-28-2006, 06:34 PM   #3
garg
vB Newbie

Activity Longevity
0/20 13/20
Today Posts
0/3 sssssss21
garg is on a distinguished road
Status: Offline Default
If I use ordinary SQL queries to pull data from the VB database then I can put them directly in that page?
Reply With Quote
Old 08-28-2006, 08:10 PM   #4
Idan
Coder
Idan's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss1484
Location: Israel
Age: 29
Idan is on a distinguished road
Status: Offline Default
yes.

you don't have to use "ordinary SQL queries" btw:
note that when you have this line:
PHP Code:
require_once('./global.php'); 
it should also give you axx to the global $vbulletin (on 3.5.x/3.6.x) or $vb (in 3.0.x), so you can still run queries using $vbulletin->db->query_xxxx (for 3.5.x/3.6.x)
Regards,
Idan.

* Support will only be given via forums !
* If this post solved/aided your problem, please click "mark as aid" / "mark as solution" as explained in here
Reply With Quote
Old 08-29-2006, 02:47 AM   #5
garg
vB Newbie

Activity Longevity
0/20 13/20
Today Posts
0/3 sssssss21
garg is on a distinguished road
Status: Offline Default
Ah okay thank you very much. I've been looking at examples of such queries now and I hope to create a unique looking front page for my forums
Reply With Quote
Old 09-15-2006, 01:09 PM   #6
Samantha
vB User

Activity Longevity
0/20 13/20
Today Posts
0/3 sssssss96
Samantha is on a distinguished road
Status: Offline Default
Excuse me but I didn't understand a lot :embarrass

For example I'd like to run the vB calendar in an external page, what am I supposed to do?


Thank you all
Reply With Quote
Old 01-06-2007, 06:23 PM   #7
GameDuels
vB Newbie

Activity Longevity
0/20 13/20
Today Posts
0/3 ssssssss4
GameDuels is on a distinguished road
Status: Offline Default
i dont get it how to set it up .
i want the register script in it from the vb forums
Reply With Quote
Old 01-10-2007, 10:05 PM   #8
Kiphaas7
vB Newbie

Activity Longevity
0/20 15/20
Today Posts
0/3 ssssssss8
Kiphaas7 is on a distinguished road
Status: Offline Default
Quote:
Originally Posted by Samantha View Post
Excuse me but I didn't understand a lot :embarrass

For example I'd like to run the vB calendar in an external page, what am I supposed to do?


Thank you all
I too am interested in an extension for this tutorial. I'm currently trying to get stats to show on a page outside the forum directory with parts from vBAdvanced, but the top poster and # of members doesn't show (at all)...

Anyway, a continuation from this tutorial would be greatly appreciated!:classic:
Reply With Quote

Reply

« Adding vb editor to a form | [How To] Send really cool emails »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
[How To] Run vBulletin On your P.C. Ken Iovino vBulletin Modification Tutorials 83 11-02-2009 05:16 AM
[How To] Run a Query Ken Iovino vBulletin Modification Tutorials 9 07-30-2008 05:29 AM
[How To] Add Options per forum Ken Iovino vBulletin Modification Tutorials 10 03-03-2007 06:25 PM
Combine yahoogroups list with vB forum laureen vBulletin Modification Requests 0 08-02-2005 02:48 AM



All times are GMT. The time now is 06:12 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Transverse Styles
  • Top
  • Archive
  • vBSEO
  • Contact Us
LinkBack
LinkBack URL LinkBack URL
About LinkBacks About LinkBacks
Bookmark & Share
Digg this Thread! Digg this Thread!
Add Thread to del.icio.us Add Thread to del.icio.us
Bookmark in Technorati Bookmark in Technorati
Furl this Thread! Furl this Thread!