vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Thread Stats w/ Title In ShowThread (https://vborg.vbsupport.ru/showthread.php?t=99504)

sabret00the 10-27-2005 10:00 PM

Thread Stats w/ Title In ShowThread
 
in the "SHOWTHREAD" template find:
HTML Code:

  $poll
and above it add
HTML Code:

<h2>$thread[title]</h2>
<div id="h2stats">this thread has $thread[replycount] replies and has been viewed $thread[views] times</div>

now add to your additional css definitions
HTML Code:

h2
{
        font-size: 200%;
        text-align: center;
        margin: 0;
        padding: 0;
}

#h2stats
{
        font-size: 125%;
        text-align: center;
}

thanks to Xenon for pointing out the data is already caches and available for the showthread.php

Text File Thanks To MichaelBenson https://vborg.vbsupport.ru/attachmen...chmentid=36760

uzman59 10-28-2005 01:24 PM

can you give the screenshot

sabret00the 10-28-2005 01:32 PM

sorry about that, completely forgot, added :)

ed2k_2 10-28-2005 01:40 PM

Done without problem! Simple but useful hack!

Snake 10-28-2005 02:15 PM

Thanks, all installed! ;)

Gizmo5h1t3 10-28-2005 11:45 PM

the "viewed x number of times seems to be sticking at 0 on mine m8...any ideas>?

Tony G 10-29-2005 12:22 AM

Could you please attach the instructions in a .txt file too? Thanks. :)

sabret00the 10-29-2005 09:30 AM

Quote:

Originally Posted by Tony G
Could you please attach the instructions in a .txt file too? Thanks. :)

is that a rule?

sabret00the 10-29-2005 09:30 AM

Quote:

Originally Posted by Gizmo5h1t3
the "viewed x number of times seems to be sticking at 0 on mine m8...any ideas>?

it'll go up though it's done via cron job so yo have to wait until it's done automatically.

VBUsers 10-29-2005 09:47 AM

installed thanks


All times are GMT. The time now is 03:29 AM.

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.01169 seconds
  • Memory Usage 1,730KB
  • 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_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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