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 :)


All times are GMT. The time now is 04:05 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.02081 seconds
  • Memory Usage 1,782KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (9)bbcode_quote_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