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)
-   -   Top 'X' Stats (https://vborg.vbsupport.ru/showthread.php?t=59609)

neocorteqz 05-11-2004 11:59 PM

Quote:

Originally Posted by Rids
The new version looks excellent - so when do we get it? :)


Quick question.

How many queries does it add? and how is the load on MySQL?? Right now I have on forum Home.

Page generated in 0.32909012 seconds (94.71% PHP - 5.29% MySQL) with 10 queries.

Synicide 05-12-2004 09:11 PM

Great hack. I actually didn't follow most of the directions because all I needed was the stats that it gave, but I didn't display them in the manner stated in the install file. :D But again great hack. :D

InfiniteWebby 05-14-2004 11:33 PM

there has been no real change in the mysql some added if then else statements for the username truncation but that bout it so any server load should be minimal

theo 05-15-2004 08:36 PM

I want to install this hack but after opening my index.php file I cannot find the following text anywhere.

'forumhome_subforumseparator_post'

I've searched through 5 times and pasted the text into MS word so that I could do a search for the text which it didn't find.

I run VB 3.0.1 which I was told earlier in the thread is ok.

PLEASE HELP!!!!

theo 05-16-2004 03:24 PM

Can anybody please tell me where it is as per above message?????

Synicide 05-16-2004 03:37 PM

Quote:

Originally Posted by theo
I want to install this hack but after opening my index.php file I cannot find the following text anywhere.

'forumhome_subforumseparator_post'

I've searched through 5 times and pasted the text into MS word so that I could do a search for the text which it didn't find.

I run VB 3.0.1 which I was told earlier in the thread is ok.

PLEASE HELP!!!!

1st, don't use MS Word.
2nd, it's near the top of the document, around line 45, under this section.
PHP Code:

// ################### PRE-CACHE TEMPLATES AND DATA ###################### 


theo 05-16-2004 08:35 PM

I dont have any section with pre cache templates and data - I know I'm not being dumb and its deffo not there

I'm getting worried now as i seem to have this section missing

Help please

Synicide 05-16-2004 08:55 PM

Quote:

Originally Posted by theo
I dont have any section with pre cache templates and data - I know I'm not being dumb and its deffo not there

I'm getting worried now as i seem to have this section missing

Help please

Okay... now that's weird. Are you sure you're looking at your index.php file in your forums directory? I know you're not trying to be dumb, but if you don't have those lines, then your page won't even work in the first place.

Can you paste the first few lines of your index.php page?

theo 05-16-2004 09:16 PM

Here's a section at the start of my index.php file - hope its not too long

Hope you can help

INT));

if (! is_array($foruminfo))
{
$forumid = -1;
}
else
{
// draw nav bar
$navbits = array();
$parentlist = array_reverse(explode(',', substr($foruminfo['parentlist'], 0, -3)));
foreach ($parentlist AS $forumID)
{
$forumTitle = $forumcache["$forumID"]['title'];
$navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle;
}

// pop the last element off the end of the $nav array so that we can show it without a link
array_pop($navbits);

$navbits[''] = $foruminfo['title'];
$navbits = construct_navbits($navbits);
}

// ### WELCOME MESSAGE #################################################
if ($bbuserinfo['userid'])
{ // registered user
$showmemberwelcome = true;
}
else
{ // guest
$showmemberwelcome = false;
}

$today = vbdate('Y-m-d', TIMENOW, false, false);

// ### TODAY'S BIRTHDAYS #################################################
if ($vboptions['showbirthdays'])
{
$birthdaystore = unserialize($datastore['birthdaycache']);
if (!is_array($birthdaystore) OR ($today != $birthdaystore['day1'] AND $today != $birthdaystore['day2']))
{
// Need to update!
require_once('./includes/functions_databuild.php');
$birthdaystore = build_birthdays();
DEVDEBUG('Updated Birthdays');
}
switch($today)
{
case $birthdaystore['day1']:
$birthdays = $birthdaystore['users1'];
break;

case $birthdaystore['day2'];
$birthdays = $birthdaystore['users2'];
break;
}
// memory saving
unset($birthdaystore);

$show['birthdays'] = iif ($birthdays, true, false);
}
else
{
$show['birthdays'] = false;
}

Synicide 05-16-2004 09:29 PM

Quote:

Originally Posted by theo
Here's a section at the start of my index.php file - hope its not too long

Hope you can help

INT));

if (! is_array($foruminfo))
{
$forumid = -1;
}
else
{
// draw nav bar
$navbits = array();
$parentlist = array_reverse(explode(',', substr($foruminfo['parentlist'], 0, -3)));
foreach ($parentlist AS $forumID)
{
$forumTitle = $forumcache["$forumID"]['title'];
$navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle;
}

// pop the last element off the end of the $nav array so that we can show it without a link
array_pop($navbits);

$navbits[''] = $foruminfo['title'];
$navbits = construct_navbits($navbits);
}

// ### WELCOME MESSAGE #################################################
if ($bbuserinfo['userid'])
{ // registered user
$showmemberwelcome = true;
}
else
{ // guest
$showmemberwelcome = false;
}

$today = vbdate('Y-m-d', TIMENOW, false, false);

// ### TODAY'S BIRTHDAYS #################################################
if ($vboptions['showbirthdays'])
{
$birthdaystore = unserialize($datastore['birthdaycache']);
if (!is_array($birthdaystore) OR ($today != $birthdaystore['day1'] AND $today != $birthdaystore['day2']))
{
// Need to update!
require_once('./includes/functions_databuild.php');
$birthdaystore = build_birthdays();
DEVDEBUG('Updated Birthdays');
}
switch($today)
{
case $birthdaystore['day1']:
$birthdays = $birthdaystore['users1'];
break;

case $birthdaystore['day2'];
$birthdays = $birthdaystore['users2'];
break;
}
// memory saving
unset($birthdaystore);

$show['birthdays'] = iif ($birthdays, true, false);
}
else
{
$show['birthdays'] = false;
}

Well... according to my file, the code you've been looking for is right above that, it's line 74 on my index.php file... but then again, I don't know what could be wrong. What version of vB do you have?


All times are GMT. The time now is 02:25 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.01174 seconds
  • Memory Usage 1,754KB
  • 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
  • (4)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