The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi All,
I'm wondering how would I pull information from vBulletin? I would like to pull: Username Posts And Some Additional Information - Pc1203 [EDIT]Sorry, the pages are outside of vBulletin.[/EDIT] |
#2
|
||||
|
||||
![]()
Are you trying to display this information on a page within vBulletin or are you using it outside of vBulletin?
|
#3
|
|||
|
|||
![]()
A page outside of vBulletin.
- Pc1203 |
#4
|
||||
|
||||
![]()
This might of use to you: https://vborg.vbsupport.ru/showthread.php?t=108026
|
#5
|
|||
|
|||
![]()
Well, that really isn't what I wanted. I wanted to pull a users posts into an external page. And, yes I checked, vBExternal doesn't do what I'm thinking of.
- Pc1203 |
#6
|
||||
|
||||
![]()
What are you trying to do specifically, because I've used a modified vBExternal in the past to display trimmed posts, with the Author's Username, and date of posting on an external page.
|
#7
|
|||
|
|||
![]()
Ok, this is what I'm trying to do. I'm trying to create a small profile system for my website. In it somewhere, it says the users posts, join date, username, and some custom profile fields. Hope this is better.
- Pc1203 |
#8
|
||||
|
||||
![]()
Well it's really just a matter of querying the database for the relevant information.
Place the following at the very top of the pages you're displaying information on; make sure they're PHP files as well. Code:
<?php chdir('/path/to/forum'); require_once('/path/to/global.php'); ?> Example: Code:
$stats = $db->query_read("SELECT threadcount, replycount FROM " . TABLE_PREFIX . "forum"); while ($forum = $db->fetch_array($stats)) { $threads += $forum['threadcount']; $posts += $forum['replycount']; } $threads = vb_number_format($threads); $posts = vb_number_format($posts); |
#9
|
|||
|
|||
![]()
Ok, Thanks alot!
// I would add rep but I guess it's disabled. - Pc1203 EDIT: I get a blank page after trying this code: Code:
<?php chdir('/home/penguink/public_html/forums'); require_once('/home/penguink/public_html/forums/global.php'); ?> <html> <head> </head> <body> Test <?php $stats = $db->query_read("SELECT threadcount, replycount FROM " . TABLE_PREFIX . "forum"); while ($forum = $db->fetch_array($stats)) { $threads += $forum['threadcount']; $posts += $forum['replycount']; } $threads = vb_number_format($threads); $posts = vb_number_format($posts); $stats ?> </body> </html> - Pc1203 |
#10
|
|||
|
|||
![]()
Bump
- Pc1203 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|