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


Who's Online
0 registered (), 29 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by Ruben Rocha
Today at 02:58 PM
Spell Check [beta]
by Bill B
Yesterday at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Yesterday at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Yesterday at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Yesterday at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks