grom815
07-02-2014, 11:28 PM
Im looking for either a product, or a way of doing this myself.
What I want is to have a user have two post-counts. One being an inflated one, and one being a "real one".
For example,
If User1 has 20 posts on my forum, but I edit his post count to be 50, in his postbit and profile, it will say 50.
I want to have his profile and postbit say 50, just like it is.
However, in his profile only, underneath 'Total Posts', I want there to be 'Posts in these forums', where the value is 20.
When he makes a new post, I want the postbit and 'Total Posts' to go to 51 like normal, and the 'Posts in these forums' to go up also to 21. I want the posts per day to be calculated using the 21 posts.
Or maybe make a duplicate of the 'Total Posts' and add an offset to it and change the postbit to have that value?
Any way I can do this and not screw everything up?
--------------- Added 1404416245 at 1404416245 ---------------
Anyone?
Maybe I can create a custom non-user-editable field, and put their offset post count in there. For the example, I will name this field 'Offset'.
So if a user has 20 posts on my forum, his 'Total Posts' will say 20. As admin, I would edit his 'Offset' field to say 50.
Then, I would edit the postbit to show 'Total Posts' + 'Offset' for post count. In this example, it would show Postcount: 70.
Is math like this even possible?
I'm open to any ideas....
Is there a tutorial on adding custom fields in MySQL and interfacing them with vBulletin?
Maybe I can add a 'TotalPostsPlusOffset' column in the same table that has the postcount. Then, when I make a change to a user's 'Offset' field, it would run an update query on that user and add the 'Postcount' and 'Offset' columns.
What I want is to have a user have two post-counts. One being an inflated one, and one being a "real one".
For example,
If User1 has 20 posts on my forum, but I edit his post count to be 50, in his postbit and profile, it will say 50.
I want to have his profile and postbit say 50, just like it is.
However, in his profile only, underneath 'Total Posts', I want there to be 'Posts in these forums', where the value is 20.
When he makes a new post, I want the postbit and 'Total Posts' to go to 51 like normal, and the 'Posts in these forums' to go up also to 21. I want the posts per day to be calculated using the 21 posts.
Or maybe make a duplicate of the 'Total Posts' and add an offset to it and change the postbit to have that value?
Any way I can do this and not screw everything up?
--------------- Added 1404416245 at 1404416245 ---------------
Anyone?
Maybe I can create a custom non-user-editable field, and put their offset post count in there. For the example, I will name this field 'Offset'.
So if a user has 20 posts on my forum, his 'Total Posts' will say 20. As admin, I would edit his 'Offset' field to say 50.
Then, I would edit the postbit to show 'Total Posts' + 'Offset' for post count. In this example, it would show Postcount: 70.
Is math like this even possible?
I'm open to any ideas....
Is there a tutorial on adding custom fields in MySQL and interfacing them with vBulletin?
Maybe I can add a 'TotalPostsPlusOffset' column in the same table that has the postcount. Then, when I make a change to a user's 'Offset' field, it would run an update query on that user and add the 'Postcount' and 'Offset' columns.