vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Top XX Posters (https://vborg.vbsupport.ru/showthread.php?t=12067)

webhost 10-14-2001 10:04 PM

find in topposters.php make sure you have 1's and not zero's see below this works for admins, but does not for moderators.

PHP Code:

$admins "1"// change this to "1" to leave admins off the list of top posters. 

PHP Code:

if ($admins == "1") {
    
$exq mysql_query("SELECT usergroupid FROM usergroup WHERE cancontrolpanel='1'");
    
$exr mysql_result($exq,0,0);
    
$exn "WHERE usergroupid<>$exr"


Freegaia 10-15-2001 08:49 PM

I can exclude administrators, but i want to exlude to all moderators.

How can i do ? Please ;)

Sloat 11-11-2001 02:38 PM

Quote:

Originally posted by webhost
top of index.php make look like this

<?php
error_reporting(7);
require('./global.php');
require("./topposters.php");

Try that make sure topposters.php is in your forums root directory

add $topposters in forumhome you will need to build a table for it.

If I add the "require" line, the output of topposters.php appears at the top of the index.php instead of the table where I have $topposters

Logtenberg 11-23-2001 11:09 PM

Quote:

Originally posted by webhost
top of index.php make look like this

<?php
error_reporting(7);
require('./global.php');
require("./topposters.php");

Try that make sure topposters.php is in your forums root directory

add $topposters in forumhome you will need to build a table for it.

I made the above modifications to my index.php - I basically just added the line: require("./topposters.php");

I uploaded topposters.php to the /forum folder and I added $topposters into my forumhome template.

When I go to load the page, the page is completely blank.

Any idea what's going on?

Thanks

Logtenberg 11-25-2001 02:07 AM

Never mind. I fixed it.

Logtenberg 11-27-2001 11:20 PM

Quote:

Originally posted by Pie'oh'pah
I worked around, you may find this interesting if you want to integrate it to your vbulletin pages, so i post it here.

What I did was pasting the code from topposters.php to my index.php

then changed the following:

Step 1 find:

PHP Code:

echo("<table border=0 cellpadding=4 cellspacing=0><tr><td align=\"center\" bgcolor=\"$hc\"><b style=\"color: $text; font-family: $font; font-size: $fontsize\"><i>Username</i></b></td><td align=\"center\" bgcolor=\"$hc\"><b style=\"color: $text; font-family: $font; font-size: $fontsize\"><i>Posts</i></b></td></tr>"); 

Change to read:

PHP Code:

$mytops="<table border=0 cellpadding=4 cellspacing=0><tr><td align=\"center\" bgcolor=\"$hc\"><b style=\"color: $text; font-family: $font; font-size: $fontsize\"><i>Username</i></b></td><td align=\"center\" bgcolor=\"$hc\"><b style=\"color: $text; font-family: $font; font-size: $fontsize\"><i>Posts</i></b></td></tr>"

Step 2 find:

PHP Code:

echo("<tr><td align=\"center\" bgcolor=\"$bc\" style=\"color: $text; font-family: $font; font-size: $fontsize\"><a href=\"$path/member.php3?&action=getinfo&userid=$topposters[userid]\" style=\"color: $link\">$topposters[username]</a></td><td align=\"center\" bgcolor=\"$bc\" style=\"color: $text; font-family: $font; font-size: $fontsize\">$topposters[posts]</td></tr>"); 

Change to read:

PHP Code:

$mytops .="<tr><td align=\"center\" bgcolor=\"$bc\" style=\"color: $text; font-family: $font; font-size: $fontsize\"><a href=\"./member.php3?&action=getinfo&userid=$topposters[userid]\" style=\"color: $link\">$topposters[username]</a></td><td align=\"center\" bgcolor=\"$bc\" style=\"color: $text; font-family: $font; font-size: $fontsize\">$topposters[posts]</td></tr>"

Step 3 find:

PHP Code:

echo("</table>"); 

Change to read:

PHP Code:

$mytops .="</table>"

Step 4:
Place the $mytops anywhere you want the stats to be displayed.

Hope this helps

-Pie


I did this and it works for me too. the problem I have though is that the administrator is not listed in the top posters even though I have $admins = "1";

Do you have this problem too? Is anyone having this problem where admins don't appear in top posters on index.php?

Sinecure 11-27-2001 11:42 PM

One of the usefull hacks, I luv it!

SirSteve 12-26-2001 02:41 PM

Does this work on 2.2.1?

nitro 02-19-2002 02:33 PM

gr8 hack works fine in vbb 222 got it displaying in a sideblock on my portal

also id like to see a conversion of this hack instead of showing top overall posters cud sum1 tell me how to get this to query top thread starters in specific forum ids then u cud display say your top 5 news submitters

ForKmaN 08-10-2002 01:44 PM

PHP Code:

Fatal errorFailed opening required '/admin/config.php' (include_path='.:/php/includes:/usr/share/php'in /home/virtual/site44/fst/var/www/html/topposters.php on line 59 

eep :s

I seen this error for a few other people but I did every thing that was said, and I still get it! :(


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