Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   04-18-2008, 05:33 AM
Send a message via MSN to Norman Norman will become famous soon enough Join Date: Feb 2007 Posts: 49 Location: [Italy]
vB data: call them on a non-vB page


Hi guys and gals, this in one of my first questions here.
I would like to know how do I call vBulletin data to an external non-vB page (an external page of my site). For example, I would like to call the user avatar plus the welcome box/login box in my site homepage, the latest threads and the new registrations to my forum. My question is simple: how do I do this?
Quote   |  



#2   04-18-2008, 10:12 AM
Blake2181 has a spectacular aura about Join Date: Mar 2008 Posts: 401
Re: vB data: call them on a non-vB page


I dont know all the exact code. But you would need to require global.php

Something like...

Code:
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
Then once that is done you can use vb conditionals and all.. To be honest you should set the whole thing then work on your code
Code:
<?php

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

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

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

);

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

// pre-cache templates used by all actions
 = array(
    'whatever goes here',
);

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

);

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

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

 = array();
 = 'Whatever Page';

 = construct_navbits();
eval(' = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('whatever') . '");');

?>
Just change whatever goes here to whatever you want the page named

This should do you for the new threads
New Threads on Non VB page - vBulletin.org Forum

Maybe this for the welcome box?
Deluxe vB User login and access control on non vB pages - vBulletin.org Forum

Its 3.5 but should be able to still use

Last edited by Blake2181; 04-18-2008 at 10:18 AM.
Quote   |  



#3   04-29-2008, 05:41 AM
Send a message via MSN to Norman Norman will become famous soon enough Join Date: Feb 2007 Posts: 49 Location: [Italy]
Re: vB data: call them on a non-vB page


Thank you Blake!

Quote:
Originally Posted by Blake2181 View Post
Maybe this for the welcome box?
Deluxe vB User login and access control on non vB pages - vBulletin.org Forum

Its 3.5 but should be able to still use
Tried, but it doesn't work for me.
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Thread Tools
Display Modes

 
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vbulletin 2 domain Same User data different content ? D4rKNull vBulletin Questions 5 11-26-2007 08:22 PM
TEAM-3X Call of Duty 4: Modern Warfare Clan sinn3d Free vBulletin Link Directory 5 10-16-2007 05:25 PM
Google gets questioned by the EU about data storage News Search Engine News 0 05-28-2007 11:59 AM
vBulletin 3.6.1 Data Loss Issue (With Patch) Brandon Official vBulletin Announcements 0 09-26-2006 10:17 AM


All times are GMT -6. The time now is 03:47 AM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions, vBulletin Skins, Styles, Templates
vBulletin Hacks / Modifications, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory