vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   forumdisplay thread ratings change (https://vborg.vbsupport.ru/showthread.php?t=276958)

raiderphil83 01-14-2012 02:21 PM

forumdisplay thread ratings change
 
I am running vB3.8, and I feel a little dumb, but for the life of me I cannot find where it is determined in forumdisplay.php what to show next to the thread title as the thread's rating. I found in showthread.php the $thread['rating'] = line where it did a round. I added some if statements after this to have it so the ratings can show as half-stars, which I added images for. But I can't see where in forumdisplay.php I can similarly alter what it defines as the thread's rating so it can determine which image to display. Can someone help me? Thanks.

kh99 01-14-2012 03:17 PM

I think you're looking for function process_thread_array() in includes/functions_forumdisplay.php.

raiderphil83 01-14-2012 03:43 PM

YES. Thank you. I could not figure out where that damn array was built. This task of updating thread ratings is my first big foray into editing code/templates, so I'm figuring out the structure as I go.


All times are GMT. The time now is 02:03 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.01092 seconds
  • Memory Usage 1,705KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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