vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   VB3 MicroStats (https://vborg.vbsupport.ru/showthread.php?t=62173)

neocorteqz 11-03-2004 04:16 AM

Quote:

Originally Posted by TECK
I don't have the 303 update, sorry.
I need to pay the VB update fee, soon next week.

If anyone have the step by step for the new code, post it here so I can update the txt file. Thanks guys.

hmmm. as far as i remember, i used your current available instrutions to install it.

when i get the chance, I'll either give the updated instructions, or maybe if it's allowed (seeing as it's only two files afaik) i can send my files to you and you can see for yourself?

I'm about to try and install gentoo, so I'll be unavailable for a bit. :)

venomx 11-03-2004 04:20 AM

I installed this with the instructions in the current file... worked fine here...

SVTOA 11-28-2004 11:07 PM

I guess I'm doing ok...

Quote:

Page generated in 0.16333103 seconds (93.02% PHP - 6.98% MySQL) with 12 queries

TECK 11-29-2004 05:16 AM

Quote:

Originally Posted by venomx
I installed this with the instructions in the current file... worked fine here...

Good to know no update is needed. I was surprised, since the VB3 code should not change...

Guy G 01-25-2005 04:46 PM

will this by any chance work on 3.0.6

|Jordan| 01-28-2005 07:06 PM

Works for me in 3.0.6 :D

nso 01-29-2005 07:02 PM

After applying the hack (correctly, I might add) my forum became nothing more than a blank page. No errors, no nothing. Not even a mention of the event in the mysql logs.

Have anyone experienced anything similar to this?

dfdems 02-20-2005 10:03 PM

Dumb Question, how do I cache the 3 I have uncached?

Forumhome_stats_Member
Forumhome_stats_Poster
Forumhome_stats_Thread

Page generated in 0.21421003 seconds (90.33% PHP - 9.67% MySQL) with 16 queries

MickDoneDee 02-20-2005 11:57 PM

There are two Microstats hacks: Teck's and Erwin's. Sites with hacks will usually show uncached templates after installing the Microstats hack. Your question is, therefore, common and the answer can be found by reading through the thread. References I found on Erwins thread are here, here, here, and here.

The last reference is:
Quote:

You need to add those templates at the beginning of the php page that you saw the message on. It will speed up the page and reduce the number of queries to the database which will be good for all of your vb installation.
If you look in the URL for the page you are displaying when those uncached templates appear you'll see the php file within the address. Index.php usually deals with forumhome templates. Open the index.php file and find:
Code:

// pre-cache templates used by all actions
$globaltemplates = array(
        'FORUMHOME',
        'forumhome_event',
        'forumhome_forumbit_level1_nopost',
        'forumhome_forumbit_level1_post',
        'forumhome_forumbit_level2_nopost',
        'forumhome_forumbit_level2_post',
        'forumhome_lastpostby',
        'forumhome_loggedinuser',
        'forumhome_moderator',
        'forumhome_pmloggedin',
        'forumhome_subforumbit_nopost',
        'forumhome_subforumbit_post',
        'forumhome_subforumseparator_nopost',
        'forumhome_subforumseparator_post'

Add your templates to this list. Alternatively, I use the global.php file which is used for every page loaded. There, you'll find:
Code:

// templates to be included in every single page...
$globaltemplates = array_merge($globaltemplates, array(
        // the really important ones
        'header',
        'footer',
        'headinclude',
        'phpinclude_start',
        'phpinclude_end',
        // new private message script
        'pm_popup_script',
        // navbar construction
        'navbar',
        'navbar_link',
        // forumjump and go button
        'forumjump',
        'gobutton',
        'option',
        // multi-page navigation
        'pagenav',
        'pagenav_curpage',
        'pagenav_pagelink',
        'threadbit_pagelink',
        // misc useful
        'spacer_open',
        'spacer_close',
        'username_loggedout',
        'username_loggedin',
        'timezone',
        'STANDARD_ERROR',
        'STANDARD_REDIRECT'
        //'board_inactive_warning'
));

Add your templates to that list and it should also cache them. No need to add your templates to both files. Choose one or the other.

kall 03-06-2005 06:56 PM

Quote:

Originally Posted by ChuanSE
Yes, perfectly possible :)

i want to point out that the txt file with instructions is not up to date...

Search for and replace with... can't replace what can't be searched. the code was ok in previous versions of vB, where I installed the hack myself without problems.

But now mysql_db.php seems to be changed in this version, and i want to be sure to have an updated instruction file, before i start replacing :)

thx if ya wanna update it Teck ;)

Well, upgrade to 3.0.7.

The instructions for installing this hack match the code in the stock files to the very last character.

greenhybrid 04-10-2005 05:45 PM

I'm getting the following error. Any idea?
Quote:

Parse error: parse error, unexpected ']' in /home/gh/public_html/discuss/includes/functions.php on line 1997

venomx 04-10-2005 06:55 PM

My site seems to use like 80%+ mysql.. that scares me and I dunno why it does :(

TECK 04-11-2005 04:10 AM

Using some of those vb3 'portals', as frontpage? Is normal, they are known for killing your server with a large number of queries that scan the hole tables, instead of small to the point sections.
Remove the portal and stick with the normal vb3 forumhome.

ChrisLM2001 04-12-2005 04:13 PM

Teck,

Can you add an option of memory used per page (like vB's debug mode) for Admins? Finding it useful in tracking down bloat, and it'll be a handy addition for Admins who are monitoring their memory limits.

Love this mod. Comes in so handy monitoring day-to-day performance at a glance.

Chris

greenhybrid 04-23-2005 06:35 PM

It's been weeks and still no help? :(

PitchouneN64ngc 04-24-2005 12:37 PM

Quote:

Originally Posted by greenhybrid
It's been weeks and still no help? :(

This hack has no problem during the installation. What is the code on the line 1997 in ./includes/functions.php (include 4-5 lines before and after the line 1997)?

greenhybrid 04-24-2005 04:13 PM

I made the replacements again so I could find the line.
PHP Code:

    $ms '<tr align="right">' "\n";
    
$ms .= '        <td class="tcat"' iif($vboptions['allowchangestyles'], ' colspan="2"') . '><div class="smallfont">';
    
$ms .= 'Page generated in ' $totaltime ' seconds (' $msphp ' - ' $mssql ') with ';
    
$ms .= $query_count ' queries</div></td>' "\n";
    
$ms .= '</tr>' "\n"

What was 1997 before I think is 1996 now. That would be
PHP Code:

    $ms .= '        <td class="tcat"' iif($vboptions['allowchangestyles'], ' colspan="2"') . '><div class="smallfont">'


greenhybrid 04-24-2005 04:17 PM

This time when I installed AGAIN I got this error:
Quote:

Parse error: parse error, unexpected T_STRING, expecting '{' in /home/gh/public_html/discuss/includes/db_mysql.php on line 188
Line 188 is the last {
PHP Code:

    function shutdown_query($query_string$arraykey 0)
    {
        global 
$shutdownqueries;

        if (
NOSHUTDOWNFUNC AND !$arraykey)
        {
            return 
$this->query($query_string);
        }
        elseif (
$arraykey)
        {
            
$shutdownqueries["$arraykey"] = $query_string;
        }
        else
        {
            
$shutdownqueries[] = $query_string;
        }
    }    function 
query($query_string$query_type 'mysql_query')
    {
        global 
$query_count$querytime$pagestarttime;

        
$pageendtime microtime();
        
$starttime explode(' '$pagestarttime);
        
$endtime explode(' '$pageendtime); 


PitchouneN64ngc 04-24-2005 04:23 PM

Place the line :

PHP Code:

function query($query_string$query_type 'mysql_query'

At the next line, maybe PHP confuses with the } before.

greenhybrid 04-24-2005 04:35 PM

Then we get a
Quote:

Parse error: parse error, unexpected ')', expecting ',' or ';' in /home/gh/public_html/discuss/includes/db_mysql.php on line 50
PHP Code:

        // connect to db server

        
global $querytime;
        
// do query 


PitchouneN64ngc 04-24-2005 04:42 PM

You have these errors when you try to view your pages during the installation of this hack or totally after ?

greenhybrid 04-24-2005 04:50 PM

What do you mean? "Installation" is simply editing the 2 files, which I did. I didn't change the templates yet, but that should have nothing to do with the code.

greenhybrid 04-24-2005 04:54 PM

I even added {ms} the template and I'm still getting
Quote:

Parse error: parse error, unexpected T_STRING in /home/gh/public_html/discuss/includes/functions.php on line 1996
;)

Mosh 04-25-2005 08:45 AM

Quote:

Originally Posted by greenhybrid
I even added {ms} the template and I'm still getting
Quote:

Parse error: parse error, unexpected T_STRING in /home/gh/public_html/discuss/includes/functions.php on line 1996
;)

It would probably help if you quoted lines 1990 to 2010 from your functions.php file, this may help someone to narrow down your problem.

greenhybrid 04-25-2005 06:20 PM

Something weird is going on. I don't know if it's a Dreamweaver bug or not, but when I open up functions.php again, that same line 1996 is now
PHP Code:

    $ms .= '        <td class="tcat"' iif($vboptions['allowchangestyles'], '],'],'],' colspan="2"') . '><div class="smallfont">'; 

The same thing had happened before, so I redid the edits. It keeps happening, though!

1990-2010 are
PHP Code:

    $totaltime vb_number_format($endtime[0] - $starttime[0] + $endtime[1] - $starttime[1], $msdecimal);

    
$msphp vb_number_format(((($totaltime $querytime) / $totaltime) * 100), 2) . '% PHP';
    
$mssql vb_number_format((($querytime $totaltime) * 100), 2) . '% MySQL';

    
$ms '<tr align="right">' "\n";
    
$ms .= '        <td class="tcat"' iif($vboptions['allowchangestyles'], '],'],'],' colspan="2"') . '><div class="smallfont">';
    $ms .= '
Page generated in ' . $totaltime . ' seconds (' . $msphp . ' ' . $mssql . 'with ';
    $ms .= $query_count . ' 
queries</div></td>' . "\n";
    $ms .= '
</tr>' . "\n";

    if ($bbuserinfo['
usergroupid'] == '6')
    {
        $mstemplates = '
<select size="1" style="font-size: 10px">' . "\n";
        
        if ($_TEMPLATEQUERIES)
        {
            $mstemplates .= '
<option>' . sizeof($_TEMPLATEQUERIES) . ' Uncached Template';
            $mstemplates .= iif(sizeof($_TEMPLATEQUERIES) != '
1', 's') . '</option>';

            if (is_array($tempusagecache)) 


TECK 04-26-2005 11:15 AM

Dreamweaver is known for issues like that. Use the Textpad.com editor instead.
You will never have a problem again editing files...

yinyang 04-26-2005 06:25 PM

teck, i really want to install this, but the codes you indicate to replace are different in vb3.07. can we trouble you in updating this to 3.07? please?

greenhybrid 04-26-2005 06:26 PM

They are different, but they're similar. Of course, I'm the one who had the problems before ;) But, you should be able to find the right code.

greenhybrid 04-26-2005 06:42 PM

Then again, maybe that's why I was getting my errors.

TECK 04-27-2005 10:49 PM

I don't have the upgrade available, I will need to pay the 30$ fee in order to do download the latest version...
As soon I can spare a little money, it will be done. :)

venomx 04-27-2005 11:01 PM

I believe I have this running on 3.0.7

greenhybrid 04-27-2005 11:10 PM

How did you install it without identical code?

TECK 06-02-2005 03:06 AM

The code should not change at all... when v3.5 is out, I will make sure this hack is compatible with the renovated version. :)

Oblivion Knight 06-02-2005 04:42 AM

There's only a line or 2 that has changed in that block of code for 3.0.7 and is easy enough to install.. ;)

neocorteqz 06-02-2005 11:19 AM

Quote:

Originally Posted by TECK
The code should not change at all... when v3.5 is out, I will make sure this hack is compatible with the renovated version. :)

Looking forward to it, well the hack too. :p :)

shadiguy1 06-02-2005 01:33 PM

whenever i try and cache templates i always get parse errors why is this.

TECK 06-03-2005 03:16 AM

I promise that I will renew my license soon. :)
I want to get back on the forums and make many people happy with a very elegant front page that will not kill the server, as well few other cool VB hacks. vbHome at it's shine place. :)

Talk to you soon guys.

RaceJunkies 07-02-2005 03:35 AM

Anyone have updated code for 3.0.7 or have it working?

Let me know.... :rolleyes:

Bad Bunny 07-02-2005 12:37 PM

Quote:

Originally Posted by TECK
I promise that I will renew my license soon. :)
I want to get back on the forums and make many people happy with a very elegant front page that will not kill the server, as well few other cool VB hacks. vbHome at it's shine place. :)

Talk to you soon guys.

Sounds good, Tech. I missed your frontpage for vb3.

futureal 07-04-2005 10:52 PM

Quote:

Originally Posted by RaceJunkies
Anyone have updated code for 3.0.7 or have it working?

It worked for me in 3.0.7 with no problems. What problem are you having?


All times are GMT. The time now is 04: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.01596 seconds
  • Memory Usage 1,863KB
  • 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_code_printable
  • (7)bbcode_php_printable
  • (15)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