![]() |
|
|
Thread Tools |
|
#1
|
||||||||||||
|
||||||||||||
|
Help with DB query for postbit.
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:
I realize now that by looking at some other things that
Is bringing up the logged in user and not the post's userid, so that's part of the problem, does anyone know the right way I should be querying this in vB? 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
I had the query seemingly working with an odd join based on the gboxlive code but it still wasn't printing the score out in the template. No members have liked this post.
|
||||||||||||
|
#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.
__________________
View My Modifications 29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x) Please do not PM me to ask for support - please use the relevant thread or forum. No members have liked this post.
|
|
#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??
No members have liked this post.
|
|
#4
|
|||
|
|||
|
how to make cache of query?
No members have liked this post.
|
|
#5
|
||||
|
||||
|
Query the whole lot, put them into an array. Then you can simply access that array to access the data,
__________________
View My Modifications 29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x) Please do not PM me to ask for support - please use the relevant thread or forum. No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CES Intelligent Postbit Query | thincom2000 | vBulletin 3.6 Add-ons | 87 | 14 Mar 2008 23:00 |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 20:05.



