Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 11-16-2004, 10:15 AM
Aaow AnD wHiTe's Avatar
Aaow AnD wHiTe Aaow AnD wHiTe is offline
 
Join Date: Dec 2001
Location: Barcelona, Spain
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 11-16-2004, 10:21 AM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Reply With Quote
  #3  
Old 11-16-2004, 10:29 AM
Aaow AnD wHiTe's Avatar
Aaow AnD wHiTe Aaow AnD wHiTe is offline
 
Join Date: Dec 2001
Location: Barcelona, Spain
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 11-16-2004, 10:58 AM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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?
Reply With Quote
  #5  
Old 11-16-2004, 03:08 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 11-16-2004, 03:10 PM
Aaow AnD wHiTe's Avatar
Aaow AnD wHiTe Aaow AnD wHiTe is offline
 
Join Date: Dec 2001
Location: Barcelona, Spain
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 11-16-2004, 03:47 PM
HiDeo's Avatar
HiDeo HiDeo is offline
 
Join Date: Oct 2003
Posts: 306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your file, you search for the code and for the name, you add a condition with date !
Reply With Quote
  #8  
Old 11-16-2004, 05:25 PM
Aaow AnD wHiTe's Avatar
Aaow AnD wHiTe Aaow AnD wHiTe is offline
 
Join Date: Dec 2001
Location: Barcelona, Spain
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 11-16-2004, 05:26 PM
Aaow AnD wHiTe's Avatar
Aaow AnD wHiTe Aaow AnD wHiTe is offline
 
Join Date: Dec 2001
Location: Barcelona, Spain
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 11-16-2004, 10:16 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:44 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.07865 seconds
  • Memory Usage 2,268KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete