The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
The website I am running is run by donations for a game.
I'd like to add to parts to the postbit_legacy area, based on fields, if it the built in rank/title can't be changed to look at a value other than postcount. Here are the exact details: For one parameter (custom field), it would be how much they have donated to the site, and would get dollar sign "stars" in their postbit based on the number in the custom field (which is edited by admin only) Second parameter (custom field) would be the same thing, except with a different icon for amount of game participation and forum help they have given, along with adding an additional custom title. (again, edited by admin only). We all know postcount != forum help Both of these fields would be a numeric value to calculate the rank, or "bracket" the title (1-100=blah, 101-500=argh, etc). I guess the base question is if I use the above post for a template, is there a way I can eval the value (numerically) of the custom field to decide which icon to display? I do not understand the functionality of "condition" on "If Condition=xxx" or how to evaluate/compare numercal fields in "proper vB" All help would be appreciated! I am familiar with PHP, but don't want to make any changes that would hurt the upgrade process, so am looking for an official method first. |
#2
|
|||
|
|||
![]()
Anybody?
Maybe a link to a devel guide that would show how to perform functions on custom field values? I would like to do this using proper vb function calls, instead of storming in with PHP and queries. |
#3
|
|||
|
|||
![]()
Bump for long weekend...
I'll settle for the code to determine if the value of a profile field is > 10,000 (numeric) |
#4
|
||||
|
||||
![]()
As far as I know the only way to do this is to manually change the field to INTIGER in the database. It would be nice if there was a way to create numeric custom fields for storing data such as this by default but there is no such option.
|
#5
|
|||
|
|||
![]()
A hack around this by creating 20 custom secondary usergroups for rank only (no permissions), then checking off the boxes, and adding them to custom ranks, display always, posts 0... Then check off manually the users that fit those "rank only" usergroups.
Would that be too sloppy? How would the "stack ranks" behave. Has anybody tried this method before? |
#6
|
|||
|
|||
![]()
Willing to pay for coding. I have no problems changing a profile field to integer.
I am a unix and database admin, so the step by step can be snipped. However, I am currently on 3.6.5 and waiting a few weeks to make sure all bugs are ironed out in 3.6.7 PL1 (x?) *I have installed the security plugin in 3.6.5 so solution needs to be as a plugin, but assume profile field is integer, then I need only code utilizing plugins. Adding that many usergroups to display for 1,000 users, when only 20 have "The Rank" seems a bit server intensive for me. Looking for lightweight solution. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|