Previous Thread
Next Thread
Print Thread
Rate Thread
#43150 02/12/2000 4:23 PM
Joined: Feb 2000
Posts: 2
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 2
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

Sponsored Links
Joined: Jan 2000
Posts: 6
Member
Member
Offline
Joined: Jan 2000
Posts: 6
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 [Linked Image]

Joined: Feb 2000
Posts: 2
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 2
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;


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)