View Full Version : Older reputation comments anonymous, newer ones non-anonymous
Aaow AnD wHiTe
11-16-2004, 10:15 AM
I have a problem.
I have anonymous reputation activated and I want to make it non-anonymous again. The problem is that I want the older reputation comments to remain anonymous while the newer ones are non-anonymous. How can I achieve this? Sorry if it has already been created or requested I haven't been able to find it.
Thanx in advance.
Colin F
11-16-2004, 10:21 AM
I have a problem.
I have anonymous reputation activated and I want to make it non-anonymous again. The problem is that I want the older reputation comments to remain anonymous while the newer ones are non-anonymous. How can I achieve this? Sorry if it has already been created or requested I haven't been able to find it.
Thanx in advance.
I think the easiest way to do that would be to delete the data from the database using a query. I don't currently have a copy of the database structure, but I'll try to get back to you when I come home.
I assume it would be something like "UPDATE " . TABLE_PREFIX . "reputation SET whoadded = 0"
Aaow AnD wHiTe
11-16-2004, 10:29 AM
I think the easiest way to do that would be to delete the data from the database using a query. I don't currently have a copy of the database structure, but I'll try to get back to you when I come home.
I assume it would be something like "UPDATE " . TABLE_PREFIX . "reputation SET whoadded = 0"
Yeah, that would be a way out but I like to keep track of the reputation just in case someone breaks the rules over there so I would like to keep a record of the past reputation given.
Would it be possible to create a conditional where if the date of the reputation is before X the name field is not shown? This way, I can keep track of the given reputation in my admin panel, users won't see the older comments and I don't loose any data.
If there is no possibility to do that, I will use that query you're talking about so I hope you can give it to me :)
Thanx for your quick reply, Colin :D
Colin F
11-16-2004, 10:58 AM
Yeah, that would be a way out but I like to keep track of the reputation just in case someone breaks the rules over there so I would like to keep a record of the past reputation given.
Would it be possible to create a conditional where if the date of the reputation is before X the name field is not shown? This way, I can keep track of the given reputation in my admin panel, users won't see the older comments and I don't loose any data.
If there is no possibility to do that, I will use that query you're talking about so I hope you can give it to me :)
Thanx for your quick reply, Colin :D
Of course, that would be an idea as well...
I've been looking through the code and the templates for the last 10 minutes though, and I don't even see where it says who has given reputation.
Then again, I don't use the reputation system myself, so that could be it...
Can anyone help here?
Paul M
11-16-2004, 03:08 PM
It should be very easy to do, I don't have the code in front of me atm, but I could look later today. The date would be hard coded.
Aaow AnD wHiTe
11-16-2004, 03:10 PM
Of course, that would be an idea as well...
I've been looking through the code and the templates for the last 10 minutes though, and I don't even see where it says who has given reputation.
Then again, I don't use the reputation system myself, so that could be it...
Can anyone help here?
Yeah, hopefully someone can help us. Can you share the query for deleting the user info anyway?
HiDeo
11-16-2004, 03:47 PM
In your file, you search for the code and for the name, you add a condition with date !
Aaow AnD wHiTe
11-16-2004, 05:25 PM
In your file, you search for the code and for the name, you add a condition with date !
Could you please give me a practical example? Thanx :)
Aaow AnD wHiTe
11-16-2004, 05:26 PM
It should be very easy to do, I don't have the code in front of me atm, but I could look later today. The date would be hard coded.
Thank you very much , paul M. looking forward to your reply :)
Paul M
11-16-2004, 10:16 PM
Find the following line in usercp.php ;
$reputation['timeline'] = vbdate($vboptions['timeformat'], $reputation['dateline']);
Then add this above it ;
// Hide users prior to certain Date.
require_once('./includes/functions_misc.php');
if ($reputation['dateline'] < vbmktime(0, 0, 0, 11, 17, 2004))
{
$reputation['whoadded'] = '0';
$reputation['username'] = '*hidden*';
}
Set the last three values in vbmktime to the date you want - the above is set for today (Nov 17th 2004). Also note - I only have vB 3.0.3 so this is the only version I have tested this on.
Aaow AnD wHiTe
12-07-2004, 01:16 PM
Sorry for the delay. Just wanted to thank you guys for the help. This has been the solution I've been looking for and my users are pleased with it :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.