vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Phrase Issues? (https://vborg.vbsupport.ru/showthread.php?t=223823)

Mahar 09-23-2009 06:16 PM

Phrase Issues?
 
1 Attachment(s)
I have no idea what it's actually under but,

I've included screenshots of my example so, hopefully someone can help me.

I've edited my Reputation so it doesn't show the pips anymore.

It looks like this:

Reputation: 1234

I want to make it look like:

Reputation: 1,234

Is there any way to do that? Because I don't know if it's editing the phrases or what...any help would be appreciated.

Another question is, if someone has Reputation disabled on my forums, how can I code it so if it's hidden, it doesn't go:

Reputation: 1234
Has disabled Reputation

Instead those boxes don't even appear in the postbit legacy?

My last question is....I've tried running an SQL Query to reset all reputation on the site. Everytime I do, I go in and Rebuild the Reputation and it just puts it right back where it was...how do I go about successfully resetting it?

Lynne 09-23-2009 07:15 PM

- You need to run the number through vb_number_format (look it up in the API) just like they do with $post['posts']

- not sure about reputation display - it looks like you'll have to use the reputation_image hook to spit out the correct info. See the code right above it for help rewriting it.

- I don't know how to reset it.

Dylanblitz 09-23-2009 10:25 PM

If you truncate the reputation table and then rebuild the user reputation in the ACP it should reset everyone back to your set base.

Mahar 09-24-2009 01:54 AM

How exactly do I truncate the rep table?

Mahar 09-30-2009 04:37 AM

Bump.

Dylanblitz 09-30-2009 04:54 AM

I must not of seen the new post notification otherwise I would of answered you sooner.
To truncate the table, if you have access to run queries, you can run this in the ACP "Execute SQL query" box under the Maintenance section.

PHP Code:

truncate table reputation 

If you have table prefixes, add the prefix before reputation, for example

PHP Code:

truncate table vb_reputation 



All times are GMT. The time now is 02:29 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.01062 seconds
  • Memory Usage 1,716KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete