The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Count Buddylist
I am currently trying to add how many buddies a user has in their profile. And i've tried several ways, and it doesnt get the right number. I tried using count, but that doesnt seem to work. Any ideas?
|
#2
|
|||
|
|||
Look at one of my stats hacks, it has a query showing how.
|
#3
|
||||
|
||||
eh.. it seems that it didnt quite work...
|
#4
|
|||
|
|||
[sql]
SELECT LENGTH(buddylist) - LENGTH(REPLACE(buddylist, " ", "")) AS data FROM user WHERE userid = n; [/sql] It works perfectly fine. |
#5
|
||||
|
||||
Hmm, i added in the code, and i dont get anymore errors, but my result isnt the total number of buddies, its another number.
|
#6
|
||||
|
||||
bump :sleep:
|
#7
|
|||
|
|||
I'm telling you, this works...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|