Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 29 Jul 2007, 11:41
tinycg tinycg is offline
 
Join Date: Oct 2006
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I realize now that by looking at some other things that
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
Reply With Quote
  #2  
Old 29 Jul 2007, 11:47
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
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.
Reply With Quote
  #3  
Old 29 Jul 2007, 11:57
tinycg tinycg is offline
 
Join Date: Oct 2006
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??
Reply With Quote
  #4  
Old 01 Aug 2007, 12:22
testebr testebr is offline
 
Join Date: Jan 2004
how to make cache of query?
Reply With Quote
  #5  
Old 02 Aug 2007, 07:31
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
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.
Reply With Quote
  #6  
Old 02 Aug 2007, 07:48
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
You can actually just do a join in the main posts query to get that data.
Reply With Quote
Reply


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 20:05.

Layout Options | Width: Wide Color: