DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • July 23, 2018, 08:36:55 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Clans  (Read 3186 times)
0 Members and 1 Guest are viewing this topic.
CortalUX
Dwellings Project
Mod God
*****
Offline Offline

Posts: 796


Wogga! Meep!


View Profile WWW
« on: March 31, 2005, 09:21:29 AM »

I've thought of a way clans could have custom ranks. (as of yet, uncoded...)
It doesn't matter how they are stored, you could even add a few columns to the clan DB.
Maybe if a function in a new 'lib/clans.php' file had a 'clanrankreturn($clanid)' function, and a 'clansetrank($id,$rank)' function.
clanrankreturn($clanid) would return an array formatted like so:
Code:
$ranks = array(CLAN_APPLICANT=>"`!Applicant`0",CLAN_MEMBER=>"`#Member`0",CLAN_OFFICER=>"`^Officer`0",CLAN_LEADER=>"`&Leader`0");
or boolean false if the clan doesn't exist.
You may be wondering why I did this *slightly* pointless suggestion... well, if it was done like this, it would be really easy for users to convert their modules over. A lot of modules simply have an array like the one above with a translate_inline($ranks) after, or something similar.
Users could remove the array after $ranks, require lib/clans.php, and the translate_inline()... and yer' done.
I also decided to suggest it like this instead of coding it myself, as LotGD prerelease 15 seems to be coming out soon... from all the ('oh you'll have to wait') hints  Grin
Logged
orochi
Guest
« Reply #1 on: April 12, 2006, 10:26:21 AM »

what about "field one" "field two" "field three" ect in the DB.... and have them settable by an admin or by a clan (maybe have up to 10?) and then have an int field in the user table with a rank_id and say 1 would be the owner (or Field One) 2 would be an officer (field 2) and then 3+ would be custom settings
Logged
Nightborn
Guest
« Reply #2 on: April 12, 2006, 10:37:37 AM »

no, any fields in the db would be silly.

currently, this is the "now":

ids are like cortal said, 0= applicant, 10= member, 20 =officer, 30= leader
you can be at *one* clan and there is the clanrank field in the accounts table.

there can be custom ranks, and there will be something following (maybe shortly) here.

Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
33 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search