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)

Pitman 05-09-2004 12:05 AM

Anyone going to attempt this working with permissions?

Fluous 05-09-2004 12:28 AM

Whenever I run forumhome_stats_member with its code it tells me this

PHP Code:

The following error occurred when attempting to evaluate this template:

Parse errorparse errorexpecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/*/public_html/forum/includes/adminfunctions_template.php(3037) : eval()'d code on line 7

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. 

On line 7 is....

PHP Code:

|| # This file may not be redistributed in whole or significant part. # || 

Please help?

Edit: nvm, in his // ### TOP 5.... i had only put one slash killing the whole thing lol

boiboi 05-10-2004 03:38 AM

is there a similar hack that would work on a non-forumhome page? also the lastest forum topic looks nice on the xamira site. is there one that i can put on a non-forumhome page as well?
thanks

theo 05-10-2004 08:12 PM

does this work with VB3.0.1??????????
sorry new to this stuff

Pitman 05-10-2004 08:28 PM

So there is nobody that will be willing to make this work with permissions? :(

I am disappointed

msimplay 05-10-2004 08:40 PM

Quote:

Originally Posted by Pitman
So there is nobody that will be willing to make this work with permissions? :(

I am disappointed

give it some time i'm sure the hack owner or someone else will pick it up
whining gets you nowhere :)

theo 05-11-2004 11:37 AM

Can somebody PLEASE tell me whether this works on version 3.0.1????????????????????

Evilboy 05-11-2004 12:16 PM

yes it works :)

vhoang 05-11-2004 08:20 PM

Quote:

Originally Posted by AnimeWebby
This hack in its current form works using forum permission. It also show deleted thread only to those members who can see them as well as being able to exclude forum id's so there should not be problems with members seeing what they shouldnt be able to.

I have finished my next version found here it includes an extra page so users can specify the number of stats to show added admincp settings for post title trunctaing, username truncating, excluded forum ids, most stats to show on forumhome and extra page, default to show on forum home and extra page as well as a prefix setting for new and old posts. It is all ready to go with htl but with the new admin settings i need to create an installer to add those into the dbase.

Where can i download this "next version" ?

Thanks.

Rids 05-11-2004 11:18 PM

The new version looks excellent - so when do we get it? :)

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?

Sean S 05-16-2004 09:40 PM

thanks for the great hack :)

theo 05-16-2004 10:18 PM

i ahve version 3.0.1

Synicide 05-16-2004 10:34 PM

Quote:

Originally Posted by theo
i ahve version 3.0.1

Then you should have the same file as all of us. Sorry for taking up all this space, but here is what your code should look like at the top, if it doesn't then you have a problem and should redownload the package.

PHP Code:

<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.0.1 - Licence Number [REMOVED LICENSE #]
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000?2004 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # [url]http://www.vbulletin.com[/url] | [url]http://www.vbulletin.com/license.html[/url] # ||
|| #################################################################### ||
\*======================================================================*/

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS'1);
define('THIS_SCRIPT''index');

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array('holiday');

// get special data templates from the datastore
$specialtemplates = array(
    
'userstats',
    
'birthdaycache',
    
'maxloggedin',
    
'iconcache',
    
'eventcache',
    
'mailqueue'
);

// 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',
    
'forumhome_stats_poster'
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once(
'./includes/functions_bigthree.php');
require_once(
'./includes/functions_forumlist.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################


vhoang 05-19-2004 02:07 AM

Quote:

Originally Posted by AnimeWebby
This hack in its current form works using forum permission. It also show deleted thread only to those members who can see them as well as being able to exclude forum id's so there should not be problems with members seeing what they shouldnt be able to.

I have finished my next version found here it includes an extra page so users can specify the number of stats to show added admincp settings for post title trunctaing, username truncating, excluded forum ids, most stats to show on forumhome and extra page, default to show on forum home and extra page as well as a prefix setting for new and old posts. It is all ready to go with htl but with the new admin settings i need to create an installer to add those into the dbase.

I'm wondering if AnimeWebby has finished the installer and would be releasing the new mod soon?

InfiniteWebby 05-19-2004 03:20 AM

Haven't even started, ive been working on my own sites for the time being. But it shouldn't be long once I do start.

J.C. 05-20-2004 11:33 PM

Just wondering, can you make it into 'Top 10' ?

Thanks

msimplay 05-20-2004 11:44 PM

that can be easily done by change 5 to 10 on that bit of the code
PHP Code:

$displayrecords "5"


Mystictrunks03 05-30-2004 01:23 PM

on this one specific forum in my forum the top 5 doesnt count any threads or posts made in it...Whats the problem?

vhoang 06-02-2004 07:18 PM

This really does not work with usergroup permission as there are replies in group-owned forums are not shown on the stats even when you are logged in and have permission to view such replies.

InfiniteWebby 06-03-2004 07:57 AM

have have not done any work to this hack lately, I will look into and release a new version asap. Maybe two-three weeks as I am busy with work.

Mamochka 06-03-2004 10:16 AM

I am wating for this hack.:)

ChrisBaktis 06-08-2004 11:18 PM

I installed this and it works great...only problem is that we have a forum setup for mods and admins to talk. when we post in that forum those also show up in the Latest Posts section. Although regular members cant read the thread they can see the title. Is there any way around this?

msimplay 06-09-2004 05:38 AM

Quote:

Originally Posted by ChrisBaktis
I installed this and it works great...only problem is that we have a forum setup for mods and admins to talk. when we post in that forum those also show up in the Latest Posts section. Although regular members cant read the thread they can see the title. Is there any way around this?

in index php look for this code

PHP Code:

 // ### TOP 5 STATS BY ANIMEWEBBY ###########################################
 
$displayrecords "5"// how many records should we show?
 
$excludedforums "13"// forums to be excluded from latest threads. Format "0,5,7"
 
$threadchars "30"// number of characters in thread title before '...' is added 

and where it says 13 add the id's of the forums you want excluded

bigreefer 06-09-2004 05:55 AM

sorry, wrong thread

Caiman 06-09-2004 11:19 PM

Thanks very much, changed the code a little and popped this on my vbAdvanced homepage, works a treat!

Clicked install

ChrisBaktis 06-10-2004 03:18 PM

Thanks for the help - worked fine

HakkieDEV 06-14-2004 09:23 PM

Great hack, installed it without problems!

Just a question, is it possible to change the topx-posters into the topx-posters in the same forumids as the newestthreadtopx?
(So it would display the topx posters in 1 (or more) specific forum(s))

Thanks!

Hakkie

Hazzo 06-16-2004 12:37 AM

Would be neat, is this could turn into to say to see how well usergroups on the site are doing as well.. Maybe see things like, total members in the user group and posts.. Maybe even whose the newest/oldest member of that group based on join dates.. Dunno, could this be some sortof add on??

weitalia 07-14-2004 01:54 AM

Fantastic!! Amazing!!

;)

bspiller82 08-09-2004 07:52 PM

Anyway to prevent it from showing Priviate/locked forum posts in the top forum post list?


All times are GMT. The time now is 02:37 PM.

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.01665 seconds
  • Memory Usage 1,860KB
  • 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
  • (6)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)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