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)

tubedogg 07-20-2001 06:44 PM

While I appreciate your initiative, could you not use my thread? Thanks.

Devels 07-20-2001 07:29 PM

Indeed all much simply.
Can send ready file (worker version) good working at one of the sites(beside 60 non vb pages)

Pie'oh'pah 07-24-2001 11:07 AM

First, nice hack dude.

though, i have a prob:

when i include

PHP Code:

$topposters implode('',file('path/to/topposters.php')); 

into the phpinclude-template

and $topposters into the forumhome-template, the content of the php-file is being diplayed and spammes my page...

any hints?

btw: calling the topposters.php directly is workin fine....

Pie'oh'pah 07-24-2001 02:23 PM

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

webhost 07-24-2001 06:13 PM

Tubedogg

I loaded your hack and it works but I have one probelm with it. I have a user that goes by AhoyM8 . He should be based on his post counts in the top 5, but with your hack he doesn't even showup in the top 10. In the member list top10 he shows up number 3.

Any ideas?

Can someone help with this I have updated counters in cp

FIXED I HAD TO UPPATE HIS usergroupid from 3 to 2 IN THE DATABASE

GREAT HACK!!!!!!!!!

Click on Forums in my signature to see Top Posters. It is located at the bottom of the page lower left.

Jaffa 07-26-2001 11:24 AM

Warning: Unable to access upload/admin/config.php in /usr/home/d/e/deadlycncu/public_html/upload/topposters.php on line 59

Fatal error: Failed opening required 'upload/admin/config.php' (include_path='') in /usr/home/d/e/deadlycncu/public_html/upload/topposters.php on line 59

thats wat i get i tried all sorts redownloaded and tried again ahhhhhhhhhh:mad:

tubedogg 07-26-2001 08:27 PM

Change $path to admin/config.php

Jaffa 07-27-2001 09:27 AM

np i had to change path to admin thats it ive done it now anyway thx... oh dam now im having problams including file in my index.shtml page i tried

<!--#include file="cncu.deadlyfear.com/upload/topposters.php" -->
<!--#include file="/upload/topposters.php" -->
<!--#include file="upload/topposters.php" -->
<!--#include file="topposters.php" -->
and loads y dont it work ??
:(

webhost 07-30-2001 11:55 PM

Trying not to have admins show up on list. I followed instructions in zip file but they still show up.

Any Ideas anyone?

Jaffa 07-31-2001 12:11 PM

ye u set it to 0 instead of 1 tubedog got it mudled up now someone help me!


All times are GMT. The time now is 10:48 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.01182 seconds
  • Memory Usage 1,754KB
  • 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
  • (7)bbcode_php_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
  • (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