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

   Costum User Rank and Image to Del.icio.us Add to del.icio.us
  Digg Costum User Rank and Image Digg it
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


Top Posters Last 30 Days
AllenAyres 12
Gizmo 10
S7ARBVCK 2
Cambridge 1
Murphdog 1
MattUK 1
Kevin H 1
Who's Online
1 Registered (Nightcrawler), 33 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
BeyondCompare v3.00
by blaaskaak
Yesterday at 02:46 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks