I just want some help to try this out and see if it works.
I'm CODE illiterate but will try to find the answer on my own.
If I'm totally wrong in my understanding let me know or if you have the answer, Thankyou before hand.
Lets say I create a normal WoWRoster .. In config I say the guild name is "Allegiance". Its not a guild that exsists in Warcraft.
Now in admin/update.php the characterprofiler.lua is turned into an array.
Any one with the GuildProfiler Addon would have a guild memberlist in this characterprofiler.lua
Now around line 227 a function is started processGuildRoster.
BEFORE..
- Code: Select all
if( $roster_conf['guild_name'] == $guildName ){
How do I code so it..
1. Replace the characters in Public note with the guild name.
2. change guild name to Allegiance
3. If Officer note equals "Allegiance" then add name to WoWRoster list
Now this I'm thinking will get names from different guilds into the list. as long as their officer note equals "allegiance".
But the update function for WoWRoster...
- Code: Select all
// Remove the members who were not in this list
$wowdb->remove_guild_members($guildId, $currentTime);
$wowdb->remove_guild_members_id($guildId);
Would need to be rewrote to remove only members that...
a) were on the Current CharacterProfiler.lua (now made an array)
b) but no longer have "allegiance" in officer note
Now.. like I said I'm code illiterate but will try to find the answer to this out myself any help would be greatly appreciated cuase I only know the bone head way of "Trial and Error" method of coding. but what i think this will do is...
1. Allow different Guild Masters (or who ever has GuildProfiler and the password to the Roster to update) to upload their unique characterprofiler (aka their unique guild memberlist)
2. The GM's will add officer notes to say who from their guild is uploaded.
3. The GM's remove the notes to take people off of the roster
4. Becuase the guild is changed to Allegiance its the public notes that say what guild people are from. Horde can be uploaded to the same List if they have the required Officer note. (note: now how to display faction in the roster page.)
Some problems::
1. If a member leaves the guild his name will have no automated method of being taken off of the WoWRoster list. (note: if some one knows a way of doing this manually I'ld really like to know)
Well thats my idea any help would be appreciated.