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)

AshAbed 01-26-2004 11:32 AM

Quote:

Originally Posted by alzibub
Nice hack !!
I know someone else asked this - but is there a way to exclude forums from the newest replies ?

I have the same question... my hidden forum's posts are showing up :x

DaPro 01-26-2004 12:24 PM

Great hack, looks great!

I was wondering, could there be an addon for "Popular Thread" like in the vb2 one. Just a suggestion :)

Codeman05 01-26-2004 03:34 PM

Thanks AnimeWebby, that worked perfect

InfiniteWebby 01-27-2004 04:35 AM

Quote:

Originally Posted by AshAbed
I have the same question... my hidden forum's posts are showing up :x

This feature is already built in just fill in this line with the forums you want excluded
PHP Code:

$excludedforums "13"// forums to be excluded from latest threads. Format "0,5,7" 


apokphp 01-30-2004 04:31 AM

Is there a way to exclude a certain poster or posters for Top Posters?

InfiniteWebby 01-30-2004 05:43 AM

replace:
PHP Code:

SELECT useridusernameposts FROM " . TABLE_PREFIX . "user ORDER BY posts DESC LIMIT 0$displayrecords 

with:
PHP Code:

SELECT useridusernameposts FROM " . TABLE_PREFIX . "user WHERE userid NOT IN (1,2,3ORDER BY posts DESC LIMIT 0$displayrecords 

change 1,2,3 to the userid(s) of the users you wish to exclude.

apokphp 01-31-2004 02:14 AM

thanks man. ;)

/installed

killervette 02-07-2004 01:39 AM

anyway to get the latest posts on a non vb page????

mcyates 02-07-2004 11:01 AM

Can i have it so when i click on the latest thred. it goes to the last post posted rather than the newpost posted?

MSX 02-26-2004 12:30 AM

I R KICK TEH INSTALL BUTTON.

LOL talking like that makes me laugh so hard, I'm sorry lol.

/me shoots the install button

gopherhockey 02-29-2004 10:52 PM

Quote:

Originally Posted by rinkrat
I'd like to see top five reputations, can that be done?

You mean like this? http://www.morcmtb.org/forums

I found newest members being a rather boring stat....

thakikka 03-02-2004 05:19 PM

How can I sort the "Who was online today"-Display by Username and not by User-ID?

DaPro 03-20-2004 10:46 AM

Tested with new vB 3.0 Gold, i think it works, I have had no problems :)

LPTV 03-23-2004 02:39 AM

i have problem when i finished hack:
PHP Code:

Parse errorparse error in /home/pvbcttc/public_html/forum/index.php on line 523 

help me now! because forum can't run now :(

edeab220 03-23-2004 03:20 AM

um...where is FORUMHOME located? I can't seem to find it in my vB files...

LPTV 03-23-2004 04:44 AM

PHP Code:

Parse errorparse error in /home/pvbcttc/public_html/forum/index.php on line 523 

==> This is my bugs of me. When i finished your hack and my forum error and it can't run.
I don't know why. Help me!

sabret00the 03-23-2004 09:23 AM

was such an east install, thank you :)

msimplay 03-27-2004 01:43 PM

i have one problem with this hack
i know theres a way to exclude forums
but i need it to exclude posts that are in moderation ?

X-Sector 03-28-2004 08:06 PM

I got this error when installed your hack, animewebby..

Code:

Parse error: parse error, expecting `')'' in /home/xelation/public_html/forums/index.php on line 54
I'm running on the vBulletin 3 Gold

X-Sector 03-30-2004 05:58 PM

anybody gonna help me???

sabret00the 04-01-2004 09:06 AM

what's on line 54 of your index.php?

paste the 10 lines above and below it :)

sabret00the 04-01-2004 09:07 AM

PHP Code:

if ($bbuserinfo[usergroupid] == 6) { // admin so display all threads
    
$excludedforums =    "forumid<>'46' AND forumid<>'47'";
} elseif (
$bbuserinfo[usergroupid] == 12 OR 5) { //super mods and site-wide moderators
    
$excludedforums "forumid<>'18' AND forumid<>'46' AND forumid<>'47' AND forumid<>'69'";
} elseif (
$bbuserinfo[usergroupid] == 7) { //moderators
    
$excludedforums "forumid<>'18' AND forumid<>'46' AND forumid<>'47' AND forumid<>'74' AND forumid<>'69'";
} else {
//everyone else
    
$excludedforums "forumid<>'17' AND forumid<>'18' AND forumid<>'20' AND forumid<>'46' AND forumid<>'47' AND forumid<>'74' AND forumid<>'69' AND forumid<>'95'";


i added this code but it don't seem to be working, is there anyway to make it use the access masks set in the mcp/acp ?

datainternet 04-05-2004 10:51 AM

Hi,

Is it possible to combine this hack with this thread-category hack?:

https://vborg.vbsupport.ru/showthread.php?t=61494

MFG datainternet

akonze 04-06-2004 08:08 AM

First, I found one small cosmetic bug:

Code:

  'forumhome_subforumseparator_post',
  'forumhome_stats_poster',
  'forumhome_stats_member',
  'forumhome_stats_thread',

Above will add another empty field to the array. It's better to remove the last comma:

Code:

  'forumhome_subforumseparator_post',
  'forumhome_stats_poster',
  'forumhome_stats_member',
  'forumhome_stats_thread'

Second, although the top posters template should run fine with 'smallfont' css, it does not. Both other boxes do. Any suggestions?

successguy 04-07-2004 07:36 AM

Very cool! Thanks AnimeWebby

Dan P. 04-16-2004 02:29 PM

Nice hack. Thanks.

Dan P. 04-16-2004 04:56 PM

Posted in error..please delete.

ph03nIX 04-19-2004 01:21 AM

Sorry if this has been asked or answered before but if a forum is a privet forum or password protected or something will the posts in that forum show up on this mod? If so, is there a way to stop this from happening?

Thank you :)

Liquid1ce 04-22-2004 05:52 AM

@ph03nIX - Yes you excluse the forum with forum Id in
Code:

$excludedforums = "13"; // forums to be excluded from latest threads.
Could someone tell me how to display the latest 5 for forum id XXX ?
as i want to add a box to the bottom of this one

Regards

brianstevz 04-29-2004 04:01 PM

Would it be possible to show reputation on this? Best and worst?

Sirius Black 05-03-2004 12:54 AM

Great hack man !! Installed with no problems !!

Pitman 05-04-2004 07:31 PM

I need this to work with user's permissions, is that possible? :(

I mean I know that you can exclude certain forums, but I want all of the forums to show if the user that is viewing the page has permission to access that forum.

msimplay 05-04-2004 07:53 PM

Quote:

Originally Posted by Pitman
I need this to work with user's permissions, is that possible? :(

I mean I know that you can exclude certain forums, but I want all of the forums to show if the user that is viewing the page has permission to access that forum.

yeh good idea and threads / posts awaiting moderation should be excluded

sabret00the 05-04-2004 07:53 PM

i'll take a look at the code asi want it to work with permissions too, basically it's just a matter of extracting the usergroups and then their permissions and converting that data into something that the script can read, shouldn't be too hard, although it'll probably add a few queries, we'll see though, if anyone more skilled does it before me then yay :)

Pitman 05-04-2004 09:21 PM

Yeah, this is an awesome hack, it just needs to be tweaked a little :)

InfiniteWebby 05-06-2004 07:38 AM

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.

msimplay 05-06-2004 07:50 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.

but what about moderated posts ?

sabret00the 05-06-2004 08:13 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.

based on my current installation, guests can see threads in the top 5 even in hidden forums? :(

brianstevz 05-06-2004 01:09 PM

Quote:

Originally Posted by sabret00the
based on my current installation, guests can see threads in the top 5 even in hidden forums? :(

Where is the code for the change? Also could you change this to display reputation instead of new users?

msimplay 05-06-2004 02:32 PM

Quote:

Originally Posted by sabret00the
based on my current installation, guests can see threads in the top 5 even in hidden forums? :(

yep thats what i mean about permissions
if the permissions were there
we wouldn't have to exclude forums or worry about posts in moderation displaying


All times are GMT. The time now is 11:29 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.03103 seconds
  • Memory Usage 1,832KB
  • 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
  • (6)bbcode_php_printable
  • (8)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