vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   A new icon for unrated Threads (https://vborg.vbsupport.ru/showthread.php?t=41375)

memobug 07-22-2002 05:39 AM

A new icon for unrated Threads
 
Greetings,

There seems to be some confusion on my forum over the images/clear.gif which is used to mark threads that are as yet unrated. Some people think these threads are bad because they have no stars, when in fact they may just not have received enough votes either way to be displayed.

I would prefer to create and use a unique images/unrated.gif and was wondering if someone can tell me where I might make the substitution of unrated.gif for clear.gif so that it will appear properly in the display.

Many thanks

Matt

Admin 07-22-2002 05:54 AM

In forumdisplay.php, find these bits of code:
Code:

      $thread[rating]='clear.gif';
      eval("\$threadrating = \"".gettemplate('forumdisplaybit_threadrate')."\";");

Code:

      $thread[rating]='clear.gif';
      $thread[votenum] = '0';

Code:

                                if ($thread[votenum] >= $showvotes) {
                                        $rating = intval(round($thread[voteavg]));
                                        $thread[rating] = $rating . 'stars.gif';
                                } else {
                                        $thread[rating] = 'clear.gif';
                                }

And chage clear.gif to unrated.gif in every one of them.

memobug 07-22-2002 06:06 AM

Thanks x 10^6 !


All times are GMT. The time now is 09:02 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.01023 seconds
  • Memory Usage 1,710KB
  • 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
  • (3)bbcode_code_printable
  • (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