Page 1 of 1

Extracting vbulletin info on main page.

Posted: Mon 17. Jul 2006, 21:16
by ceint
Hi,

I found a script that let's you place "last posts" etc on your website.

Does anyone know I can get the below to work on my site. Not found a way to implement this correctly with phpWCMS.

Code: Select all

How To Use vBExternal:

First the webpage you use it on must be php, if it is .htm/.html just re-name the extension to .php
Next step is to call the file, in this example we assume that your site is: http://hello.com, and your
forum is located at: http://hello.com/forums, so insert this code at the very top of our php file:

<?php
chdir('./forums');
require_once('./vBExternal.php');


(Be sure to change 'forums' to your folder name)
Now you have loaded the vBExternal system onto your webpage, ready to include information from your forum onto
your webpage!


###################################################
# Displaying Newest Members

<?php
output_NewestMembers(5);
?>

# Change '5' to the amount you want to show
###################################################

###################################################
# Displaying Top Posters

<?php
output_TopPosters(5);
?>

# Change '5' to the amount you want to show
###################################################

###################################################
# Displaying Newest Threads

<?php
output_NewestThreads(5,"1,2,3");
?>

# Change '5' to the amount you want to show
# Change '1,2,3' to the forum ids you want to pull
# news from (leave blank to pull from all forums)
###################################################

###################################################
# Displaying Newest Replies

<?php
output_NewestReplies(5,"1,2,3");
?>

# Change '5' to the amount you want to show
# Change '1,2,3' to the forum ids you want to pull
# news from (leave blank to pull from all forums)
###################################################

###################################################
# Displaying News

<?php
output_News(5,4);
?>

# Change '5' to the amount you want to show
# Change '4' to the forum id you want to pull
# news from (must be set - only 1 forum id allowed)
###################################################

###################################################
# Displaying Users Online

<?php
output_UsersOnline();
?>

# There are no parameters for this function
###################################################

?

Posted: Sun 30. Jul 2006, 19:49
by ceint
Does anyone know how to get the latest posts from vbulletin to show in the main page?

anyone

Posted: Thu 12. Oct 2006, 19:39
by ceint
anyone done this before?