php forum
php mysql forum
php mysql smarty
 
Topic Options
#43150 - 02/12/00 03:23 PM Costum User Rank and Image
MercAngel Offline
Junior Member

Registered: 02/04/00
Posts: 4
ok i know there are some costum ranks out there but i could not find one like this all of that i have found you have to edit the code every time you want to add a new rank or change one so i made one that will let the admin change the rank of a user puls you can add new rank and images as you want from the control panel so you do not have to edit the code

as this is not only my first hack the is my first CGI script too so there may be bugs and better ways of doing some things just let me know and i will try to fix it here is the link.
http://www3.50megs.com/mercangel/Cosrank.html

I had to fix something so it you downloaded the file you will need to get it again

Top
#43151 - 02/13/00 02:23 AM Re: Costum User Rank and Image
Snake Offline
Member

Registered: 01/25/00
Posts: 21
Loc: DK
I have an problem...

If I wanna edit users rank in "User Info &.."
I can only change for one user, because the link goes only to one user, it doesn't matter which user I wanna edit it only goes to last registered user... Why??

I.e. I have 4 users and every user has an file name, like "00001, 00002" etc...

So I can't edit user nr 00001, only user 00002, so if I click on user 00001, I get to user 0002... I hope you got that

Top
#43152 - 02/15/00 01:35 AM Re: Costum User Rank and Image
MercAngel Offline
Junior Member

Registered: 02/04/00
Posts: 4
ok i look in to the error i cange the rank of 4 user and it worked every time but i did find one error with the code the update user and when you have rank set but post turn on i did not sort the rank list right and all the user would end up with the lowest rank i have upload a new file and here if the fix

if the CosRankLib.pl file find the code:

&GetMemberListArray; #returns @members array
@RankList = &OpenFile("$MembersPath/CosRank.DB");

under that add this code:

@RankList = sort {$a <=> $b } @RankList;

find the code:

sub GetNewRank {
my $TPost = shift;
$NewRank="";

@RankList = &OpenFile("$MembersPath/CosRank.DB");

and under that add this code:

@RankList = sort {$a <=> $b } @RankList;

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks