Firefox PHP

Top X Authors Hack

Posted by Vulpes 
Top X Authors Hack
March 12, 2001 03:08AM
Here it is, code and hack instructions inside.

As always please post with what phorum/php version/database you got it working and with what you didn't.

This hack is pretty easy to install, but it took me 2 days to make the script for it and make it "perfect", so
if you got any good addons to that hack or you changed something to make it look/work Better/faster i'd be glad to see what you did and how you did it.

enjoy :) and please post your comments, addons, or queston below.

Vulpes
Re: Top X Authors Hack
March 23, 2001 12:50AM
Just a little addon:

right before (top.php)
echo "</center>\n";
add:
echo "<a href=\"list.php?f=$f\">Back</a>\n";

This will add "Back" link
Re: Top X Authors Hack
March 26, 2001 07:45PM
How do I **get** the attachment? I can't figgure out how to download it..

Matt
Re: Top X Authors Hack
March 29, 2001 02:43AM
why?
Re: Top X Authors Hack
April 01, 2001 06:15AM
How can I change the navfont colour as it is white on my forum but black on the top ten list?

kenny
Re: Top X Authors Hack
April 01, 2001 11:56PM
might be, open your top.php and search for "top" and then add font color="whatever" before "top"
It works great Vulpes...
April 11, 2001 03:11PM
I have seen that before on UBB ultimate asp bulletin board and was in need of that in phorum, now it's done :))
Vulpes that's really great, thank you..
Re: Top X Authors Hack
April 18, 2001 07:46AM
Vulpes wrote:

> Here it is, code and hack instructions inside.

Thanx !

> This hack is pretty easy to install, but it took me 2 days to
> make the script for it and make it "perfect", so

For non-English-native users, it will be more perfect if U can include $lAuthor variable.

Of course, synchorize the colour setting of the title bar in top.php with setting of this forum will be ABSOLUTELY PERFECT !!

However, appreciated Ur hare working.
Re: Top X Authors Hack
April 25, 2001 07:25AM
Thank you Vulpes!

This was truly a great feature/hack to the Phorum! I've used your Views hack earlier with great success and this adds even more to the great Phorum.

I'm running a PHP-Nuke based site myself, but wanted to use Phorum as a forum and not the one that was included in the "package", so I (with some help of others) have integrated Phorum into PHP-Nuke and I also did an integration (which is nothing more than including the themes header/footer really) of your top X authors hack.

Thanks again!

My url to see it in action is [www.conan.no].

- Ståle
Hi Vulpes

I tryed out your hack but it needed a few adjustments for the 3.3 dev

the code is as follows:

List.php:
// Mark all read
addnav($menu, $lMarkRead, "$list_page.$ext?f=$num$GetVars&r=1");
<b>// Top 10
addnav($menu, $ltop10, "top.$ext?f=$num$GetVars&top=10");</b>
$nav=getnav($menu);
$TopLeftNav=$nav;
$LowLeftNav=$nav;

Also in english.php I added:
$ltop10 = "Top10";

Malcolm Darwen

Be sure to remove the <b>BOLD</b> tags - I just put them in so you could see where the code is to be inserted.
yea, i should add it to the code sometime.
Jules
Top 10 authors of all forums...
May 03, 2001 12:40AM
Was wondering, how do i go about doing this? showing the top 10 authors of all the forums joined together.
as far as i know, it's impossible.
Re: Top X Authors Hack
October 05, 2001 09:05PM
To the end of each $nav variable right after last </a>, add:

&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"top.$ext?f=$num$GetVars&top=10\"><FONT color='$ForumNavFontColor'>Top 10</font></a>


OK,
Here I am again with a silly question. When I add the above code directly after the last </a> I get a parse error from phorum when trying to display a forum. Does the code go directly after the </a> or after the close quotes that define the $nav variable ?

Thanks for any assistance!
Name versus username
February 12, 2002 06:27PM
I noticed that this (very nice) code counts the number of posts made by a certain NAME....is it possible to have it bu username instead? a matter of a little tweaking or a whole rewrite?...

on my phorum i have had complaints about people not being on the list anymore because they changed their names! I told them Vulpes had an answere...
Sir Fice
Re: Name versus username
February 13, 2002 07:10AM
hi, i'm running 3.3.1a, how do i get this to work in there? i don't have these lines in list.php

if($ActiveForums>1){
$nav = "<div class=nav><FONT color='$ForumNavFontColor'> [it keep on going]
}
else{
$nav = "<div class=nav><FONT color='$ForumNavFontColor'> [it keep on going]


please help, thanks.
The script don't work in 3,3,2A why? What changes to I made?

Jesper
Re: Top X Authors Hack
August 19, 2002 09:54PM
Just another small correction :

bottom of the script
i replaced
echo "<a href=\"list.php?f=$f\">Back</a>\n";
by
echo "<a href=\"$list_page.$ext?f=$f\">Back</a>\n";

to enble your script functioning when pages have been renamed or extensions changed ;-)
Re: Top X Authors Hack
August 20, 2002 11:26AM
It works fine here:

Linux 2.4.18, apache 1.3.26, php 4.2.2, mysql 3.23.48, phorum 3.3.2c
Re: Top X Authors Hack
November 04, 2002 02:09PM
I'm running 3.3.2c and I cant find the code in list.php to modify. Instructions say to open list.php and find these lines and modify code after </a>

Well I can't find </a> or these lines

f($ActiveForums>1){
$nav = "<div class=nav><FONT color='$ForumNavFontColor'>&nbsp;[it keep on going]
}
else{
$nav = "<div class=nav><FONT color='$ForumNavFontColor'>&nbsp;[it keep on going]

help?
Sorry, you do not have permission to post/reply in this forum.