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)
-   -   vB Statistic version 3.0.0 (directors Cut *g*) (https://vborg.vbsupport.ru/showthread.php?t=74603)

Bryan Ex 01-19-2005 06:03 PM

It's most likely in Unix time and probably has a value of 0 right now... I just can't find the actual field for a forum install date.

manguish 01-19-2005 06:03 PM

Found this :

vbstatistic_board_online

Shows :

Forums online since: <strong>{1}</strong> at <strong>{2}</strong> (<strong>{3}</strong> days)

Where do we alter {1}, {2} and {3} ?

Bryan Ex 01-19-2005 06:19 PM

I got it... it's based on the registration date of the first user id in the database (normally user #1) but I did an import from phpBB2 so admin is user 2. In /statistic/side/forum.php find AROUND LINE 48;

PHP Code:

    $the_begin $DB_site->query_first("
            SELECT username AS name, joindate AS installdate
            FROM " 
TABLE_PREFIX "user
            WHERE userid = 1
            "
); 

Change "WHERE userid = 1" to to match the first user id # actually listed in your database.

Torqued 01-19-2005 07:43 PM

I want to try a re-install of this from the beginning. How do I quickly delete all the phrases?

S@NL - BlackBik 01-19-2005 08:43 PM

Quote:

Originally Posted by Trosun
I'm not sure if you HAVE to delete the v2 data.
But i would anyway, since it's logging more things now etc.[/URL]

Thanks Trosun, I just mist that little piece of info :)

PC Freak and Onkel Tom, thanks a lot for this great hack. I've just hit the "Install" button :banana:

FWF 01-19-2005 10:56 PM

installed on 3.0.1 , my staff members as well as regular members love this hack! thanks for releasing it :D

aussiev8 01-19-2005 11:18 PM

this script is great, credit to the author, but its not showing that i've been hit by the googlebot.. why's that? this is driving me insane. i really would like to know how many times i get hit by each particular bot, so i can customise my website to suit. I'm being indexed in google so i must be getting visited, why isn't it showing up in here?

Onkel_Tom 01-20-2005 01:51 AM

Quote:

Originally Posted by Torqued
I want to try a re-install of this from the beginning. How do I quickly delete all the phrases?

Just read the readme.txt file and run your installation script from the beginning.

Onkel_Tom 01-20-2005 01:54 AM

Quote:

Originally Posted by aussiev8
this script is great, credit to the author, but its not showing that i've been hit by the googlebot.. why's that? this is driving me insane. i really would like to know how many times i get hit by each particular bot, so i can customise my website to suit. I'm being indexed in google so i must be getting visited, why isn't it showing up in here?

It is showing !
I think you must wait a few days until you get the first visit of googlebot. Visits of Googlebot are not as much as visits from yahoo slurp.

kall 01-20-2005 02:20 AM

If anyone wants to restrict the display of the Server type values on the main page, do the following change to STATISTIC template:

Find
PHP Code:

<td class="alt2">$webserver</td>
</
tr>
<
tr
    <
td class="alt1"><img src="statistic/images/misc/php.gif" alt="$vbphrase[vbstatistic_infos_data_dec]width="32" height="32" border="0" /></td>
    <
td class="alt1">$vbphrase[vbstatistic_php_version]</td>
    <
td class="alt1">$phpversion</td>
</
tr>
<
tr
    <
td class="alt2"><img src="statistic/images/misc/sql.gif" alt="$vbphrase[vbstatistic_infos_data_dec]width="32" height="32" border="0" /></td>
    <
td class="alt2">$vbphrase[vbstatistic_sql_version]</td>
    <
td class="alt2">$mysqlversion</td

Replace with:
PHP Code:

<td class="alt2"><if condition="$bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7">$webserver<else /><strong>Admin only!</strong></if></td>
</
tr>
<
tr
    <
td class="alt1"><img src="statistic/images/misc/php.gif" alt="$vbphrase[vbstatistic_infos_data_dec]width="32" height="32" border="0" /></td>
    <
td class="alt1">$vbphrase[vbstatistic_php_version]</td>
    <
td class="alt1"><if condition="$bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7">$phpversion<else /><strong>Admin only!</strong></if></td>
</
tr>
<
tr
    <
td class="alt2"><img src="statistic/images/misc/sql.gif" alt="$vbphrase[vbstatistic_infos_data_dec]width="32" height="32" border="0" /></td>
    <
td class="alt2">$vbphrase[vbstatistic_sql_version]</td>
    <
td class="alt2"><if condition="$bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7">$mysqlversion<else /><strong>Admin only!</strong></if></td

Just take out the 5 and 6 conditions if you dion't want to show to mods and supermods.


All times are GMT. The time now is 11:47 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.01479 seconds
  • Memory Usage 1,771KB
  • 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
  • (3)bbcode_php_printable
  • (3)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