Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
943
facebookda paylas eklenti ..(11580 okuma, 11 yanıt) Üyelerin profilerine yoru ..(11408 okuma, 10 yanıt) Forum Mesajları ..(7124 okuma, 4 yanıt) Forumun üst bölümüne nası ..(6190 okuma, 2 yanıt) Power Nuke Hakkinda Uzma ..(16061 okuma, 19 yanıt) mesajı begenme eklentisi ..(7073 okuma, 4 yanıt) imza karakterlerinin sayı ..(6475 okuma, 4 yanıt) Forumda Embed kodlar ..(66883 okuma, 11 yanıt) Eğitim Sitesi için banner ..(8446 okuma, 5 yanıt) Forum Da ki katogorileri ..(6254 okuma, 5 yanıt) Forum Admin Panelde Kulla ..(4236 okuma, 1 yanıt) lewel mod ..(6996 okuma, 5 yanıt) Avatar boyunu ayarlama ..(7016 okuma, 5 yanıt) Foruma iframe Kodları Cal ..(6346 okuma, 4 yanıt) Üye paneli ..(12118 okuma, 14 yanıt) popüler Hikaye Yan Blok ..(3753 okuma, 0 yanıt) Rütbe resmi ..(5405 okuma, 3 yanıt) Alt Forum Ekletisinde Alt ..(6009 okuma, 3 yanıt) Advanced Username Color ..(11092 okuma, 12 yanıt) body kismi hangi nuke say ..(5436 okuma, 2 yanıt) Forumda Son konuları Site ..(3731 okuma, 0 yanıt) wep sitesi yapanlar ..(4606 okuma, 2 yanıt) Bu Eklentinin Aynısı Lazı ..(9667 okuma, 11 yanıt) Forumu düzenleyeyim derke ..(5265 okuma, 3 yanıt) www.teselliver.com siteye ..(4979 okuma, 2 yanıt) Php Nuke BB Calısmaları ..(3561 okuma, 1 yanıt) İstek İstatistikler Modu ..(4758 okuma, 2 yanıt) Formumuzu Gelistirmek Ve ..(3324 okuma, 0 yanıt) Arkadaşlar cinsiyet ve do ..(7972 okuma, 6 yanıt) 7.9 Blue Editoins Formunu ..(3634 okuma, 0 yanıt) mesajdan sonra sponsor re ..(4695 okuma, 2 yanıt) Buyrun yapamayanlar için ..(33077 okuma, 38 yanıt) Entegreler Sıtede bulamad ..(4075 okuma, 1 yanıt) En Gelısmıs Phpbb Sürümü ..(6601 okuma, 5 yanıt) konu başlıkları hazır for ..(3893 okuma, 0 yanıt) Eklenti ..(4070 okuma, 1 yanıt) AJAX Sohbet Odası - Shout ..(13931 okuma, 17 yanıt) Sohbet Modu ..(5705 okuma, 3 yanıt) Smilar Topics ..(4017 okuma, 1 yanıt) Foruma Small Shoutbox ..(3306 okuma, 0 yanıt) Php Nuke 8.0 A FCK Editör ..(6565 okuma, 5 yanıt) mod fourum message ..(4880 okuma, 2 yanıt) Php Nuke Formunu Nasıl Ge ..(9177 okuma, 10 yanıt) Bu eklentinin adı nedir ? ..(5126 okuma, 2 yanıt) Cash Mod 221 - Türkçe [MO ..(6361 okuma, 3 yanıt) Kilitlenen Konunun Üzerin ..(16445 okuma, 16 yanıt) Forum da Bu Hatayı veriyo ..(7247 okuma, 4 yanıt) phpnuke foruma güvenlik k ..(5768 okuma, 3 yanıt) daha önce bu konuya bakan ..(5968 okuma, 3 yanıt) BBtoNuke 2.22 to BBtoNuke ..(3750 okuma, 0 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - Birthday eklentisini avatar altında göstermek ?
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
Serkancinar Mesaj: 200+
Kayıt: Sep 13, 2008 Mesajlar: 213
Tarih: 2008-10-30, 19:47:48 Mesaj konusu: Birthday eklentisini avatar altında göstermek ?
merhaba arkadaşlar birthday doğum günü eklentisi kurdum sorunsuz çalıştı fakat ben bunu avatar altında yaş: 18 gibi göstermek istiyorum bunu nasıl yapabilirim ?
kurulum dosyası şöyle
Kod:
##############################################################
## MOD Title: Birthdays
## MOD Author: TerraFrost <N> (Jim Wigginton) http://www.frostjedi.com/terra/wordpress/
## MOD Description: Adds a Birthday field to the user profile.
## MOD Version: 2.0.0
##
## Installation Level: Intermediate
## Installation Time: 30 Minutes
##
## ==== Evo-Mods ==============================================
##
## MOD Porter: JeFFb68CAM
## MOD ID: 5
## MOD DB Link: http://Evo-Mods.com/modules.php?name=Mods&file=view&mod=5
## MOD Ported on: January 28, 2006
## MOD Compatibility: Nuke-Evolution Basic 1.0.0
## Nuke-Evolution Basic 1.0.1
## Nuke-Evolution Basic 1.0.2
##
## ============================================================
##
## Düzenlenecek Dosyalar: 12
## modules/Forums/language/lang_english/lang_main.php
## modules/Forums/language/lang_english/lang_admin.php
## includes/functions_selects.php
## includes/usercp_register.php
## includes/usercp_avatar.php
## themes/YOUR_THEME/forums/profile_add_body.tpl
## modules/Forums/admin/admin_users.php
## modules/Forums/templates/subSilver/admin/user_edit_body.tpl
## modules/Forums/index.php
## themes/YOUR_THEME/forums/index_body.tpl
## includes/usercp_viewprofile.php
## themes/YOUR_THEME/forums/profile_view_body.tpl
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## Please check http://evo-mods.com for the latest ported version of this mod.
## It can easily be found in our mod database (www.Evo-Mods.com/modules.php?name=Mods)
##############################################################
## Author Notes:
##
## Although Niels Chr. Denmark's ever-popular Birthday Hack already does that
## which this MOD attempts to do, it does have a number of problems that this
## MOD seeks to remedy.
##
## 1. It isn't validated and hasn't been subjected to a security audit by the
## phpBB MOD Team.
## 2. It saves the birthdate by saving the number of seconds that have elapsed
## since January 1, 1970 to the date in question. This is an inefficient use
## of memory and of storage.
## 3. As a consequence of (2), members *must* specify a birth year, thereby
## effectively telling the world how old they are. This will probably
## disuade some members from using the feature when they might have otherwise
## done so.
##
## Niels MOD can be found here:
## http://www.phpbbhacks.com/download/187
##
## The latest version of this mod can be found here:
## http://www.frostjedi.com/terra/scripts/phpbb/birthdays.zip
##
## For support / comments / whatever, visit the following URL:
## http://www.frostjedi.com/phpbb/viewforum.php?f=33
##
##############################################################
## MOD History:
##
## 2005-12-30 - Version 2.0.0
## - added a new birthday icon (thanks, Ptirhiik!)
## - added the ability to require dates of birth
## - added the ability to require years
## - added the ability to make dates of birth "read-only"
## - added the ability to make the birthday panel on the main index appear all the time
## - added the ability to display birthdays that are x days away (where x is definable
## in the ACP)
## - added the ability to specify valid age ranges
## 2005-12-05 - Version 1.0.1
## - added a new birthday icon (thanks, cback!)
## - removed a superfluous rowspan="2" attribute (thanks, tony44!)
## - fixed a bug whereby certain birthdates wouldn't be accepted in the ACP (thanks, duena!)
## - fixed a bug whereby birthdates showed up a day early (thanks, 3Di and Scorpiuscat1!)
## - fixed a bug whereby avatar galleries would reset birthdates (thanks, 3Di!)
## 2005-11-16 - Version 1.0.0
## - initial release
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ KOPYALAYIN ]------------------------------------------
#
Upload all files to their respective directories.
#
#-----[ SQL ]-------------------------------------------
#
ALTER TABLE nuke_users ADD user_birthday int(8) DEFAULT '0' NOT NULL;
INSERT INTO nuke_bbconfig (config_name, config_value) VALUES ('bday_show',1);
INSERT INTO nuke_bbconfig (config_name, config_value) VALUES ('bday_require',0);
INSERT INTO nuke_bbconfig (config_name, config_value) VALUES ('bday_year',0);
INSERT INTO nuke_bbconfig (config_name, config_value) VALUES ('bday_lock',0);
INSERT INTO nuke_bbconfig (config_name, config_value) VALUES ('bday_lookahead',7);
INSERT INTO nuke_bbconfig (config_name, config_value) VALUES ('bday_max',100);
INSERT INTO nuke_bbconfig (config_name, config_value) VALUES ('bday_min',5);
#
#-----[ AÇ ]------------------------------------------
#
modules/Forums/language/lang_english/lang_main.php
#
#-----[ BUL ]------------------------------------------
#
?>
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
$lang['Birthday_range'] = 'Birthdays must yield ages between %d and %d years, inclusive.';
$lang['No_birthdays'] = 'No birthdays today';
$lang['Congratulations'] = 'Congratulations to: <b>%s</b>';
$lang['Upcoming_birthdays'] = 'Users with a birthday within the next %d days: <b>%s</b>';
$lang['No_upcoming'] = 'No users are having a birthday in the upcoming %d days';
$lang['Birthday'] = 'Date of Birth';
$lang['Month'] = 'Month';
$lang['Day'] = 'Day';
$lang['Year'] = 'Year';
$lang['Clear'] = 'Clear';
$lang['Year_Optional'] = 'Year <i>(Optional)</i>';
$lang['Optional'] = '<i>(Optional)</i>';
$lang['Default_Month'] = '[ Select a Month ]';
$lang['Default_Day'] = 'dd';
$lang['Default_Year'] = 'yyyy';
$lang['Birthday_invalid'] = 'You didn\'t specify a valid Birthday.';
$lang['Todays_Birthdays'] = 'Today\'s Birthdays';
$lang['View_Birthdays'] = 'Happy Birthday!';
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ AÇ ]------------------------------------------
#
modules/Forums/language/lang_english/lang_admin.php
#
#-----[ BUL ]------------------------------------------
#
?>
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
$lang['Birthdays'] = 'Birthdays';
$lang['bday_show'] = 'Birthday Panel Visibility';
$lang['Unconditional'] = 'Unconditional';
$lang['Conditional'] = 'Conditional';
$lang['bday_show_explain'] = 'Determines whether or not the Birthday Panel on the main Index should be visible in the event that there are no birthdays or upcoming birthdays (unconditional = yes, conditional = no)';
$lang['bday_require'] = 'Require Date of Birth';
$lang['bday_require_explain'] = 'The year of birth will only be required if the "Require Year" option is selected';
$lang['bday_year'] = 'Require Year';
$lang['bday_year_explain'] = 'When this option is selected, users attempting to provide a date of birth will also need to provide a year of birth.';
$lang['bday_lock'] = 'Disallow Date of Birth Changes';
$lang['bday_lock_explain'] = 'Once entered, the date of birth cannot be changed, again. Atleast when this option is selected.';
$lang['bday_lookahead'] = 'Number of Days to Look Ahead';
$lang['bday_lookahead_explain'] = 'Affects the Birthday Panel on the main Index. Entering -1 will disable Birthday Lookahead';
$lang['bday_age_range'] = 'Allowable Age Range (in years)';
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ AÇ ]------------------------------------------
#
includes/functions_selects.php
#
#-----[ BUL ]------------------------------------------
#
?>
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
//
// Pick a birthday month
//
function bday_month_select($default, $select_name = 'bday_month')
{
global $lang;
static $translate;
if ( empty($translate) )
{
$translate = array(
$lang['Default_Month'],
$lang['datetime']['January'],
$lang['datetime']['February'],
$lang['datetime']['March'],
$lang['datetime']['April'],
$lang['datetime']['May'],
$lang['datetime']['June'],
$lang['datetime']['July'],
$lang['datetime']['August'],
$lang['datetime']['September'],
$lang['datetime']['October'],
$lang['datetime']['November'],
$lang['datetime']['December']
);
}
if ( !isset($default) )
{
$default = 0;
}
$bday_month_select = '<select>';
foreach ($translate as $num => $month)
{
$selected = ( $num == $default ) ? ' selected="selected"' : '';
$bday_month_select .= '<option>' . $month . '</option>';
}
$bday_month_select .= '</select>';
return $bday_month_select;
}
//
// Pick a birthday day
//
function bday_day_select($default, $select_name = 'bday_day')
{
global $lang;
static $options;
if ( empty($options) )
{
$options = array($lang['Default_Day']);
for ($i=0; $i<31> $day)
{
$selected = ( $num == $default ) ? ' selected="selected"' : '';
$bday_day_select .= '<option>' . $day . '</option>';
}
$bday_day_select .= '</select>';
return $bday_day_select;
}
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
# start editing the user profile files
#-----[ AÇ ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ BUL ]------------------------------------------
# this is a partial match
#
$strip_var_list = array
#
#-----[ İÇİNDE BUL ]----------------------------------
#
, 'icq' => 'icq'
#
#-----[ İÇİNDE BULDUĞUNUN SONRASINA EKLE ]----------------------------
#
, 'bday_day' => 'bday_day', 'bday_month' => 'bday_month', 'bday_year' => 'bday_year'
#
#-----[ BUL ]------------------------------------------
#
if ( $signature != '' )
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
$temp_month = ( !$board_config['bday_require'] && $bday_month == 0 ) ? 1 : $bday_month;
$temp_day = ( !$board_config['bday_require'] && $bday_day == $lang['Default_Day'] ) ? 1 : $bday_day;
if ( !$board_config['bday_year'] )
{
$temp_year = ( $bday_year == $lang['Default_Year'] ) ? 4 : $bday_year;
}
else
{
$temp_year = $bday_year;
if ( !$board_config['bday_require'] && $bday_month == 0 && $bday_day == $lang['Default_Day'] )
{
$temp_year = ( $bday_year == $lang['Default_Year'] ) ? 4 : 0;
}
}
if ( !@checkdate( $temp_month, $temp_day, $temp_year ) && (!$board_config['bday_lock'] || $userdata['user_birthday'] == 0) )
{
$error = TRUE;
$error_msg .= ( ( !empty($error_msg) ) ? '<br>' : '' ) . $lang['Birthday_invalid'];
}
if ( $bday_month != 0 && $bday_day != $lang['Default_Day'] && $bday_year != $lang['Default_Year'] )
{
$age = gmdate('Y') - $bday_year - ( sprintf('%02d%02d',$bday_month,$bday_day) > gmdate('md',time()) );
if ( $board_config['bday_min'] > $age || $age > $board_config['bday_max'] )
{
$error = TRUE;
$error_msg .= ( ( !empty($error_msg) ) ? '<br>' : '' ) . sprintf($lang['Birthday_range'],$board_config['bday_min'],$board_config['bday_max']);
}
}
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
# this is a partial match
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
$user_birthday = ( !$board_config['bday_lock'] || $userdata['user_birthday'] == 0 ) ? sprintf('%02d%02d%04d',$bday_month,$bday_day,$bday_year) : $userdata['user_birthday'];
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ İÇİNDE BUL ]----------------------------------
#
, user_icq = '" . str_replace("\'", "''", $icq) . "'
#
#-----[ İÇİNDE BULDUĞUNUN ÖNCESİNE EKLE ]---------------------------
#
, user_birthday = " . $user_birthday . "
#
#-----[ BUL ]------------------------------------------
# this is a partial match
#
$sql = "INSERT INTO " . USERS_TABLE . " (user_id,
#
#-----[ İÇİNDE BUL ]----------------------------------
#
, user_icq
#
#-----[ İÇİNDE BULDUĞUNUN ÖNCESİNE EKLE ]---------------------------
#
, user_birthday
#
#-----[ İÇİNDE BUL ]----------------------------------
#
, '" . str_replace("\'", "''", $icq) . "'
#
#-----[ İÇİNDE BULDUĞUNUN ÖNCESİNE EKLE ]---------------------------
#
, " . sprintf('%02d%02d%04d',$bday_month,$bday_day,$bday_year) . "
#
#-----[ BUL ]------------------------------------------
#
$icq = $userdata['user_icq'];
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
preg_match('/(..)(..)(....)/', sprintf('%08d',$userdata['user_birthday']), $bday_parts);
$bday_month = $bday_parts[1];
$bday_day = $bday_parts[2];
$bday_year = $bday_parts[3];
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
# this is a partial match
#
display_avatar_gallery($mode,
#
#-----[ İÇİNDE BUL ]----------------------------------
#
$user_lang,
#
#-----[ İÇİNDE BULDUĞUNUN SONRASINA EKLE ]----------------------------
#
$bday_month, $bday_day, $bday_year,
#
#-----[ BUL ]------------------------------------------
#
$template->assign_block_vars('switch_confirm', array());
}
#
#-----[ SONRASINA, EKLE ]------------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
if ( !$board_config['bday_lock'] || $userdata['user_birthday'] == 0 )
{
$block = ( $board_config['bday_require'] == TRUE ) ? 'birthday_required' : 'birthday_optional';
$template->assign_block_vars($block, array());
}
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
#
'CONFIRM_IMG' => $confirm_image,
#
#-----[ SONRASINA, EKLE ]------------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
'BDAY_MONTH' => ($bday_month != 0) ? $bday_month : $lang['Default_Month'],
'BDAY_DAY' => ($bday_day != 0) ? $bday_day : $lang['Default_Day'],
'BDAY_YEAR' => ($bday_year != 0) ? $bday_year : $lang['Default_Year'],
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
#
'LANGUAGE_SELECT' => language_select($user_lang, 'language'),
#
#-----[ SONRASINA, EKLE ]------------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
'BIRTHMONTH_SELECT' => bday_month_select($bday_month, 'bday_month'),
'BIRTHDAY_SELECT' => bday_day_select($bday_day, 'bday_day'),
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
#
'L_ICQ_NUMBER' => $lang['ICQ'],
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
'L_CLEAR' => $lang['Clear'],
'L_BIRTHDAY' => $lang['Birthday'],
'L_MONTH' => $lang['Month'],
'L_DAY' => $lang['Day'],
'L_YEAR' => ( $board_config['bday_year'] ) ? $lang['Year'] : $lang['Year_Optional'],
'L_OPTIONAL' => ( $board_config['bday_year'] ) ? '' : $lang['Optional'],
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
#
'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
);
#
#-----[ SONRASINA, EKLE ]------------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
$template->set_filenames(array(
'birthday_interface' => 'birthday_interface.tpl')
);
$template->assign_var_from_handle('BIRTHDAY_INTERFACE', 'birthday_interface');
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ AÇ ]------------------------------------------
#
includes/usercp_avatar.php
#
#-----[ BUL ]------------------------------------------
# this is only a partial match
#
function display_avatar_gallery($mode
#
#-----[ İÇİNDE BUL ]----------------------------------
#
&$language,
#
#-----[ İÇİNDE BULDUĞUNUN SONRASINA EKLE ]----------------------------
#
&$bday_month, &$bday_day, &$bday_year,
#
#-----[ BUL ]------------------------------------------
# this is only a partial match
#
$params = array(
#
#-----[ İÇİNDE BUL ]----------------------------------
#
'language',
#
#-----[ İÇİNDE BULDUĞUNUN SONRASINA EKLE ]----------------------------
#
'bday_month', 'bday_day', 'bday_year',
#
#-----[ AÇ ]------------------------------------------
#
themes/YOUR_THEME/forums/profile_add_body.tpl
#
#-----[ BUL ]------------------------------------------
#
<BEGIN>
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
<BEGIN>
<tr>
<td><span>{L_BIRTHDAY}: *</span></td>
<td>{BIRTHDAY_INTERFACE}</td>
</tr>
<END>
#
#-----[ BUL ]------------------------------------------
#
<END>
#
#-----[ SONRASINA, EKLE ]-----------------------------------
#
<BEGIN>
<tr>
<td><span>{L_BIRTHDAY}:</span></td>
<td>{BIRTHDAY_INTERFACE}</td>
</tr>
<END>
#
# now we start editing the admin user management files
#-----[ AÇ ]------------------------------------------
#
modules/Forums/admin/admin_users.php
#
#-----[ BUL ]------------------------------------------
#
$icq = ( !empty($HTTP_POST_VARS['icq']) ) ? trim(strip_tags( $HTTP_POST_VARS['icq'] ) ) : '';
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
$bday_year = ( !empty($HTTP_POST_VARS['bday_year']) ) ? $HTTP_POST_VARS['bday_year'] : 0;
$bday_month = ( !empty($HTTP_POST_VARS['bday_month']) ) ? $HTTP_POST_VARS['bday_month'] : 0;
$bday_day = ( !empty($HTTP_POST_VARS['bday_day']) ) ? $HTTP_POST_VARS['bday_day'] : 0;
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
#
if ($signature != '')
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
$temp_month = ( !$board_config['bday_require'] && $bday_month == 0 ) ? 1 : $bday_month;
$temp_day = ( !$board_config['bday_require'] && $bday_day == $lang['Default_Day'] ) ? 1 : $bday_day;
if ( !$board_config['bday_year'] )
{
$temp_year = ( $bday_year == $lang['Default_Year'] ) ? 4 : $bday_year;
}
else
{
$temp_year = $bday_year;
if ( !$board_config['bday_require'] && $bday_month == 0 && $bday_day == $lang['Default_Day'] )
{
$temp_year = ( $bday_year == $lang['Default_Year'] ) ? 4 : 0;
}
}
if ( !@checkdate( $temp_month, $temp_day, $temp_year ) )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br>' : '' ) . $lang['Birthday_invalid'];
}
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
# this is a partial match
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql
#
#-----[ İÇİNDE BUL ]----------------------------------
#
, user_icq = '" . str_replace("\'", "''", $icq) . "'
#
#-----[ İÇİNDE BULDUĞUNUN ÖNCESİNE EKLE ]---------------------------
#
, user_birthday = " . sprintf('%02d%02d%04d',$bday_month,$bday_day,$bday_year) . "
#
#-----[ BUL ]------------------------------------------
#
$icq = $this_userdata['user_icq'];
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
preg_match('/(..)(..)(....)/', sprintf('%08d',$this_userdata['user_birthday']), $bday_parts);
$bday_month = $bday_parts[1];
$bday_day = $bday_parts[2];
$bday_year = $bday_parts[3];
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
#
$s_hidden_fields .= '<input> $website,
#
#-----[ SONRASINA, EKLE ]------------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
'BDAY_MONTH' => ($bday_month != 0) ? $bday_month : $lang['Default_Month'],
'BDAY_DAY' => ($bday_day != 0) ? $bday_day : $lang['Default_Day'],
'BDAY_YEAR' => ($bday_year != 0) ? $bday_year : $lang['Default_Year'],
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
#
'LANGUAGE_SELECT' => language_select($user_lang, 'language', '../language'),
#
#-----[ SONRASINA, EKLE ]------------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
'BIRTHMONTH_SELECT' => bday_month_select($bday_month, 'bday_month'),
'BIRTHDAY_SELECT' => bday_day_select($bday_day, 'bday_day'),
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
#
'L_ICQ_NUMBER' => $lang['ICQ'],
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
'L_CLEAR' => $lang['Clear'],
'L_BIRTHDAY' => $lang['Birthday'],
'L_MONTH' => $lang['Month'],
'L_DAY' => $lang['Day'],
'L_YEAR' => ( $board_config['bday_year'] ) ? $lang['Year'] : $lang['Year_Optional'],
'L_OPTIONAL' => ( $board_config['bday_year'] ) ? '' : $lang['Optional'],
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
#
'S_PROFILE_ACTION' => append_sid("admin_users.$phpEx"))
);
#
#-----[ SONRASINA, EKLE ]------------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
$template->set_filenames(array(
'birthday_interface' => 'birthday_interface.tpl')
);
$template->assign_var_from_handle('BIRTHDAY_INTERFACE', 'birthday_interface');
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
#
if( $board_config['allow_avatar_remote'] == TRUE )
{
$template->assign_block_vars('avatar_remote_link', array() );
}
#
#-----[ SONRASINA, EKLE ]------------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
$block = ( $board_config['bday_require'] == TRUE ) ? 'birthday_required' : 'birthday_optional';
$template->assign_block_vars($block, array());
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ AÇ ]------------------------------------------
#
modules/Forums/templates/subSilver/admin/user_edit_body.tpl
#
#-----[ BUL ]------------------------------------------
#
<tr>
<td><span>{L_NEW_PASSWORD}: *</span><br>
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
<BEGIN>
<tr>
<td><span>{L_BIRTHDAY}: *</span></td>
<td>{BIRTHDAY_INTERFACE}</td>
</tr>
<END>
#
#-----[ BUL ]------------------------------------------
#
<END>
#
#-----[ SONRASINA, EKLE ]-----------------------------------
#
<BEGIN>
<tr>
<td><span>{L_BIRTHDAY}:</span></td>
<td>{BIRTHDAY_INTERFACE}</td>
</tr>
<END>
#
# the following edits are what makes the age appear on the main page
#-----[ AÇ ]------------------------------------------
#
modules/Forums/index.php
#
#-----[ FIND AND REMOVE ]------------------------------------------
#
if(!($forum_moderators = cache::array_load('forum_moderators', 'config'))) {
#
#-----[ FIND AND REMOVE ]------------------------------------------
#
cache::array_save('forum_moderators', 'config', $forum_moderators);
}
#
#-----[ BUL ]------------------------------------------
#
while( $row = $db->sql_fetchrow($result) )
{
$forum_moderators[$row['forum_id']][] = '<a href="' . append_sid(" POST_GROUPS_URL=" . $row['group_id']) . '">' . GroupColor($row['group_name']) . '</a>';
}
$db->sql_freeresult($result);
#
#-----[ SONRASINA, EKLE ]------------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
$sql = "SELECT user_id, username, user_birthday, user_level
FROM " . USERS_TABLE . "
WHERE user_birthday >= " . gmdate('md0000',time() + (3600 * $board_config['board_timezone'])) . "
AND user_birthday <gmdate>sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query members birthday information', '', __LINE__, __FILE__, $sql);
}
$user_birthdays = array();
while ( $row = $db->sql_fetchrow($result) )
{
$bday_year = $row['user_birthday'] % 10000;
$age = ( $bday_year ) ? ' ('.(gmdate('Y')-$bday_year).')' : '';
$color = '';
$user_birthdays[] = '<a href="' . append_sid(" POST_USERS_URL=" . $row['user_id']) . '">' . UsernameColor($row['username']) . '</a>' . $age;
}
$db->sql_freeresult($result);
$birthdays = (!empty($user_birthdays)) ?
sprintf($lang['Congratulations'],implode(', ',$user_birthdays)) :
$lang['No_birthdays'];
if ( $board_config['bday_lookahead'] != -1 )
{
$start = gmdate('md9999',strtotime('+'.$board_config['bday_lookahead'].' day') + (3600 * $board_config['board_timezone']));
$end = gmdate('md0000',strtotime('+1 day') + (3600 * $board_config['board_timezone']));
$operator = ($start > $end) ? 'AND' : 'OR';
$sql = "SELECT user_id, username, user_birthday, user_level
FROM " . USERS_TABLE . "
WHERE (user_birthday <start>= $end)
AND user_birthday <> 0";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query upcoming birthday information', '', __LINE__, __FILE__, $sql);
}
$upcoming_birthdays = array();
while ( $row = $db->sql_fetchrow($result) )
{
$bday_year = $row['user_birthday'] % 10000;
$age = ( $bday_year ) ? ' ('.(gmdate('Y')-$bday_year).')' : '';
$upcoming_birthdays[] = '<a href="' . append_sid(" POST_USERS_URL=" . $row['user_id']) . '">' . UsernameColor($row['username']) . '</a>' . $age;
}
$upcoming = (!empty($upcoming_birthdays)) ?
sprintf($lang['Upcoming_birthdays'],$board_config['bday_lookahead'],implode(', ',$upcoming_birthdays)) :
sprintf($lang['No_upcoming'],$board_config['bday_lookahead']);
}
if ( !empty($user_birthdays) || !empty($upcoming_birthdays) || $board_config['bday_show'] )
{
$template->assign_block_vars('birthdays',array());
if ( !empty($upcoming_birthdays) || $board_config['bday_show'] )
{
$template->assign_block_vars('birthdays.upcoming',array());
}
}
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
#
'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid(">', $newest_user, '</a>'),
#
#-----[ SONRASINA, EKLE ]------------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
'BIRTHDAYS' => $birthdays,
'UPCOMING' => $upcoming,
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
#
'L_FORUM' => $lang['Forum'],
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
'L_TODAYS_BIRTHDAYS' => $lang['Todays_Birthdays'],
'L_VIEW_BIRTHDAYS' => $lang['View_Birthdays'],
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ AÇ ]------------------------------------------
#
themes/YOUR_THEME/forums/index_body.tpl
#
#-----[ BUL ]------------------------------------------
#
<tr>
<td><span>{TOTAL_USERS_ONLINE} <br>
<BEGIN>
{colors.GROUPS}
<END>
<br>{RECORD_USERS}<br>{LOGGED_IN_USER_LIST}</span></td>
</tr>
#
#-----[ SONRASINA, EKLE ]------------------------------------
#
<BEGIN>
<tr>
<td><span>{L_TODAYS_BIRTHDAYS}</span></td>
</tr>
<tr>
<td><img src="modules/Forums/templates/subSilver/images/icon_birthday.gif" alt="{L_VIEW_BIRTHDAYS}" /></td>
<td>
<span>{BIRTHDAYS}
<BEGIN>
<br>{UPCOMING}
<END>
</span>
</td>
</tr>
<END>
#
#-----[ AÇ ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ BUL ]------------------------------------------
#
if ( !empty($profiledata['user_icq']) )
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
$birthday = ' ';
if ( !empty($profiledata['user_birthday']) )
{
preg_match('/(..)(..)(....)/', sprintf('%08d',$profiledata['user_birthday']), $bday_parts);
$bday_month = $bday_parts[1];
$bday_day = $bday_parts[2];
$bday_year = $bday_parts[3];
// the next line converts $lang['DATE_FORMAT'] to something that'll work with years, as this MOD encodes them. ', Y' is replaced with '' when the year isn't specified to account
// for date formats that would result in strings like 'October 31, 2005'
$birthday_format = ($bday_year != 0) ? str_replace(array('y','Y'),array($bday_year % 100,$bday_year),$lang['DATE_FORMAT']) : str_replace(array(', Y','y','Y'),'',$lang['DATE_FORMAT']);
$birthday = create_date($birthday_format, gmmktime(0,0,0,$bday_month,$bday_day), 0);
}
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
#
'LOCATION' => ( $profiledata['user_from'] ) ? $profiledata['user_from'] : ' ',
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
'BIRTHDAY' => $birthday,
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ BUL ]------------------------------------------
#
'L_LOCATION' => $lang['Location'],
#
#-----[ ÖNCESİNE, EKLE ]-----------------------------------
#
/*****[BEGIN]******************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
'L_BIRTHDAY' => $lang['Birthday'],
/*****[END]********************************************
[ Mod: Birthdays v2.0.0 ]
******************************************************/
#
#-----[ AÇ ]------------------------------------------
#
themes/YOUR_THEME/forums/profile_view_body.tpl
#
#-----[ BUL ]------------------------------------------
#
<tr>
<td><span>{L_INTERESTS}:</span></td>
<td> <b><span>{INTERESTS}</span></b></td>
</tr>
#
#-----[ SONRASINA, EKLE ]------------------------------------
#
<tr>
<td><span>{L_BIRTHDAY}:</span></td>
<td> <b><span>{BIRTHDAY}</span></b></td>
</tr>
#
# EoM
# Herhangi bir mod kurarsanız, kurulumdan hemen sonra Cache belleği temizlemeyi unutmayın.
birde burada
Kod:
Herhangi bir mod kurarsanız, kurulumdan hemen sonra Cache belleği temizlemeyi unutmayın.
diyor cache temizleme nedir ?
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-06-15, 20:53:28 Mesaj konusu: Forum Arası Reklamlar
Başa dön
hakan Editör
Kayıt: Aug 12, 2005 Mesajlar: 1619 Konum: Tokat
Tarih: 2008-10-30, 21:36:33 Mesaj konusu:
bu eklenti bu şekilde çalışıyor zaten, avatar altında üye yaşı çıkıyor yani
Başa dön
Serkancinar Mesaj: 200+
Kayıt: Sep 13, 2008 Mesajlar: 213
Tarih: 2008-10-30, 21:40:40 Mesaj konusu:
hakan tekrar bi bakar mısın çünkü eklenti gayet normal çalışırken avatar altında yaş çıkmıyor subsilver temasını kullanmıyorum ondan mıdır ?
Başa dön
hakan Editör
Kayıt: Aug 12, 2005 Mesajlar: 1619 Konum: Tokat
Tarih: 2008-10-30, 21:42:07 Mesaj konusu:
evet kullandığın temanın içindeki forums klasöründeki ilgili dosyaları düzenleyeceksin
Başa dön
Serkancinar Mesaj: 200+
Kayıt: Sep 13, 2008 Mesajlar: 213
Tarih: 2008-10-30, 21:59:33 Mesaj konusu:
kurulumda benim tema ile ilgili
themes/YOUR_THEME/forums/profile_view_body.tpl
modules/Forums/templates/subSilver/admin/user_edit_body.tpl
themes/YOUR_THEME/forums/profile_add_body.tpl
buraları vermiş , ben avatarın altında görünmesini için viectopic.php ve viewtopic_body.tpl dosyalarının düzenleneceğini düşünüyorum çünkü takım eklentisi , ruh halinde felanda ek olarak buraları düzenlemiştim ama bunda öyle birşey yok
Başa dön
hakan Editör
Kayıt: Aug 12, 2005 Mesajlar: 1619 Konum: Tokat
Tarih: 2008-10-30, 22:05:31 Mesaj konusu:
## Düzenlenecek Dosya: 18
## modules/Forums/index.php
## modules/Forums/viewtopic.php
## modules/Forums/admin/admin_board.php
## modules/Forums/admin/admin_users.php
## includes/functions.php
## includes/page_header.php
## includes/usercp_avatar.php
## includes/usercp_register.php
## includes/usercp_viewprofile.php
## modules/Forums/language/lang_turkish/lang_admin.php
## modules/Forums/language/lang_turkish/lang_main.php
## themes/Senin_Theme/forums/index_body.tpl
## themes/Senin_Theme/forums/overall_header.tpl
## themes/Senin_Theme/forums/profile_add_body.tpl
## themes/Senin_Theme/forums/profile_view_body.tpl
## themes/Senin_Theme/forums/viewtopic_body.tpl
## modules/Forums/templates/subSilver/admin/board_config_body.tpl
## modules/Forums/templates/subSilver/admin/user_edit_body.tpl
bunların hepsini düzenledin mi?
Başa dön
Serkancinar Mesaj: 200+
Kayıt: Sep 13, 2008 Mesajlar: 213
Tarih: 2008-10-30, 22:10:53 Mesaj konusu:
sadece
## Düzenlenecek Dosyalar: 12
## modules/Forums/language/lang_english/lang_main.php
## modules/Forums/language/lang_english/lang_admin.php
## includes/functions_selects.php
## includes/usercp_register.php
## includes/usercp_avatar.php
## themes/YOUR_THEME/forums/profile_add_body.tpl
## modules/Forums/admin/admin_users.php
## modules/Forums/templates/subSilver/admin/user_edit_body.tpl
## modules/Forums/index.php
## themes/YOUR_THEME/forums/index_body.tpl
## includes/usercp_viewprofile.php
## themes/YOUR_THEME/forums/profile_view_body.tpl
bunları düzenledim bunlar yazıyodu çünkü napıcam şimdi
Başa dön
hakan Editör
Kayıt: Aug 12, 2005 Mesajlar: 1619 Konum: Tokat
Tarih: 2008-10-30, 22:13:06 Mesaj konusu:
nerden aldın sendeki eklentiyi ?
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-06-15, 20:53:28 Mesaj konusu: Forum Arası Reklamlar
Başa dön
Serkancinar Mesaj: 200+
Kayıt: Sep 13, 2008 Mesajlar: 213
Başa dön
hakan Editör
Kayıt: Aug 12, 2005 Mesajlar: 1619 Konum: Tokat
Tarih: 2008-10-30, 22:23:02 Mesaj konusu:
bilmediğim bir yer, bu eklenti netopsiyonda mevcut onu kurarsan sorun çıkmayacaktır, bizim kullanığımız da netopsiyon dosyalardaki olan
iyi çalışmalar
Başa dön
Serkancinar Mesaj: 200+
Kayıt: Sep 13, 2008 Mesajlar: 213
Tarih: 2008-10-30, 22:28:37 Mesaj konusu:
dosyalarda yok hakan daha öncede bakmıştım link verir misin
Başa dön
Bankocu Editör
Kayıt: Jun 02, 2003 Mesajlar: 1842 Konum: Istanbul
Tarih: 2008-10-30, 22:39:44 Mesaj konusu:
Yukarıda bahsedilen yer benim Nuke dosyaları için oluşturduğum SubVersiyon deposu.
O dosyayı oraya koyan da benim.
Yapmaya çalıştığınız şey çok da zor olmasa gerek.
Ben vakit bulup bendekine eklersem, sizinle de paylaşırım.
Doğum Gününü,
http://www.alperbalci.com/Zor-Birthday.html
adresinden kaydetmemiş üyelerin doğum günü ya da yaşı 0 çıkacak haliyle.
Başa dön
hakan Editör
Kayıt: Aug 12, 2005 Mesajlar: 1619 Konum: Tokat
Tarih: 2008-10-30, 22:41:46 Mesaj konusu:
pardon alper abi, haberim yoktu sana ait olduğundan kusura bakma, ben arkadaşa gönderdim gerekli dosyayı, senin eklemiş olduğunu hiç denemediğim için bilmiyorum nasıl bir şey olduğunu
Başa dön
Serkancinar Mesaj: 200+
Kayıt: Sep 13, 2008 Mesajlar: 213
Tarih: 2008-10-30, 22:43:09 Mesaj konusu:
sağolun hocam hakan verdi , nuke deposu için tekrar teşekkür ederim
Başa dön
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız