vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBMicrostats (https://vborg.vbsupport.ru/showthread.php?t=116027)

Boofo 06-09-2006 09:16 PM

Yep, a Boofo mistake. ;)

I have the fix for Microstats and Photopost for you, Floren. Want me to PM it to you?

TECK 06-11-2006 06:07 PM

Special thanks to Revan and Boofo for being the guinea pig. :)
To have vBMicroStats working with PhotoPost, follow those simple steps.

Open pp-inc.php file and find:
PHP Code:

if ( !empty($vbfooter) && $headers != "no" )  


Replace it with:
PHP Code:

if ( !empty($vbfooter) && $headers != "no" )  
{
    require_once(
DIR '/includes/class_hook.php'); 
    (
$hook vBulletinHook::fetch_hook('global_complete')) ? eval($hook) : false

Then install the attached plugin.

Boofo 06-11-2006 06:31 PM

Are you going to add the plug-in to your hack? You could add that in the next version and just make an option to enable it in the settings. ;)

TECK 06-11-2006 09:03 PM

I will not add it Bobby, it's not a vbulletin hack.
I will leave it as optional. It's listed in the first post. :)

Boofo 06-11-2006 10:10 PM

Well, I added it to mine, but I can see your point.

TECK 06-12-2006 01:36 AM

Ya, not everyone have PhotoPost.
So for those who have it, they can download the plugin and run it.

James T Brock 06-12-2006 07:19 PM

Here are my stats from the first page of the forum.

'Page generated in 0.39097905 seconds (19.32% PHP - 80.68% MySQL) with 11 queries'

I wonder why it's using so much MySQL even though it's just 11 queries???

nevermind... I figured it out. It's because of two of my hacks on the forum index page. One of which is the who has visited today feature.

TECK 06-13-2006 10:24 PM

You mean the init.php file?

TECK 06-14-2006 07:12 PM

The first replacement set is for MySQL, the second one is for MySQLi... you only use one type of connection so that's why it's working.
Notice that the 2 segments are not identical, there is a few bytes difference between them.
In first type of connection you find ($this->sql, $link), then in second you find ($link, $this->sql) in the function.
It's the only difference between the 2 functions.

You probably copied and pasted the same code in both places, thinking they are the same. That results into a parse error. ;)

TECK 06-15-2006 03:56 PM

If you want to display all stats for administrators only, follow the same readme steps.
Install the plugin attached below, instead.


All times are GMT. The time now is 01:32 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.01307 seconds
  • Memory Usage 1,736KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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