Moderator: ds
Blueleaf wrote:WOW not sure what happened, maybe an operator error but I upgraded from 2.0.0.0 to 2.0.0.6 and it no longer displays any information. Any Ideas on what went wrong?
foreseit wrote:I just installed 2.0.06, and the only reputations that will display are the hostile ones.
www.thehateguild.com/a...rs&guild=1
"SELECT distinct(r.name) faction FROM ".
"`".$roster->db->table('reputation')."` r, `".$roster->db->table('players')."` p ".
"WHERE ".
"r.member_id = p.member_id AND p.guild_id = '".$roster->data['guild_id']."' ". // Only get dinsctint reps for guild 'guild_id'
"ORDER BY r.name";
tuigii wrote:ntex wrote:I found two bugs
What ??? [ ]ntex wrote:There is an issue with Ogri'la on SQL statement and makes some sense, since this faction have an apostrophe ' so for sure it ends prematurely the SQL statement on the code.
Yep, saw the one, it a cousin of Shen'draler, I think.
I'm 'neutral = 0 / 3000 with them - so I really don't know.
But what really interest you (and me) is : Go overhere : http://www.papy-team.fr/roster/index.ph ... on&guild=1
and I can tell you that these are working (on my server tm).
Between you and I, only the database could be different : is yours interclassement uft8_unicode_ci ?ntex wrote:The other bug it's after u browse other factions if u re-select "Select a faction" it gives an error that can't find a file:
"The requested URL /modules/roster/roster/none was not found on this server."
I acknowledge - didn't saw that before....
Needed half on hour to find out that I should met the services of a function called stripslashes(), and that should "love and care" makelink(...).
Anyway, test drive with the link mentionned above , and if you say ok, i'll up it, ok ?
Btw : Thanks
1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'la' ORDER BY max_rep desc, r.standing DESC, curr_rep DESC' at line 1
SQL:
SELECT m.clientLocale locale, m.name member, r.faction, r.name fct_name, curr_rep AS value, curr_rep, max_rep, r.standing FROM `roster_reputation` r, `roster_players` m WHERE r.member_id = m.member_id AND m.guild_id = '1' AND r.name='Ogri'la' ORDER BY max_rep desc, r.standing DESC, curr_rep DESC
File: lib\dbal\mysql.php
Line: 203
Backtrace (most recent call last):
* lib\functions.lib.php
o Line: 240
o Function Called: backtrace
* lib\dbal\mysql.php
o Line: 203
o Function Called: die_quietly
o Arguments:
+ 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'la' ORDER BY max_rep desc, r.standing DESC, curr_rep DESC' at line 1
+ Database Error
+ C:\Apache\htdocs\modules\Roster\roster\lib\dbal\mysql.php
+ 203
+ SELECT m.clientLocale locale, m.name member, r.faction, r.name fct_name, curr_rep AS value, curr_rep, max_rep, r.standing FROM `roster_reputation` r, `roster_players` m WHERE r.member_id = m.member_id AND m.guild_id = '1' AND r.name='Ogri'la' ORDER BY max_rep desc, r.standing DESC, curr_rep DESC
* addons\FactReputation\guild\index.php
o Line: 70
o Function Called: query
o Arguments:
+ SELECT m.clientLocale locale, m.name member, r.faction, r.name fct_name, curr_rep AS value, curr_rep, max_rep, r.standing FROM `roster_reputation` r, `roster_players` m WHERE r.member_id = m.member_id AND m.guild_id = '1' AND r.name='Ogri'la' ORDER BY max_rep desc, r.standing DESC, curr_rep DESC
* index.php
o Line: 128
o Function Called: require
o Arguments:
+ C:\Apache\htdocs\modules\Roster\roster\addons\FactReputation\guild\index.php
"' AND r.name='".$_REQUEST['factionfilter']."' "
"' AND r.name="".$_REQUEST['factionfilter']."" "
"' AND r.name='".addslashes($_REQUEST['factionfilter'])."' ".
if (get_magic_quotes_gpc() == "1") {
$factionstr = addslashes($_REQUEST['factionfilter']);
} else {
$factionstr = $_REQUEST['factionfilter'];
}
$query = "SELECT m.clientLocale locale, m.name member, r.faction, r.name fct_name, curr_rep AS value, ".
"curr_rep, ".
"max_rep, ".
"r.standing ".
"FROM `".$roster->db->table('reputation')."` r, `".$roster->db->table('players')."` m ".
"WHERE r.member_id = m.member_id AND m.guild_id = '".$roster->data['guild_id']."' AND r.name='".$factionstr."' ".
"ORDER BY max_rep desc, r.standing DESC, curr_rep DESC";
...AND r.name='Ogri'la'..
...AND r.name='Ogri\'la'...
..
SetEnv MAGIC_QUOTES 1
..
tuigii wrote:I get it.
...
Anyway, your " arround ".$_REQUEST['factionfilter']." works for me also - so I'll adopt it right away.
if (get_magic_quotes_gpc() == "1") {
$factionstr = addslashes($_REQUEST['factionfilter']);
} else {
$factionstr = $_REQUEST['factionfilter'];
}
$query = "SELECT m.clientLocale locale, m.name member, r.faction, r.name fct_name, curr_rep AS value, ".
"curr_rep, ".
"max_rep, ".
"r.standing ".
"FROM `".$roster->db->table('reputation')."` r, `".$roster->db->table('players')."` m ".
"WHERE r.member_id = m.member_id AND m.guild_id = '".$roster->data['guild_id']."' AND r.name='".$factionstr."' ".
"ORDER BY max_rep desc, r.standing DESC, curr_rep DESC";
<?php
$lang['reputationinfo'] = 'Reputación';
$lang['reputation_desc'] = 'Mostrar la reputación de todas las facciones';
$lang['reputationinfobutton'] = 'Reputación|Mostrar la reputación de todas las facciones';
$lang['SelectFaction'] = 'Elige una facción';
$lang['reputation_addon'] = 'Reputación';
$lang['faction_filter']= 'Filtro facción: ';
$lang['rep_name'] = 'Nombre';
$lang['rep_group'] = 'Grupo';
$lang['rep_faction'] = 'Facción';
$lang['rep_status'] = 'Estatus';
$lang['rep_value'] = 'Valor';
$lang['rep_max'] = 'Max';
?>
PleegWat wrote:This is strange. You shouldn't be needing to do this - settings.php fixes these up so get/post/cookie/request are always slashed.
Subxero wrote:Hi tuigii
esES.php
/**
* Set magic quotes runtime off
*/
set_magic_quotes_runtime(0);
<?php
if (!defined('MODULE_FILE')) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$index=0;
$go_to_address1="/modules/roster/roster/index.php";
$go_to_address=rawurldecode($go_to_address1);
include("header.php");
define('INDEX_FILE', true);
OpenTable();
/* ----> iframe code to load above URL */
echo "<iframe id=\"myframe\" SRC=\"".$go_to_address."\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" vspace=\"0\" hspace=\"0\" style=\"overflow:visible; width:100%; display:none\"></iframe>";
CloseTable();
include("footer.php");
?>
"' AND r.name=\"".$_REQUEST['factionfilter']."\" "
Users browsing this forum: No registered users and 0 guests