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)

Pie'oh'pah 10-09-2001 03:56 PM

Sorry dudes,

have been away for some time. Anyone care to bring me back on track?

-Pie

Lil'B 10-12-2001 04:17 PM

I want to Include it on the index.php ... HOOOOOOOW ?

Help me plz :(

webhost 10-12-2001 07:22 PM

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.

Lil'B 10-14-2001 03:01 PM

I need More help with the Table ...

Freegaia 10-14-2001 03:07 PM

Verry cool, but how to exclude admins AND moderators ?

ColdFusion 10-14-2001 08:03 PM

is there any way to include it on my forums home page
the first page where you see all forum?
like in http://mysite.com/forums

Neo 10-14-2001 08:09 PM

[QUOTE]Originally posted by ColdFusion
is there any way to include it on my forums home page
the first page where you see all forum?
like in http://mysite.com/forums

ColdFusion 10-14-2001 08:18 PM

I have a swf intro on my forum home page and i want to place the topposters below that but above the list of forums the forums. right in the index.php page.

Neo 10-14-2001 08:47 PM

like this.... http://www.animegathering.com/
look in the stats bar.

Freegaia 10-14-2001 09:59 PM

sorry for my bad english, but how to exclude admins AND moderators ?

thank

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! :(

350Chevy 11-23-2002 04:33 AM

Nice hack, one problem though. My Super Moderators do no show up!?? I do not wish anyone to be excluded from this list including Admin. I didn't actually notice it, one of my super mods did. :)

350Chevy 11-24-2002 01:55 AM

found the problem in your code and fixed it..


All times are GMT. The time now is 01:02 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.01159 seconds
  • Memory Usage 1,782KB
  • 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
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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