Ik wil deze mod verplicht maken,aangezien firefox het niet lekker doet met deze mod, Met ie zet ie als je geen vlag kiest de vlag naar nospec volgens de mod,maar met FF geeft ie een lege value mee.
weet iemand hoe ik dit voor elkaar kan krijgen?
Country Flags Mod verplicht maken
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

Country Flags Mod verplicht maken
Als het niet gaat zoals het moet, dan moet het zoals het gaat!
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Forumer (n). 1) One who runs a forum or is an active member of one or more web forums.
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Forumer (n). 1) One who runs a forum or is an active member of one or more web forums.
dit werkt niet voor deze mod denk ik,want hij heeft altijd een value en dat is None
en het stukje uit function_selects.php
None.gif is de image die die pakt uit de map die blank is,dit is ook de eerste image.
kan deze gelijk verplaatst worden naar support?
Code: Selecteer alles
if ( !empty($HTTP_POST_VARS['country']) )
{
if ( preg_match('/^[a-z_]+$/i', $HTTP_POST_VARS['country']) )
{
$user_country = htmlspecialchars($HTTP_POST_VARS['country']);
}
else
{
$error = true;
$error_msg = $country['Fields_empty'];
}
}
else
{
$user_country = 'None';
}
Code: Selecteer alles
function country_select($default, $select_name = "country")
{
global $phpEx, $phpbb_root_path;
$country=array();
$countrydir = opendir($phpbb_root_path . 'images/flags/');
while ($file = readdir($countrydir)) {
if ($file != "." && $file != "..") {
$filename = $file;
$displayname = trim(str_replace(".gif", "", $filename));
$country[$displayname] = $displayname;
}
}
closedir($countrydir);
@asort($country);
@reset($country);
$country_select = '<select name="' . $select_name . '" onchange="ViewFlag(this.options[this.selectedIndex].value);">';
while ( list($displayname, $filename) = @each($country) )
{
$selected = ( strtolower($default) == strtolower($filename) ) ? ' selected="selected"' : '';
$country_select .= '<option value="' . $displayname . '"' . $selected . '>' . ucwords($displayname) . '</option>';
}
$country_select .= '</select><span class="gensmall"> Flag: </span><img name="Flag_Zone" id="Flag_Zone" src="images/flags/' . $default . '.gif" border="0" style="position: relative; top: 2px;">';
return $country_select;
}
kan deze gelijk verplaatst worden naar support?
Als het niet gaat zoals het moet, dan moet het zoals het gaat!
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Forumer (n). 1) One who runs a forum or is an active member of one or more web forums.
I don't need to "get a life." I'm a Gamer, I have lots of lives!
Forumer (n). 1) One who runs a forum or is an active member of one or more web forums.