&$interests &$signature,
Thanks for testing the code!!
Every things seems to work perfectly now (http://www.chathamkiwanis.com/phpBB/viewtopic.php?p=841#841)
&$interests &$signature,

antoonvdr wrote:As I already pointed out elsewhere, you missed a comma between the two:&$interests &$signature,
Thanks for testing the code!!
Every things seems to work perfectly now (http://www.chathamkiwanis.com/phpBB/viewtopic.php?p=841#841)

## EasyMod compliant
##############################################################
## MOD Title: Hide Age: Addon to Birthday Mod
## MOD Author: Gadget Wizard < gadgetwizard@upstateforums.com > (N/A) http://www.upstateforums.com
## MOD Traductor: Galixte < galixte@gmail.com > (N/A) http://www.phpbb-project.info
## MOD Description: Cet ADDON crée une option dans le profil de l'utilisateur
## permettant aux utilisateurs de ne pas afficher leur age.
## Si cette option est activée, seuls le mois et le jour apparaitront sur la vue
## du profil public de l'utilisateur et l'age n'apparaitra pas sous l'avatar
## ou dans la liste des anniversaires.
## MOD Version: 0.9.0
##
## Installation Level: Intermédiaire
## Installation Time: 30 minutes
## Files To Edit: (10)
## index.php
## viewtopic.php
## admin/admin_users.php
## includes/usercp_avatar.php
## includes/usercp_register.php
## includes/usercp_viewprofile.php
## language/lang_english/lang_main.php
## language/lang_french/lang_main.php
## templates/subSilver/profile_add_body.tpl
## templates/subSilver/admin/user_edit_body.tpl
## Included Files: (N/A)
## License: http://opensource.org/licenses/gpl-license.php GNU Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## MOD History:
##
## 2005-08-03 - Version 0.9.0
## - Première version beta crée
##
##############################################################
## Avant d'installer ce MOD, veillez à sauvegarder tous les fichiers suceptibles d'être modifiés
##############################################################
#
#-----[ SQL ]------------------------------------------
#
ALTER TABLE phpbb_users ADD 'user_age_flag' INT DEFAULT "0" NOT NULL;
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
$sql = ($board_config['birthday_check_day'])
#
#-----[ IN-LINE FIND ]------------------------------------------
#
, user_birthday
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_age_flag = '$age_flag'
#
#-----[ FIND ]------------------------------------------
#
switch ($birthdayrow['user_level'])
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ($birthdayrow['user_age_flag']) $user_age= 'xx';
#
#-----[ FIND ]------------------------------------------
#
switch ($birthdayrow['user_level'])
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ($birthdayrow['user_age_flag']) $user_age= 'xx';
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id, u.user_posts,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
, u.user_allowsmile
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, u.user_age_flag
#
#-----[ FIND ]------------------------------------------
#
$poster_age = $lang['Age'] . ': ' . $poster_age;
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ($postrow[$i]['user_age_flag']) $poster_age= '';
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]------------------------------------------
#
$interests = ( !empty($HTTP_POST_VARS['interests']) ) ? trim(strip_tags( $HTTP_POST_VARS['interests'] ) ) : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$age_flag = ( isset( $HTTP_POST_VARS['age_flag']) ) ? ( ( $HTTP_POST_VARS['age_flag'] ) ? TRUE : 0 ) : 0;
#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$interests) . "'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_age_flag = '$age_flag'
#
#-----[ FIND ]------------------------------------------
#
$interests = htmlspecialchars($this_userdata['user_interests']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$age_flag = $this_userdata['user_age_flag'];
#
#-----[ FIND ]------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="interests" value="' . str_replace("\"", """, $interests) . '" />';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="age_flag" value="' . $age_flag . '" />';
#
#-----[ FIND ]------------------------------------------
#
'INTERESTS' => $interests,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'AGE_FLAG_YES' => ( $age_flag ) ? 'checked="checked"' : '',
'AGE_FLAG_NO' => ( !$age_flag ) ? 'checked="checked"' : '',
'L_AGE_FLAG'=> $lang['age_flag'],
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_avatar.php
#
#-----[ FIND ]------------------------------------------
#
function display_avatar_gallery($mode, &$category
#
#-----[ IN-LINE FIND ]------------------------------------------
#
&$interests
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, &$age_flag
#
#-----[ FIND ]------------------------------------------
#
$params = array('coppa', 'user_id'
#
#-----[ IN-LINE FIND ]------------------------------------------
#
'interests'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, 'age_flag'
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
$viewemail = ( isset($HTTP_POST_VARS['viewemail']) ) ? ( ($HTTP_POST_VARS['viewemail']) ? TRUE : 0 ) : 0;
#
#-----[ AFTER, ADD ]------------------------------------------
#
$age_flag = ( isset($HTTP_POST_VARS['age_flag']) ) ? ( ($HTTP_POST_VARS['age_flag']) ? TRUE : 0 ) : 0;
#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$interests) . "'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_age_flag = '$age_flag'
#
#-----[ FIND ]------------------------------------------
#
$sql = "INSERT INTO " . USERS_TABLE . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
user_interests
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_age_flag
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$interests) . "'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, '$age_flag'
#
#-----[ FIND ]------------------------------------------
#
$birthday = $userdata['user_birthday'];
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$age_flag = $userdata['user_age_flag'];
#
#-----[ FIND ]------------------------------------------
#
display_avatar_gallery(
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$interests
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, $age_flag
#
#-----[ FIND ]------------------------------------------
#
//
// Let's do an overall check for settings/versions which would prevent
// us from doing file uploads....
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$info_yes = ( $age_flag ) ? 'checked="checked"' : '';
$info_no = ( !$age_flag ) ? 'checked="checked"' : '';
#
#-----[ FIND ]------------------------------------------
#
'INTERESTS' => $interests,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'INFO_YES' => $info_yes,
'INFO_NO' => $info_no,
#
#-----[ FIND ]------------------------------------------
#
'L_INTERESTS' => $lang['Interests'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_AGE_FLAG' => $lang['age_flag'],
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
$user_birthday = $lang['No_birthday_specify'];
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ($profiledata['user_age_flag']) $user_birthday = realdate('M d', $profiledata['user_birthday']);
#
#-----[ FIND ]------------------------------------------
#
'BIRTHDAY' => $user_birthday,
#
#-----[ BEFORE, ADD ]------------------------------------------
#
'AGE_FLAG' => ( $profiledata['user_age_flag'] == '0' ) ? $lang['No'] : $lang['Yes'],
'L_AGE_FLAG'=> $lang['age_flag'],
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Birthday'] = 'Birthday';
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['age_flag'] = 'Hide Your Age';
#
#-----[ OPEN ]------------------------------------------
#
language/lang_french/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Birthday'] = 'Birthday';
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['age_flag'] = 'Cacher votre age';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="row2"><span class="gen">{S_BIRTHDAY}</span></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_AGE_FLAG}:</span></td>
<td class="row2">
<input type="radio" name="age_flag" value="1" {INFO_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="age_flag" value="0" {INFO_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="row2"><span class="gen">{S_BIRTHDAY}</span></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1"><B><span class="gen">{L_AGE_FLAG}:</span></B></td>
<td class="row2">
<input type="radio" name="age_flag" value="1" {AGE_FLAG_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="age_flag" value="0" {AGE_FLAG_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
spitfire wrote:
- Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
display_avatar_gallery(
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$interests
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, $age_flag
#
#-----[ FIND ]------------------------------------------
#
//
// Let's do an overall check for settings/versions which would prevent
// us from doing file uploads....
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$info_yes = ( $age_flag ) ? 'checked="checked"' : '';
$info_no = ( !$age_flag ) ? 'checked="checked"' : '';
#
#-----[ FIND ]------------------------------------------
#
'INTERESTS' => $interests,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'INFO_YES' => $info_yes,
'INFO_NO' => $info_no,
#
#-----[ FIND ]------------------------------------------
#
'L_INTERESTS' => $lang['Interests'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_AGE_FLAG' => $lang['age_flag'],

Return to Birthday [2.0.10/EM]
Users browsing this forum: No registered users and 0 guests