The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm attempting to add my members Xbox Live Gamerscore as pulled by the gXboxlive mod which stores the gamerscore in the gboxlive.score table with the userid the same as user.userid.
So this was my thinking: PHP Code:
PHP Code:
I've been up late on this, but could use some help with it, I'm naive with vb's code, but am trying to produce a query to pull the score based on the userid, then add it to the postbit with PHP Code:
|
#2
|
||||
|
||||
![]()
Use $post['userid'] instead. Although you should really query all the scores and cache them, preventing 1 query for each post displayed on the page.
|
#3
|
|||
|
|||
![]()
Forgive me Dismounted but what would be the best way to go about doing that, or is there even a way to tie a userfield to a database table and just call the userfield??
|
#4
|
|||
|
|||
![]()
how to make cache of query?
|
#5
|
||||
|
||||
![]()
Query the whole lot, put them into an array. Then you can simply access that array to access the data,
|
#6
|
||||
|
||||
![]()
You can actually just do a join in the main posts query to get that data.
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|