The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Seperate member list?
Hi I hope someone can help with this as it will be an important feature on my forum.
I need to create a separate member list (or just a list of users) going by a calculation I have setup. The calculation is called $percentage. I want to be able to have a list in order of the value of $percantage, and only show users that have a percentage of 1 or higher. It would also be great if I could include some values of custom fields in there. eg. Code:
Rank Name Field 8 Field 9 $percentage 1 Member C 2 1 89% 2 Member A 4 3 60% 3 Member B 1 2 30% --------------- Added [DATE]1217778309[/DATE] at [TIME]1217778309[/TIME] --------------- Friendly bump Oh and the percentage code has changed to Code:
$percentage = ($post['field6'] ? $post['field7'] / $post['field6']: 0); |
#2
|
|||
|
|||
Is anyone able to help with this?
|
#3
|
||||
|
||||
What sort of results are you getting by using the line of code you posted?
Is this on a separate page or are you using the vb page with another post variable passed? |
#4
|
|||
|
|||
I've not got anything at the mo. The line of code is to calculate a percentage from 2 customer user fields, it then displays this in the postbit in a certain forum.
I have no idea where to begin to make a leader board from this. |
#5
|
||||
|
||||
Hmmm, have you taken a look at this article - How to create your own vBulletin-powered page! (uses vB templates) It will get you started on creating a new page that 'looks' like any other vb page.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|