The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello,
I am currently working on a hack and I have been unsuccessful in figuring out how to display each users pointtotal in the postbit. I have added "points" to the users in the database, I am unable to properly sort the information and send it out to the postbit. If anyone could help me with this or put me on the right track I would be very grateful. Thank You, -mc |
#2
|
||||
|
||||
![]()
Is it you can't pull the info it from the db or you are getting a query for each post on the page?
|
#3
|
|||
|
|||
![]()
I don't know how to pull in the info for each individual user. I would like to keep it to one query and pull all the info from that.
I tried looking at how VB displays the postcount but I did not understand it. Would like it to run it like that. |
#4
|
||||
|
||||
![]()
Maybe something like this?
PHP Code:
|
#5
|
|||
|
|||
![]()
Trying to get it to work in functions_showthread. Would that be the wrong place?
|
#6
|
||||
|
||||
![]()
Instead of running that query, try this instead. Add this to the postbit where you want the points to show up.
HTML Code:
$post[points] ![]() |
#7
|
|||
|
|||
![]()
YES! It worked!!
Thank you so much!!! -mc |
#8
|
||||
|
||||
![]()
Ok, for future reference. Anything you add to the user table can be done just like that for the postbit from now on. And assassingod is the one to thank for this. I learned sonmething right along with you this time.
![]() Enjoy! ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|