PDA

View Full Version : Post Quality Points System Addon: Top Quality Posters Page


N9ne
03-14-2003, 10:00 PM
-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-
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/showthread.php?s=&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
Yesterday at 11:51 PM squawell said this in Post #5 (https://vborg.vbsupport.ru/showthread.php?postid=367023#post367023)
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:


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


Below it add:


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


Find:


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


Below it add:


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
Today at 08:13 AM N9ne said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=367031#post367031)



Did you run the query?
yes i did.....

N9ne
03-15-2003, 11:38 PM
Today at 01:28 AM squawell said this in Post #8 (https://vborg.vbsupport.ru/showthread.php?postid=367075#post367075)

yes i did.....


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

squawell
03-15-2003, 11:51 PM
Today at 09:38 AM N9ne said this in Post #9 (https://vborg.vbsupport.ru/showthread.php?postid=367078#post367078)



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


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?? :)

N9ne
03-16-2003, 12:49 AM
case 'qualitypoints.php':
$userinfo[activity] = 'Top Quality Posters';
break;



Try that in its place.

cirisme
03-16-2003, 01:07 AM
Try this...

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

squawell
03-16-2003, 06:24 AM
Today at 11:07 AM cirisme said this in Post #12 (https://vborg.vbsupport.ru/showthread.php?postid=367120#post367120)
Try this...

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

it works...... :banana:

N9ne
03-16-2003, 11:43 AM
Thanks cirisme, seems I forgot to add slashes.

squawell
03-16-2003, 11:59 AM
Today at 09:43 PM N9ne said this in Post #14 (https://vborg.vbsupport.ru/showthread.php?postid=367341#post367341)
Thanks cirisme, seems I forgot to add slashes.
N9ne there is no error when u click online.php but it still show up

unknow area when user view that page.......


HOW to solve that?thankz

N9ne
03-16-2003, 12:02 PM
Try this:


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


My only guess is it's to do with session hashes...

squawell
03-16-2003, 12:37 PM
Today at 10:02 PM N9ne said this in Post #16 (https://vborg.vbsupport.ru/showthread.php?postid=367353#post367353)
Try this:


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


My only guess is it's to do with session hashes...
N9ne im not lucky...it still cant work....

still show unknow location...... :cry:

N9ne
03-16-2003, 12:46 PM
What does it show for unknown location? Could you copy and paste exactly what it shows (you can mask the sessionhash to protect privacy)

Skyrender
03-16-2003, 01:12 PM
I think I'll try this. Your Quality Points Sytem is awesome ;)

squawell
03-16-2003, 01:52 PM
Today at 10:46 PM N9ne said this in Post #18 (https://vborg.vbsupport.ru/showthread.php?postid=367391#post367391)
What does it show for unknown location? Could you copy and paste exactly what it shows (you can mask the sessionhash to protect privacy)
this is attach pic u can take look

N9ne
03-16-2003, 02:02 PM
I really don't know why it's doing that to be honest :(

Reoplex
06-28-2003, 02:24 AM
great hack man, thanks.