Extracting vbulletin info on main page.

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
ceint
Posts: 21
Joined: Sun 25. Jun 2006, 23:45
Contact:

Extracting vbulletin info on main page.

Post 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
###################################################
ceint
Posts: 21
Joined: Sun 25. Jun 2006, 23:45
Contact:

?

Post by ceint »

Does anyone know how to get the latest posts from vbulletin to show in the main page?
ceint
Posts: 21
Joined: Sun 25. Jun 2006, 23:45
Contact:

anyone

Post by ceint »

anyone done this before?
Post Reply