By the way shadydude,
At the time I posted, your signature had an error
I'm posting it (edited to remove sensitive info) just in case you fix it before you see this post
I'm almost considering using something like that as my signature now, lol
Moderator: Averen
Notice: Undefined variable: itemdata in /..... ..../roster/addons/guildbank/request.php on line 313
Réservation
Cet objet n'est pas dans la banque.
$query = "SELECT member.name as member_name, member.member_id as member_id, item.* FROM `".ROSTER_ITEMSTABLE."` as item LEFT JOIN `".ROSTER_MEMBERSTABLE."` as member ON item.member_id=member.member_id WHERE item.item_id LIKE '".$itemid.":%' AND member.".$roster_conf['banker_fieldname']." LIKE '%".$roster_conf['banker_rankname']."%' AND item.item_parent!='bags' AND item.item_parent!='equip' AND item.item_tooltip NOT LIKE '%".$wordings[$roster_conf['roster_lang']]['tooltip_soulbound']."%' ORDER BY item.item_name";
$query = "SELECT member.name as member_name, member.member_id as member_id, item.* FROM `".ROSTER_ITEMSTABLE."` as item LEFT JOIN `".ROSTER_MEMBERSTABLE."` as member ON item.member_id=member.member_id WHERE item.item_id LIKE '".$itemid.":%' AND member.".$roster_conf['banker_fieldname']." LIKE '%".$roster_conf['banker_rankname']."%' AND item.item_parent!='bags' AND item.item_parent!='equip' AND (item.item_tooltip NOT LIKE '%".$wordings[$roster_conf['roster_lang']]['tooltip_soulbound']."%' OR item.item_tooltip LIKE '%".$wordings[$roster_conf['roster_lang']]['tooltip_boe']."%') ORDER BY item.item_name";
Malkom wrote:And I don't see this line in the gbank.php file...
darthgus wrote:The other request is, we are always looking for ways to keep people updating their data onto the roster. It would be great to be able to have it so when people request stuff, if they havent updated their data within x days, they arent able to request the item.
function createMemberlist($name)
{
global $wowdb, $addon_conf, $roster_conf, $phptimeformat;
$list = "<SELECT name='accname'>\n";
$currenttime = time();
$query = "SELECT `members`.`member_id`, `members`.`name`, dateupdatedutc ";
$query .= "FROM `".ROSTER_PLAYERSTABLE."` as members ";
$query .= "LEFT JOIN `".ROSTER_MEMBERSTABLE."` AS players ON `members`.`member_id` = `players`.`member_id` ";
$query .= "WHERE guild_rank <= ".$addon_conf['guildbank']['rank']." ORDER BY name";
$result = $wowdb->query($query) or die_quietly($wowdb->error(),'Database Error',basename(__FILE__),__LINE__,$query);
while( $rawlist = $wowdb->fetch_assoc($result) )
{
list($month,$day,$year,$hour,$minute,$second) = sscanf($rawlist['dateupdatedutc'],"%2d/%2d/%2d %2d:%2d:%2d");
$localtime = mktime($hour+$roster_conf['localtimeoffset'] ,$minute, $second, $month, $day, $year, -1);
if (($localtime + (7 * 24 * 60 * 60)) > $currenttime ) {
if($rawlist['member_id'] === $name) {
$list .= "\t<OPTION SELECTED value='".$rawlist['member_id']."'>".$rawlist['name']."</OPTION>\n";
}
else {
$list .= "\t<OPTION value='".$rawlist['member_id']."'>".$rawlist['name']."</OPTION>\n";
}
}
}
$list .= "</SELECT>\n";
return $list;
}
Malkom wrote:Averen, I've another little problem....
When I use your add, level filters don't work.... and when I install this fix on the CatGuildBank (http://www.wowroster.net/Forums/viewtopic/t=2588.html file on the sturmy's post), level filters work fine....
I've tried to mix the two files... but to hard for me
Can you do it please.... ?
Thank you in advance ^^
Malkom wrote:In the localization file, for the french translation, replace "Niveau requis" with "Niveau"
It's work fine ^^
$lvlItemQuery = ' AND `item_tooltip` REGEXP \''.$wordings[$roster_conf['roster_lang']]['reqlevel'].' (('.$min.')';
for ($i = $min + 1;$i <= $max;$i++)
{
$lvlItemQuery .= '|('.$i.')';
}
$lvlItemQuery = ' AND `item_tooltip` REGEXP \''.$wordings[$roster_conf['roster_lang']]['reqlevel'].' (( '.$min.')';
for ($i = $min + 1;$i <= $max;$i++)
{
if ($i<10)
{ $lvlItemQuery .= '|( '.$i.')';
} else
{ $lvlItemQuery .= '|('.$i.')'; }
Averen wrote:1. Guild leader - YES
2. Officer - YES
3. Memer - YES
4. Initiate - NO
1. Guild leader - YES
2. Officer - YES
3. Memer - YES (all members)
4. Player - YES (only members having updated their characters
5. Initiate - NO
Return to Categorized Guild Bank Request
Users browsing this forum: No registered users and 1 guest