PikachuMayhem wrote: Nice. I'd also like to customise who can use the map. With the size/type, would that be by ACP, or by members?
PizzaHuge wrote: Hi there
the modd looks good, but some how the map doesnt show on my forum, i mean it hide on the upper left corner of my forum instead of staying in the middle, anything else working fine except that
here is the link you can take a look http://tinhthienthu.ath.cx/phoogle_map.php
any help will be very much apprecited
cavallino wrote: Hello,
what's more or less than the mod here?
http://www.phpbb.com/phpBB/viewtopic.php?t=355232
Warning: Missing argument 10 for validate_optional_fields() in /homepages/12/d175856246/htdocs/includes/functions_validate.php on line 169
Warning: Missing argument 11 for validate_optional_fields() in /homepages/12/d175856246/htdocs/includes/functions_validate.php on line 169
Warning: Missing argument 12 for validate_optional_fields() in /homepages/12/d175856246/htdocs/includes/functions_validate.php on line 169
Warning: Missing argument 13 for validate_optional_fields() in /homepages/12/d175856246/htdocs/includes/functions_validate.php on line 169
Code: Select all
function validate_optional_fields(&$icq, &$aim, &$msnm, &$yim, &$website, &$location, &$occupation, &$interests, &$sig, &$phooadd, &$phoolat, &$phoolong, &$phoocomm)
{
$check_var_length = array('aim', 'msnm', 'yim', 'location', 'occupation', 'interests', 'sig', 'phooadd', 'phoolat', 'phoolong', 'phoocomm');
bum63 wrote: Hey BassFace
when I want to update user's info in ACP i get this error:
Warning: Missing argument 10 for validate_optional_fields() in /homepages/12/d175856246/htdocs/includes/functions_validate.php on line 169
Warning: Missing argument 11 for validate_optional_fields() in /homepages/12/d175856246/htdocs/includes/functions_validate.php on line 169
Warning: Missing argument 12 for validate_optional_fields() in /homepages/12/d175856246/htdocs/includes/functions_validate.php on line 169
Warning: Missing argument 13 for validate_optional_fields() in /homepages/12/d175856246/htdocs/includes/functions_validate.php on line 169
and here is what I have in functions_validate.php
any idea why?Code: Select all
function validate_optional_fields(&$icq, &$aim, &$msnm, &$yim, &$website, &$location, &$occupation, &$interests, &$sig, &$phooadd, &$phoolat, &$phoolong, &$phoocomm) { $check_var_length = array('aim', 'msnm', 'yim', 'location', 'occupation', 'interests', 'sig', 'phooadd', 'phoolat', 'phoolong', 'phoocomm');
Thanks in advance
Warning: Missing argument 10 for validate_optional_fields() in /homepages/12/d175856246/htdocs/includes/functions_validate.php on line 169
Warning: Missing argument 11 for validate_optional_fields() in /homepages/12/d175856246/htdocs/includes/functions_validate.php on line 169
Warning: Missing argument 12 for validate_optional_fields() in /homepages/12/d175856246/htdocs/includes/functions_validate.php on line 169
Warning: Missing argument 13 for validate_optional_fields() in /homepages/12/d175856246/htdocs/includes/functions_validate.php on line 169
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]------------------------------------------
#
$interests = ( !empty($HTTP_POST_VARS['interests']) ) ? trim(strip_tags( $HTTP_POST_VARS['interests'] ) ) : '';
#
#-----[ AFTER, ADD ]----------------------------------
#
$phooadd = ( !empty($HTTP_POST_VARS['phooadd']) ) ? trim(str_replace('<br />', "\n", $HTTP_POST_VARS['phooadd'] ) ) : '';
$phoolat = ( !empty($HTTP_POST_VARS['phoolat']) ) ? trim(strip_tags( $HTTP_POST_VARS['phoolat'] ) ) : '';
$phoolong = ( !empty($HTTP_POST_VARS['phoolong']) ) ? trim(strip_tags( $HTTP_POST_VARS['phoolong'] ) ) : '';
$phoocomm = ( !empty($HTTP_POST_VARS['phoocomm']) ) ? trim(strip_tags( $HTTP_POST_VARS['phoocomm'] ) ) : '';
#
#-----[ FIND ]------------------------------------------
#
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);
#
#-----[ IN-LINE FIND ]----------------------------------
#
, $signature
#
#-----[ AFTER, ADD ]----------------------------------
#
, $phooadd, $phoolat, $phoolong, $phoocomm
#
#-----[ FIND ]------------------------------------------
#
$signature = htmlspecialchars(stripslashes($signature));
#
#-----[ AFTER, ADD ]----------------------------------
#
$phooadd = htmlspecialchars(stripslashes($phooadd));
$phoolat = htmlspecialchars(stripslashes($phoolat));
$phoolong = htmlspecialchars(stripslashes($phoolong));
$phoocomm = htmlspecialchars(stripslashes($phoocomm));
#
#-----[ FIND ]------------------------------------------
#
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank" . $avatar_sql . "
#
#-----[ IN-LINE FIND ]----------------------------------
#
. $avatar_sql . "
#
#-----[ AFTER, ADD ]----------------------------------
#
, user_phoogle_address='" . str_replace("\'", "''", $phooadd) . "', user_phoogle_latitude='" . $phoolat . "', user_phoogle_longitude ='" . $phoolong ."', user_phoogle_comment='" . str_replace("\'", "''", $phoocomm) . "'
#
#-----[ FIND ]------------------------------------------
#
$signature = htmlspecialchars(stripslashes($signature));
#
#-----[ AFTER, ADD ]----------------------------------
#
$phooadd = htmlspecialchars(stripslashes($phooadd));
$phoolat = htmlspecialchars(stripslashes($phoolat));
$phoolong = htmlspecialchars(stripslashes($phoolong));
$phoocomm = htmlspecialchars(stripslashes($phoocomm));
#
#-----[ FIND ]------------------------------------------
#
$signature = preg_replace($html_entities_match, $html_entities_replace, $signature);
#
#-----[ AFTER, ADD ]----------------------------------
#
$phooadd = htmlspecialchars($this_userdata['user_phoogle_address']);
$phoolat = htmlspecialchars($this_userdata['user_phoogle_latitude']);
$phoolong = htmlspecialchars($this_userdata['user_phoogle_longitude']);
$phoocomm = htmlspecialchars($this_userdata['user_phoogle_comment']);
#
#-----[ FIND ]------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="signature" value="' . str_replace("\"", """, $signature) . '" />';
#
#-----[ AFTER, ADD ]----------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="phooadd" value="' . str_replace("\"", """, $phooadd) . '" />';
$s_hidden_fields .= '<input type="hidden" name="phoolat" value="' . str_replace("\"", """, $phoolat) . '" />';
$s_hidden_fields .= '<input type="hidden" name="phoolong" value="' . str_replace("\"", """, $phoolong) . '" />';
$s_hidden_fields .= '<input type="hidden" name="phoocomm" value="' . str_replace("\"", """, $phoocomm) . '" />';
#
#-----[ FIND ]------------------------------------------
#
'SIGNATURE' => str_replace('<br />', "\n", $signature),
#
#-----[ AFTER, ADD ]----------------------------------
#
'PHOOGLE_ADDRESS' => $phooadd,
'PHOOGLE_LATITUDE' => $phoolat,
'PHOOGLE_LONGITUDE' => $phoolong,
'PHOOGLE_COMMENT' => str_replace('<br />', "\n", $phoocomm),
#
#-----[ FIND ]------------------------------------------
#
'L_SIGNATURE' => $lang['Signature'],
#
#-----[ AFTER, ADD ]----------------------------------
#
'L_PHOOGLE_PROFILE' => $lang['Phoogle_Profile'],
'L_PHOOGLE_ADDRESS' => $lang['Phoogle_Address'],
'L_PHOOGLE_EXPLAIN' => $lang['Phoogle_Explain'],
'L_PHOOGLE_LAT' => $lang['Phoogle_Lat'],
'L_PHOOGLE_LONG' => $lang['Phoogle_Long'],
'L_PHOOGLE_GET' => $lang['Phoogle_Get'],
'L_PHOOGLE_COMMENT' => $lang['Phoogle_Comment'],
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_SIGNATURE}</span><br />
<span class="gensmall">{L_SIGNATURE_EXPLAIN}<br />
<br />
{HTML_STATUS}<br />
{BBCODE_STATUS}<br />
{SMILIES_STATUS}</span></td>
<td class="row2">
<textarea class="post" name="signature" rows="6" cols="45">{SIGNATURE}</textarea>
</td>
</tr>
<tr>
<td class="catsides" colspan="2"><span class="cattitle"> </span></td>
</tr>
#
#-----[ AFTER, ADD ]----------------------------------
#
<tr>
<th class="thSides" colspan="2" height="25" valign="middle">{L_PHOOGLE_PROFILE}</th>
</tr>
<tr>
<td class="row1"><span class="gen">{L_PHOOGLE_ADDRESS}</span> </td>
<td class="row2">
<input type="text" class="post" style="width: 200px" id="phooadd" name="phooadd" size="60" maxlength="150" value="{PHOOGLE_ADDRESS}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen"><span class="gensmall">{L_PHOOGLE_EXPLAIN}</span></span></td>
<td class="row2"> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_PHOOGLE_LAT} </span></td>
<td class="row2">
<input type="text" class="post"style="width: 200px" id="phoolat" name="phoolat" size="35" maxlength="150" value="{PHOOGLE_LATITUDE}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_PHOOGLE_LONG} </span><br />
<span class="gensmall"><a href="#" onclick="javascript: window.open('select_map.php?lat={LAT_MAP}&lng={LNG_MAP}','select_map',''); return false;">{L_PHOOGLE_GET}</a></span></td>
<td class="row2"><input type="text" class="post"style="width: 200px" id="phoolong" name="phoolong" size="35" maxlength="150" value="{PHOOGLE_LONGITUDE}" /></td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_PHOOGLE_COMMENT}:</span></td>
<td class="row2">
<textarea name="phoocomm" cols="30" rows="6" class="post" id="phoocomm" style="width: 300px">{PHOOGLE_COMMENT}</textarea> </td>
</tr>
<tr>
<td class="catSides" colspan="2" height="28"> </td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#