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)
-   -   Post Quality Points System Addon: Top Quality Posters Page (https://vborg.vbsupport.ru/showthread.php?t=50221)

N9ne 03-14-2003 10:00 PM

Post Quality Points System Addon: Top Quality Posters Page
 
-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-
Addon for Quality Points System: Top X Quality Posters
A hack by N9ne, Copyright N9ne 2003+.
-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-
Description: This addon will add a page to your forums, which
lists the top X quality posters on your forum. It will arrange them
by the number of quality points they have. You can set how
many users to show on the page, from the Memberlist category, in
the vBulletion Options section in the AdminCP.
-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-
You may also disable the feature by setting the value to 0 in the AdminCP.
-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-
NOTE: You MUST have the quality points system installed, in order
to use this addon.
-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-
The Quality Points System can be found here:
https://vborg.vbsupport.ru/showthrea...threadid=48991
-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-
Level of hacking: Easy
Time Taken: 1 Minute
-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-
Files to modify:
None.
-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-
Files to upload:
qualitypoints.php
-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-
Templates to add:
qp_top
qp_topdisabled
qp_toppage
-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-
Queries to run: 1
-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-

Note: In the attached .zip file, there are 2 screenshots, the install file (open in a text editor), and qualitypoints.php (upload in ASCII to your forum folder).

Skyrender 03-15-2003 08:23 PM

Cool I'm installing it right now ;)

N9ne 03-15-2003 08:35 PM

Please click install if you use it :).

Dean C 03-15-2003 08:37 PM

n9ne there was no need to post an addon to your own hack in a different thread. You should have posted it in the original thread as an attachment...

- miSt

squawell 03-15-2003 09:51 PM

nice Addon........N9ne..

but only question....how to add it to online.php if user view that page?

thankz...


Invalid SQL: SELECT userid,username,qualitypoints,posts FROM user ORDER BY qualitypoints DESC LIMIT
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

when i click the link i got this error....

N9ne 03-15-2003 10:13 PM

Quote:

Yesterday at 11:51 PM squawell said this in Post #5
nice Addon........N9ne..

but only question....how to add it to online.php if user view that page?

thankz...


Invalid SQL: SELECT userid,username,qualitypoints,posts FROM user ORDER BY qualitypoints DESC LIMIT
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

when i click the link i got this error....


Did you run the query?

N9ne 03-15-2003 10:20 PM

To show on online.php, try this (not tested):

Find:

PHP Code:

    case 'index':
      
$userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";
      break; 

Below it add:

PHP Code:

    case 'qualitypoints':
      
$userinfo[where] = "$bbtitle <a href='qualitypoints.php?s=$session[sessionhash]'>Top Quality Posters</a>";
      break; 

Find:

PHP Code:

  case 'chat.php':
    
$userinfo[activity] = 'chat';
    break; 

Below it add:

PHP Code:

  case 'qualitypoints.php':
    
$userinfo[activity] = '$bbtitle <a href='qualitypoints.php?s=$session[sessionhash]'>Top Quality Posters</a>';
    break; 


squawell 03-15-2003 11:28 PM

Quote:

Today at 08:13 AM N9ne said this in Post #6



Did you run the query?

yes i did.....

N9ne 03-15-2003 11:38 PM

Quote:

Today at 01:28 AM squawell said this in Post #8

yes i did.....


What do you have set in the adminCP for # of users to show?

squawell 03-15-2003 11:51 PM

Quote:

Today at 09:38 AM N9ne said this in Post #9



What do you have set in the adminCP for # of users to show?

N9ne i know what's the problem......i dont update the option im

admincp...but now it works!! :cool:

by the way about show up in online.php this part i got error

Code:

case 'qualitypoints.php':
    $userinfo[activity] = '$bbtitle <a href='qualitypoints.php?s=$session[sessionhash]'>Top Quality Posters</a>';
    break;

so how do u think what is this problem?? :)


All times are GMT. The time now is 12:13 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.01152 seconds
  • Memory Usage 1,748KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (4)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
  • (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