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)

Surviver 06-17-2006 05:34 PM

Thank you very much for this nic modification :)

works perfectly ;)

mfg Surviver

Mosh 06-18-2006 12:54 AM

Quote:

Originally Posted by TECK
Quote:

Originally Posted by jdsinclair
Hey TECK,

I am testing v 1.0.5 of your mod and I have this problem (see attachment)

Any way of fixing it so the colomns go straight across the screen?

It should not do it, that's why I built a column counter inside.
I just reinstalled again a brand new test board (3.6) with vBMicroStats and it's spanning properly the columns.

BTW, the hack changes in vBulletin 3.6 version. :)
I will release a new version when 3.6 is final.

Quote:

Originally Posted by jdsinclair
OK, I have narrowed it down.

When viewing as a guest it spans fine.

However when logged in, it does what it does in the what shows in the attachment I posted previously, with or without admin stats (ie spans across the length of the style selector and that is it).

EDIT: When logged out there is no style selector available.

Just bumping this, as I still need help on this.

Delphiprogrammi 06-19-2006 10:02 AM

hmmmmz,

Quote:

Warning: ksort() expects parameter 1 to be array, null given in /photopost/pp-inc.php(630) : eval()'d code on line 355

Warning: Invalid argument supplied for foreach() in /photopost/pp-inc.php(630) : eval()'d code on line 357

and if you put

PHP Code:

@ksort($tempusagecache); 

the error should not be displayed but still it's there so it must be something else PHP reports lines 355 / 357 line 357 is a comment and should be ignored by PHP am i getting nuts here ??????

line 355 is code about the vb3 integration maybe that has something todo with it

Delphiprogrammi 06-19-2006 10:37 AM

Quote:

Originally Posted by Delphiprogrammi
hmmmmz,



and if you put

PHP Code:

@ksort($tempusagecache); 

the error should not be displayed but still it's there so it must be something else PHP reports lines 355 / 357 line 357 is a comment and should be ignored by PHP am i getting nuts here ??????

line 355 is code about the vb3 integration maybe that has something todo with it

problem solved those two PHP errors are gone and the stats are showing up !

if you want to know how i did that give me a yell :D

TECK 06-19-2006 03:33 PM

Please post it, others will have it as reference. :)

TECK 06-19-2006 03:38 PM

Quote:

Originally Posted by jdsinclair
Just bumping this, as I still need help on this.

JD, look at the html code and tell me if you see a colspan in the microstats template.
It has to be there, it's working fine for all boards, so far.
Is this an original board, unhacked?

This is the code it needs to be examined:
Code:

        // regular users template
        $users_template  = '<tr align="' . $stylevar['right'] . '">' . "\n";
        $users_template .= '        <td class="tcat"' . iif($show['colspan'], ' colspan="' . $colspan . '"') . '>' . "\n";
        $users_template .= '                <span class="smallfont">Page generated in ' . $total_time . ' seconds (' . $php_percent . ' - ' . $sql_percent . ') with ' . $query_count . ' queries</span>' . "\n";
        $users_template .= '        </td>' . "\n";
        $users_template .= '</tr>' . "\n";

        // administrator template
        $admin_template  = '<tr align="' . $stylevar['right'] . '">' . "\n";
        $admin_template .= '        <td class="alt1"' . iif($show['colspan'], ' colspan="' . $colspan . '"') . '>' . "\n";
        $admin_template .= '                <span class="smallfont">' . $memory_status . $debug_status . $gzip_status . $server_status . $templates_status . '</span>' . "\n";
        $admin_template .= '        </td>' . "\n";
        $admin_template .= '</tr>' . "\n";

Let me know what you see in your page source.
Thanks.

Delphiprogrammi 06-19-2006 04:36 PM

hello,

To solve the problem with those two errors about ksort() and foreach() follow this steps
  • install vbmicrostats with the instructions provided
  • install thisPhotopost fix
  • edit pp-inc (instructions below)
  • edit forum/includes/xml/hooks_vbulletin.xml

in photopost file pp-inc.php find

PHP Code:

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


replace with

PHP Code:

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


in forum/includes/xml/hooks_vbulletin.xml at the bottom

HTML Code:

<hooktype type="photopost">
<hook>photopost_displaymicrostats</hook>
 </hooktype>

make sure you change the hook location to the new one (step 2 in the list) upload all changed files in acsi mode

also make sure that your photopost admin => edit integration has been turned on

Mosh 06-22-2006 01:08 AM

Quote:

Originally Posted by TECK
JD, look at the html code and tell me if you see a colspan in the microstats template.
It has to be there, it's working fine for all boards, so far.
Is this an original board, unhacked?

This is the code it needs to be examined:
Code:

        // regular users template
        $users_template  = '<tr align="' . $stylevar['right'] . '">' . "\n";
        $users_template .= '        <td class="tcat"' . iif($show['colspan'], ' colspan="' . $colspan . '"') . '>' . "\n";
        $users_template .= '                <span class="smallfont">Page generated in ' . $total_time . ' seconds (' . $php_percent . ' - ' . $sql_percent . ') with ' . $query_count . ' queries</span>' . "\n";
        $users_template .= '        </td>' . "\n";
        $users_template .= '</tr>' . "\n";

        // administrator template
        $admin_template  = '<tr align="' . $stylevar['right'] . '">' . "\n";
        $admin_template .= '        <td class="alt1"' . iif($show['colspan'], ' colspan="' . $colspan . '"') . '>' . "\n";
        $admin_template .= '                <span class="smallfont">' . $memory_status . $debug_status . $gzip_status . $server_status . $templates_status . '</span>' . "\n";
        $admin_template .= '        </td>' . "\n";
        $admin_template .= '</tr>' . "\n";

Let me know what you see in your page source.
Thanks.

The code you posted above is exactly the same as in the vBMicroStats Global Hook.


OK, not logged in I see this:
Code:

<tr align="right">
        <td class="tcat">
                <span class="smallfont">Page generated in x.xxxx seconds (xx.xx% PHP - xx.xx% MySQL) with xx queries</span>
        </td>
</tr>

Logged in I see:
Code:

<tr align="right">
        <td class="tcat">
                <span class="smallfont">Page generated in X.XXXX seconds (XX.XX% PHP - XX.XX% MySQL) with XX queries</span>
        </td>
</tr>
<tr align="right">
        <td class="alt1">
                <span class="smallfont">DEBUG Mode OFF | GZIP ON (level 1) | <strong>X.XX</strong> : X.XX : X.XX | NO Uncached Templates</span>

        </td>
</tr>

But the code is aligned on the left side, like the pic I posted in my original post, it's width is the width of the style chooser.

Guests do not have access to choosing style, and only certain senior groups have access to choose a style, normal members can not choose style either.

That is what the situation is, hope you can help.

TECK 06-22-2006 08:19 PM

Quote:

Originally Posted by jdsinclair
Only certain senior groups have access to choose a style, normal members can not choose style either.

Is this normal behaviour or a hack? I'm still not used to VB3.5.x version.
If normal behaviour, in your board the colspan counter is set to 0, making the code tossed to the left.
Something is not right, since you are the only one experiencing this problem.
It's all related to the condition you display the dropdowns for style and language.

Mosh 06-23-2006 07:54 AM

Quote:

Originally Posted by TECK
Is this normal behaviour or a hack? I'm still not used to VB3.5.x version.
If normal behaviour, in your board the colspan counter is set to 0, making the code tossed to the left.
Something is not right, since you are the only one experiencing this problem.
It's all related to the condition you display the dropdowns for style and language.

It was a combination of a have of Andreas's and one of mine.

I just hard coded in the colspan and got rid of your checks which fixed the problem for me :)

Thanks for porting this great hack :)

TECK 06-23-2006 05:55 PM

Try to fix it. It's not good the hardcode the colspan because in some browsers like Opera it will show a gap (nasty one) to the right.
That's the reason I gave myself the trouble to make the colspan counter. :)

Mosh 06-23-2006 11:48 PM

Quote:

Originally Posted by TECK
Try to fix it. It's not good the hardcode the colspan because in some browsers like Opera it will show a gap (nasty one) to the right.
That's the reason I gave myself the trouble to make the colspan counter. :)

Tested in IE, Firefox and Opera and it works for me fine. But will look into it :)

Tulsa 07-02-2006 11:29 PM

Quote:

Originally Posted by TECK
I just reinstalled again a brand new test board (3.6) with vBMicroStats and it's spanning properly the columns.

BTW, the hack changes in vBulletin 3.6 version. :)
I will release a new version when 3.6 is final.


To those of us running 3.6 test sites, this would be a great tool to have prior to it going gold. Not supported of course, until it goes gold.

gothicuser 07-08-2006 09:18 AM

Yes, would be very useful to see this updated for 3.6.0bx sooner rather than later

kofoid 07-10-2006 11:35 PM

The world's most stupid question.................................

what's with the "uncached Templates" on the stats? And how do I get them cached?

kofoid 07-11-2006 02:29 PM

dummy says "bump"

Snake 07-13-2006 08:43 PM

Okay I'm having a problem here. I don't know what I have done to my forums but this is how my micro stats shows up. It's kinda messed up as you can see...

http://img423.imageshack.us/img423/6516/prob6kd.jpg

It happened to me suddenely! Weird.

Here's a link to my forums - http://www.finalfantasyforums.net/

TECK 07-17-2006 05:48 AM

Quote:

Originally Posted by kofoid
what's with the "uncached Templates" on the stats? And how do I get them cached?

Check:
Code:

$globaltemplates = array(
In index.php for example.

Snake 07-17-2006 10:16 AM

TECK, could you please take a moment and look into my problem where I have posted above?

TECK 07-18-2006 07:46 PM

The column counter does not calculate the extra column. What hack did you installed?
You are the second person who have this problem, all of the sudden...

cheesegrits 07-18-2006 09:06 PM

Quote:

Originally Posted by gothicuser
Yes, would be very useful to see this updated for 3.6.0bx sooner rather than later

"Me too"

And I don't mind beta testing the 3.6 version. I'd really like to get this going on 3.6.

-- hugh

Snake 07-19-2006 09:12 AM

Quote:

Originally Posted by TECK
The column counter does not calculate the extra column. What hack did you installed?
You are the second person who have this problem, all of the sudden...

What do you mean what hack I installed? Your hack of course.

TECK 07-20-2006 05:40 PM

Sorry Dark, I was not clear. :)
Did you installed another hack, beside mines?
Or you had your style/language dropdown disabled before?

It does not make sense to me because I installed several test boards, in various configurations and they all work without any problems.
I'm not saying is your fault, I'm trying to identify where is located the problem.

Thanks.

Snake 07-21-2006 01:02 PM

Yes I've got loads of hacks installed already on my forums and yeah I think the style dropdown was disabled before. You should see it now though because I've removed the if condition statement which means you will be able to view the style chooser even if it was disabled in the vB Options.

TECK 07-21-2006 08:40 PM

Dark, you have a test board, right?
Make me a big favor, install the hack into a clean test board, enable both dropdowns (style and language - or only one of them) and let me know if it does the same thing. If it doesn't break the page, then, one by one, install your hacks, until the page is broken.
I think there is a another hack that is conflicting with my column counter...

Snake 07-23-2006 12:00 PM

Okay I'ma see what I can do and will get back to you. Yeah I'm pretty sure some other hack is causing this problem but I wonder why one is it.

Thanks for your reply!

snake-boy 07-28-2006 09:03 PM

I'd like everyone to be able to see ALL the stats, all the time regardless of usergroup. How could I acomplish this?

chrisj8221 08-04-2006 02:42 AM

downloaded the file today and it installed beautifully, but my results are the following for all pages...

Page generated in 0.18792105 seconds (100.00% PHP - 0% MySQL) with 9 queries

the time will change on page loads as well the the number of querries but the 100% php is always the same. I imagine it may be bad code, but I went directly off of the instructions, three times with the same result.

any ideas where the goof may be?

snake-boy 08-06-2006 10:35 AM

I'm still trying to figure out how to allow everyone to see all the stats?

Any help please? Anyone?

-snake

Surviver 08-06-2006 04:00 PM

Hello, thank you for this Hack, i installed it until i graded up to 3.6.

Do you know, when you will release a version for 3.6 ?

Thank you very much !

mfg Surviver

cheesegrits 08-07-2006 02:50 AM

Quote:

Originally Posted by snake-boy
I'm still trying to figure out how to allow everyone to see all the stats?

Any help please? Anyone?

-snake

I haven't tested this, as I'm running 3.6 and so have MicroStats disabled, but you could try the following:

In the Plugin Manager, find and edit the Microstats "global_complete" hook.

Find the line that says:

PHP Code:

    $show['adminoptions'] = iif($vbulletin->options['vb_mstats_adminactive'] AND $vbulletin->userinfo['usergroupid'] == 6truefalse); 

... and change it to ...

PHP Code:

    // $show['adminoptions'] = iif($vbulletin->options['vb_mstats_adminactive'] AND $vbulletin->userinfo['usergroupid'] == 6, true, false); 
    
$show['adminoptions'] = 1

You may or may not have formatting issues because of the "style_count" stuff, but it's worth a try, if you really really want to do this. Personally I don't recommend it, but it's your board.

To undo this change, simply delete the second line above, and remove the comment (//) from the original line.

-- hugh

DementedMindz 09-06-2006 02:10 PM

would you know how to get the stats to work on this mod here Teck https://vborg.vbsupport.ru/showthread.php?t=125947

MRGTB 09-12-2006 07:37 AM

Any news on this being ported over for vBullten 6.0.0

Wired1 09-12-2006 06:38 PM

3.6.0 you mean, and I second that question :)

Surviver 09-19-2006 01:59 PM

I'm very interested of this Hack for 3.6.0, too ;)

Snake 09-19-2006 02:11 PM

Me either. Please release it as soon as you can. :)

snake-boy 09-19-2006 03:43 PM

Thanks hugh! This DID work perfectly :) It's now displayed to all users, regardless of usergroup.

-snake


Quote:

Originally Posted by cheesegrits
I haven't tested this, as I'm running 3.6 and so have MicroStats disabled, but you could try the following:

In the Plugin Manager, find and edit the Microstats "global_complete" hook.

Find the line that says:

PHP Code:

    $show['adminoptions'] = iif($vbulletin->options['vb_mstats_adminactive'] AND $vbulletin->userinfo['usergroupid'] == 6truefalse); 

... and change it to ...

PHP Code:

    // $show['adminoptions'] = iif($vbulletin->options['vb_mstats_adminactive'] AND $vbulletin->userinfo['usergroupid'] == 6, true, false); 
    
$show['adminoptions'] = 1

You may or may not have formatting issues because of the "style_count" stuff, but it's worth a try, if you really really want to do this. Personally I don't recommend it, but it's your board.

To undo this change, simply delete the second line above, and remove the comment (//) from the original line.

-- hugh


sabret00the 09-20-2006 10:58 PM

Add himself to 3.6 request list.

BMamba 09-21-2006 12:52 PM

I'm waiting for version 3.6.x too :)

Delphiprogrammi 09-26-2006 09:19 PM

/me wants this for vb 3.6.x

jelsoft changed some stuff in class_core.php "query_wrapper" function is gone


All times are GMT. The time now is 05:00 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.01764 seconds
  • Memory Usage 1,872KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (8)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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