The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#7
|
|||
|
|||
![]()
You helped him with this and I am sure your help was right but where should we put it and can you be a little more detailed to it?
What i got from it is you put this ... Code:
$group=$DB_site->query_first("SELECT SUM(money) AS summoney FROM user WHERE usergroupid=XX") and then change the XX to the usergroup you want to total their points right? then in a template or whereever in the vB put ... $group[summoney] and it will what? show all their points put together? So you could do Group 1: $group[summoney] Group 2: $group[summoney] ... ahh ha! Problem .. its only 1 userid so i figured ... back to this ... Code:
$group=$DB_site->query_first("SELECT SUM(money) AS summoney FROM user WHERE usergroupid=XX") lets say the usergouws were ... 8 9 10 and 11 Code:
$group=$DB_site->query_first("SELECT SUM(money) AS gryffindors FROM user WHERE usergroupid=8") Code:
$group=$DB_site->query_first("SELECT SUM(money) AS slytherins FROM user WHERE usergroupid=9") Code:
$group=$DB_site->query_first("SELECT SUM(money) AS ravenclaws FROM user WHERE usergroupid=10") Code:
$group=$DB_site->query_first("SELECT SUM(money) AS hufflepuffs FROM user WHERE usergroupid=11") $group[hufflepuffs] $group[ravenclaws] $group[slytherins] $group[gryffindors] right??? or what please either PM me back or reply! Thanks! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|