vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   vBulletin Forum Sideblocks - [OzzModz] Thanks Statistics Sideblock (https://vborg.vbsupport.ru/showthread.php?t=297288)

ozzy47 04-16-2013 10:00 PM

[OzzModz] Thanks Statistics Sideblock
 
Another mod brought to you by,
https://vborg.vbsupport.ru/external/2015/01/1.png

Someone asked for this so here it is.

What does this do?

This mod will add a thanks statistics block to your forum sideblocks, showing the total thanks given throughout your whole forum.

What does this hack require?
This hack requires the [AJAX] Post Thank You Hack by Abe1.

-------------------------------------------------------------------------------------------

If you like this mod please hit the https://vborg.vbsupport.ru/external/2015/08/1.png button to the right ---->

Please remember to click the, https://vborg.vbsupport.ru/external/2015/08/2.png button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available.

* For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications.

I appreciate the support!
-------------------------------------------------------------------------------------------

Go to ACP / Forums & Moderators / Forum Blocks Manager and click on Add New Block, and in the next screen choose Custom HTML/PHP then click Continue.

Set it up the following way.

Title: Thanks Statistics (or what ever you want)

Description: Leave blank or fill it in if you wish.

Cache Time (in minutes): I set mine to 2 but you can set it to what ever you want.

Display Order:Any order you want to get the proper order.

Content Type: Choose the PHP one.

In the field Content add this code:

PHP Code:

$thanks $this->registry->db->query_first("
        SELECT COUNT(*) AS count FROM " 
TABLE_PREFIX "post_thanks
    "
);

$thanksstats=
<table width="100%" align="center"> 
    <tr> 
        <td class="" align="left"> 
            <div class="smallfont"> <b>Total Thanks On Posts: </b> '
.vb_number_format($thanks['count']) . '
            </div> 
        </td> 
    </tr> 
</table>'

//SideBar = End forum Status 
//echo $stats; 

return $thanksstats



Template to Use
: leave it set to block_html

mikesafl 04-17-2013 12:05 AM

Thank you soo much for this

ozzy47 04-17-2013 12:07 AM

Not a problem, you asked so I had a bit of free time and got it going.

kapii 04-17-2013 12:17 AM

Nice, this will help fill some space on my sideblocks, thanks for sharing.

ozzy47 04-17-2013 12:22 AM

Glad it will help you out.

Disco_Dave 04-17-2013 07:07 AM

Nice :D

Thanks.

ozzy47 04-17-2013 10:00 AM

Your welcome, enjoy.

root2012 05-27-2013 01:23 AM

can be something in What's Going on
so what I'm looking for

ozzy47 06-17-2013 06:46 PM

I'll look into it when I get some free time.

root2012 09-07-2014 07:13 PM

and you have done any yet?


All times are GMT. The time now is 08:45 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.01025 seconds
  • Memory Usage 1,738KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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