vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Older reputation comments anonymous, newer ones non-anonymous (https://vborg.vbsupport.ru/showthread.php?t=71810)

Aaow AnD wHiTe 11-16-2004 10:15 AM

Older reputation comments anonymous, newer ones non-anonymous
 
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

Quote:

Originally Posted by Aaow AnD wHiTe
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

Quote:

Originally Posted by Colin F
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

Quote:

Originally Posted by Aaow AnD wHiTe
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

Quote:

Originally Posted by Colin F
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

Quote:

Originally Posted by HiDeo
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

Quote:

Originally Posted by Paul M
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 ;

PHP Code:

$reputation['timeline'] = vbdate($vboptions['timeformat'], $reputation['dateline']); 

Then add this above it ;
PHP Code:

//        Hide users prior to certain Date.
        
require_once('./includes/functions_misc.php');
        if (
$reputation['dateline'] < vbmktime(00011172004))
        {
            
$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.


All times are GMT. The time now is 01:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01214 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete