Paylaşım Sitesi  

Geri git   Paylaşım Sitesi > Webmaster & vBulletin > Hazır Sistemler > PhpBB
Kayıt ol Yardım Üye Listesi Ajanda Forumları Okundu Kabul Et

Tags:

Cevapla
 
LinkBack Seçenekler Stil
  #1 (permalink)  
Alt 06-25-2008, 12:11
By_OmeR - ait Kullanıcı Resmi (Avatar)
Administrator
 
Üyelik tarihi: Apr 2007
Yaş: 25
Mesajlar: 1.374
Tecrübe Puanı: 10000000
By_OmeR isimli üye Tecrübe puanını kapatmıştır.
By_OmeR - MSN üzeri Mesaj gönder
Standart phpBB Eklenti(Modifikasyon) Arşivi

Konuya yeni çıkan, gözüme hoş gözüken modları sürekli ekleyeceğim.

________________________________________

Açıklama: Son X saat içinde üye olanlar

Önemli Not: $users_list_delay = 24; bu değer 24 bunu kendinize göre ayarlayın.
PHP- Kodu:
########################################################  ## MOD Başlığı:  Son 48 saat içinde üye olanlar  ## MOD Versiyonu: 2.0  ## Yazar:     ZoZo <zozo@etoiles.net>  ## Türkçeleştirme: Boureaque (artiweb@hotmail.com) !www.**********.net!  ##  ## Açıklama:   ## Forum anasayfasındaki online kişiler bölümünün altında gözüken  ## son xx saatte siteye kaç kişinin girdiğini ve/veya kaç kişinin  ## girmediğini gösteren istatistik...  ##  ## Kurulum Seviyesi:  kolay  ## Kurulum Süresi:  2-3 dakika  ##  ## Düzeltilecek dosyalar:         4  ##                   - /templates/subSilver/index_body.tpl  ##                   - /language/lang_english/lang_main.php  ##                   - /language/lang_turkish/lang_main.php  ##                   - /includes/page_header.php  ##  ## Yeni eklenecek dosyalar:      -yok-  ##  ##############################################################  ## Bu eklentiyi forumunuza kurmadan önce lütfen güvenlik için tüm dosyalarınızı yedekleyin !  ##############################################################  ## Bu eklenti Boureaque (artiweb@hotmail.com) tarafından **********.net için Türkçeleştirilmiştir.  ##www.**********.net- phpBB Türkçe Destek  ##############################################################  #  #-----[ AÇIN ]---------------------------------  #  /templates/subSilver/index_body.tpl   #  #-----[ BULUN ]---------------------------------  #     <td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>   #  #-----[ BUNUNLA DEĞİŞTİRİN ]---------------------------  #     <td class="row1" align="center" valign="middle" rowspan="3"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>   #  #-----[ TEKRAR ŞUNU BULUN ]---------------------------------  #      <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>   #  #-----[ BİR ALT SATIRINA EKLEYİN ]----------------------------  #    </tr>    <tr>     <td class="row1" align="left"><span class="gensmall">{USERS_OF_THE_DAY_LIST}</span></td>   #  #-----[ AÇIN ]--------------------------------  #  /language/lang_english/lang_main.php   #  #-----[ BULUN ]--------------------------------  #  $lang['Registered_users'] =   #  #-----[ BİR ÜST SATIRINA EKLEYİN ]--------------------------  #  $lang['Day_users'] = '%d adet üye forumlarımızı son %d saat içinde ziyaret etti:';  $lang['Not_day_users'] = '%d adet üye forumlarımızı son %d içinde ziyaret <span style="color:red"> etmedi</span> :';  #  #-----[ AÇIN ]--------------------------------  #  /language/lang_turkish/lang_main.php   #  #-----[ BULUN ]--------------------------------  #  $lang['Registered_users'] =   #  #-----[ BİR ÜST SATIRINA EKLEYİN ]--------------------------  #  $lang['Day_users'] = '%d adet üye forumlarımızı son %d saat içinde ziyaret etti:';  $lang['Not_day_users'] = '%d adet üye forumlarımızı son %d içinde ziyaret <span style="color:red"> etmedi</span> :';  #  #-----[ AÇIN ]--------------------------------  #  /includes/page_header.php   #  #-----[ BULUN ]--------------------------------  #     'LOGGED_IN_USER_LIST' => $online_userlist,   #  #-----[ BİR ALT SATIRA EKLEYİN ]---------------------------  #     'USERS_OF_THE_DAY_LIST' => $day_userlist,   #  #-----[ BULUN ]--------------------------------  #  //  // Obtain number of new private messages  // if user is logged in  //   #  #-----[ BİR ÜST SATIRA EKLEYİN ]--------------------------  #  //  // Users of the day MOD  //   // ############ AYARLAR ############  // #  $display_not_day_userlist = 0;   // eğer siteyi ziyaret etmeyen kişilerin gözükmesini istiyorsanız bu seçeneği 1 yapın  $users_list_delay = 24;      // Sayılacak ziyaret eden kişilerin kaç saat içinde gözükeceği zaman  // #  // ############ AYARLAR BİTTİ ############   $sql = "SELECT user_id, username, user_allow_viewonline, user_level, user_session_time     FROM ".USERS_TABLE."     WHERE user_id > 0     ORDER BY user_level DESC, username ASC";  if( !($result = $db->sql_query($sql)) )  {     message_die(GENERAL_ERROR, 'Could not obtain user/day information', '', __LINE__, __FILE__, $sql);  }   $day_userlist = '';  $day_users = 0;  $not_day_userlist = '';  $not_day_users = 0;   while( $row = $db->sql_fetchrow($result) )  {     $style_color = '';     if ( $row['user_level'] == ADMIN )     {        $row['username'] = '<b>' . $row['username'] . '</b>';        $style_color = 'style="color:#' . $theme['fontcolor3'] . '"';     }     else if ( $row['user_level'] == MOD )     {        $row['username'] = '<b>' . $row['username'] . '</b>';        $style_color = 'style="color:#' . $theme['fontcolor2'] . '"';     }     if ( $row['user_allow_viewonline'] )     {        $user_day_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>';     }     else     {        $user_day_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>';     }     if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN )     {        if ( $row['user_session_time'] >= ( time() - $users_list_delay * 3600 ) )        {           $day_userlist .= ( $day_userlist != '' ) ? ', ' . $user_day_link : $user_day_link;           $day_users++;        }        else        {           $not_day_userlist .= ( $not_day_userlist != '' ) ? ', ' . $user_day_link : $user_day_link;           $not_day_users++;        }     }  }   $day_userlist = ( ( isset($forum_id) ) ? '' : sprintf($lang['Day_users'], $day_users, $users_list_delay) ) . ' ' . $day_userlist;   $not_day_userlist = ( ( isset($forum_id) ) ? '' : sprintf($lang['Not_day_users'], $not_day_users, $users_list_delay) ) . ' ' . $not_day_userlist;   if ( $display_not_day_userlist )  {     $day_userlist .= '<br />' . $not_day_userlist;  }   //  // End of MOD  //     #  #-----[ TÜM DOSYALARI KAYDEDİN VE KAPATIN ]----------------------  # 
Açıklama : bu mod sayesinde mesajlarda kullanılan gereksiz karakterlerden kurtuluyorsunuz. örneğin mesajda "seni seviyorum!!!!!!!!" yazıyorsa bu mod onu "seni seviyorum!" şeklinde düzeltir. değiştirdiği karakterleri kodlardan ayarlayabilirsiniz
PHP- Kodu:
##############################################################  ## MOD Title: Exclamation point in message  ## MOD Author: Underhill < webmaster@underhill.de > (N/A) http://www.underhill.de/  ## MOD Description: Delete uneeded exclamation points from the message body.  ##      "Question!!!!!!" will be changed to "Question!" or "Who can help??????" will be changed to "Who can help?"  ## MOD Version: 1.4.6  ##  ## Installation Level: easy  ## Installation Time: 5 minutes  ## Files To Edit:  ##      includes/functions_post.php  ## Included Files: N/A  ## License: http://opensource.org/licenses/gpl-license.php GNU General 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/  ##############################################################  ## Author Notes:  ##  ## Tip: Use PHP to make you own replacements  ## Tips-Download: http://www.underhill.de/downloads/phpbb2mods/exclamationpointinmessagetips.txt  ##  ## Download: http://www.underhill.de/downloads/phpbb2mods/exclamationpointinmessage.txt  ##############################################################  ## MOD History:  ##  ##   2006-12-31 - Version 1.4.6  ##      - Successfully tested with phpBB 2.0.22  ##  ##   2006-06-11 - Version 1.4.5  ##      - Successfully tested with phpBB 2.0.21  ##  ##   2006-04-08 - Version 1.4.4  ##      - Successfully tested with phpBB 2.0.20  ##      - Successfully tested with EasyMOD beta (0.3.0)  ##  ##   2005-12-31 - Version 1.4.3  ##      - Successfully tested with phpBB 2.0.19  ##  ##   2005-12-11 - Version 1.4.2  ##      - MOD Syntax changes for the phpBB MOD Database  ##      - Successfully tested with phpBB 2.0.18  ##  ##   2005-10-03 - Version 1.4.1  ##      - MOD Syntax changes for the phpBB MOD Database  ##  ##   2005-10-01 - Version 1.4.0  ##      - Format changed to the phpBB MOD Template  ##      - Successfully tested with phpBB 2.0.17  ##  ##   2003-11-20 - Version 1.0.0  ##      - Built and successfully tested with phpBB 2.0.6  ##  ##############################################################  ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD  ##############################################################   #  #-----[ OPEN ]------------------------------------------------------------------  #   includes/functions_post.php   #  #-----[ FIND ]------------------------------------------------------------------  #      $message = trim($message);   #  #-----[ AFTER, ADD ]------------------------------------------------------------  #      //     // Exclamation point in message     //     if (preg_match("/([\!\?\.])+/", $message))     {        $message_array = preg_split("/\n/", $message);        for ($x = 0; $x < count($message_array); $x++)        {           if (!preg_match("/\[.*\//", $message_array[$x])) // Ignore BBCode...           {              $message_array[$x] = preg_replace("/([\!])+/", "\\1", $message_array[$x]);              $message_array[$x] = preg_replace("/([\?])+/", "\\1", $message_array[$x]);              $message_array[$x] = preg_replace("/([\.])+/", "\\1", $message_array[$x]);           }           $message = implode("\n", $message_array);        }     }   #  #-----[ SAVE/CLOSE ALL FILES ]--------------------------------------------------  #  # EoM 
Açıklama : yeni kullanılabilen domain isimleriyle(mesela içinde ü ö ı gibi karakter geçen domain isimleri: onurselek@öşğiü.com) eposta adresi kullanılabilir.

Tam türkçe karakter uyumlu hali benim tarafımdan yapılmıştır.
PHP- Kodu:
##############################################################  ## MOD Başlık: Email adresses with umlauts  ## MOD Yazar: Underhill < webmaster@underhill.de > (N/A) http://www.underhill.de/  ## MOD Açıklama: Allows the use of umlauts in email adresses in new IDN-Domains (example: peter@müller.de)  ##  ## MOD Açıklama Türkçe: E-mail adresinde türkçe karakterlerin kullanılması (örnek: onurselek@öçşiğü.com)  ## MOD Eklenti: Onur SELEK < likeliness@gmail.com > Tam türkçe karakter eklentisi trafımdan yapılmıştır.  ##  ## MOD Sürüm: 1.3.6  ##  ## Kurulum zorluğu: kolay  ## Kurulum süresi: 5 dakika  ## Düzenlenecek dosyalar:  ##      includes/functions_validate.php  ## Yüklenecek dosyalar: Yok  ## License: http://opensource.org/licenses/gpl-license.php GNU General 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/  ##############################################################  ## Yazar notları:  ##  ## This modification allows three additional german umlauts "ä", "ü" und "ö" in the email adress check function  ## There are many more special characters (example: 203 for .com-Domains) allowed  ## "ä", "ü" und "ö" are the allowed special characters for use in .info-Domain and are suitable for use in Germany  ## See also http://www.iana.org/assignments/idn/info-german.html  ##  ## Screenshot: http://www.underhill.de/downloads/phpbb2mods/emailadresseswithumlauts.png  ## Download: http://www.underhill.de/downloads/phpbb2mods/emailadresseswithumlauts.txt  ##############################################################  ## MOD Geçmişi:  ##  ##   2006-12-31 - Sürüm 1.3.6  ##      - Successfully tested with phpBB 2.0.22  ##  ##   2006-06-11 - Sürüm 1.3.5  ##      - Successfully tested with phpBB 2.0.21  ##  ##   2006-04-08 - Sürüm 1.3.4  ##      - Successfully tested with phpBB 2.0.20  ##      - Successfully tested with EasyMOD beta (0.3.0)  ##  ##   2005-12-31 - Sürüm 1.3.3  ##      - Successfully tested with phpBB 2.0.19  ##  ##   2005-12-11 - Sürüm 1.3.2  ##      - MOD Syntax changes for the phpBB MOD Database  ##      - Successfully tested with phpBB 2.0.18  ##  ##   2005-10-03 - Sürüm 1.3.1  ##      - MOD Syntax changes for the phpBB MOD Database  ##  ##   2005-10-01 - Sürüm 1.3.0  ##      - Format changed to the phpBB MOD Template  ##      - Successfully tested with phpBB 2.0.17  ##  ##   2004-03-06 - Sürüm 1.0.0  ##      - Built and successfully tested with phpBB 2.0.7  ##  ##############################################################  ## Bu modu eklemeden önce lütfen dosyaların yedeğini alınız.  ##############################################################   #  #-----[ AÇ ]------------------------------------------------------------------  #   includes/functions_validate.php   #  #-----[ BUL ]------------------------------------------------------------------  #         if (preg_match('/^[a-z0-9&'.'-_'+]+@[a-z0-9'-]+'.([a-z0-9'-]+'.)*?[a-z]+$/is', $email))   #  #-----[ SATIR İÇİNDE BUL ]----------------------------------------------------------  #   +@[a-z0-9'-   #  #-----[ SATIR İÇİNDE, SONRASINA EKLE ]----------------------------------------------------  #   äöüçşığ   #  #-----[ SATIR İÇİNDE BUL ]----------------------------------------------------------  #   +'.([a-z0-9'-   #  #-----[ SATIR İÇİNDE, SONRASINA EKLE ]----------------------------------------------------  #   äöüçşığ   #  #-----[ TÜM DOSYALARI KAYDET/KAPAT ]--------------------------------------------------  #  # Eklentinin Sonu  #  ## Kaynağın Türkçe Çevirisinde DMRY Mod Çeviri aracı kullanılmıştır. Mod Çeviricisi  ## için http://www.dmry.net/mod-ceviri  ##  ## UYARI: Kendi sitelerinizdeki tüm eklentilerin çevirisini bu adresten yapabilirsiniz. Fakat  ## kaynak tepesine eklediğimiz bu satırları lütfen emeğe saygı duyup silmeyiniz.  ##  ## Mod Çeviricisi : Hakan Demiray || www.dmry.net || hakan[@]dmry[.]net  ############################################################## 
Açıklama : yöneticiler bir rütbenin nasıl görüneceğini seçer, metin olarak, grafik olarak veya her ikiside.

Download : [Linkleri sadece üyelerimiz görebilir. Üye olmak için tıklayın...]
Türkçe Çeviri (Tarafımdan Yapılmıştır):

'Rank_display_title' => 'Görünüm Biçimi',
'Rank_display_both' => 'Her ikisi de',
'Rank_display_text' => 'Sadece metin',
'Rank_display_img' => 'Sadece resim'

Açıklama : Ana sayfada hızlı kayıt sistemi ekler. Misafirler ordan direk üye olabilirler.

PHP- Kodu:
#################################################################  ## Mod Title: Registration Form On Main Index  ## Mod Version: 1.0.0  ## Author: Brandons < Webmaster@DcTalkFans.com > - www.dctalkfans.com   ## Description: This Mod Allows You To Put A Registration form on the main index.php of your boards. OR it also allows you to put the registration form on any non-phpbb site of yours!    ##  ## Installation Level: easy  ## Installation Time: 2 minutes  ## Files To Edit: /templates/subsilver/index_body.tpl  ## Included Files: (NA)  #################################################################  ##  ## Author Note:   If Your putting this on a non-phpbb site then all you need to do to make this work is change the <form action ""> Path To Your Path To Your Phpbb2 Root Path   This Mod Has A Part of The Gender Mod In It. If You Don't Have The Gender Mod Then Simply Take Out That Part The <input> for it and the words "Your Gender". After That It'll Work Fine. You Can Replace That Empty Spot With Anything You'd Like.   Note That We Only Have The Required Fields. To Many Fields Can Deter People From Registering. That Is Why. So Somewhere You Must Tell Your Users They Can Edit Everything Else By Going To "Edit Profile"   #################################################################  ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD  #################################################################    #  #-----[ OPEN /templates/subsilver/index_body.tpl ]------------------------------------------  #   #  #-----[ FIND ]------------------------------------------  #     <!-- BEGIN switch_user_logged_out -->    <form method="post" action="{S_LOGIN_ACTION}">  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"><tr><td class="catHead" height="28"><a name="login"></a><  span class="cattitle">{L_LOGIN_LOGOUT}</span></td></tr><tr>        <td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:<input class="post" type="text" name="username" size="10" />&nbsp;&nbsp;&nbsp;{L_PASSWORD}:          <input class="post" type="password" name="password" size="10" />&nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN} <input class="text" type="checkbox" name="autologin" />&nbsp;&nbsp;&nbsp;<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></span></td></tr></table></form>       #  #-----[ AFTER, ADD ]------------------------------------------  #   <form method="post" action="profile.php">    <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">     <tr><td class="catHead" height="28" colspan="4">  <a href="http://t4cministries.com/php/boards/profile.php?mode=register&agreed=TRUE" class="nav"><span class="nav"><font color="006699">Register | Its Free</span></a>  </td></tr>    <tr colspan="4">   <td class="row1" width="25%"><span class="genmed">Pick A Username You Want: *</span></td><td class="row2" width=25%><input type="text" class="post" style="width:150px" name="username" size="25" maxlength="20" value="" /></td>       <td class="row1" width=25%><span class="genmed">Your Email Address: *</span></td>      <td class="row2"><input type="text" class="post" style="width:150px" name="email" size="25" maxlength="255" value="" /></td>   </TR><TR colspan="4">   <td class="row1" width=25%><span class="genmed">Choose A Password: *</span><br /><span class="gensmall"></span></td><td class="row2"><input type="password" class="post" style="width: 150px" name="new_password" size="25" maxlength="100" value="" /></td>      <td class="row1" width=25%><span class="genmed">Confirm Your Password: * </span>  <br /><span class="gensmall"></span></td><td class="row2" width=25%> <input type="password" class="post" style="width: 150px" name="password_confirm" size="25" maxlength="100" value="" /></td>    </tr><tr colspan="4">   <td class="row1"><span class="genmed" width=25%>Your Gender: *</span></td><td class="row2" width=25% div align=left><input type="hidden"  name="gender" value="0" checked="checked"/><div align=left><span class="gen"></span><input type="radio" name="gender" value="1" /><span class="genmed">Male</span>&nbsp;&nbsp;<input type="radio" name="gender" value="2" /><span class="genmed">Female</span></td>    <input type="hidden" name="viewemail" value="0" checked="checked" />  <input type="hidden" name="hideonline" value="0" checked="checked" />  <input type="hidden" name="notifyreply" value="0" checked="checked" />   <input type="hidden" name="notifypm" value="1" checked="checked" />   <input type="hidden" name="popup_pm" value="1" checked="checked" />       <input type="hidden" name="attachsig" value="1" checked="checked" />          <input type="hidden" name="allowbbcode" value="1" checked="checked" />   <input type="hidden" name="allowhtml" value="0" checked="checked" />     <input type="hidden" name="allowsmilies" value="1" checked="checked" />          <input type="hidden" name="dateformat" value="D M d, Y g:i a" maxlength="14" class="post" />      <td class="row1" width=25%><span class="genmed">Now Click Submit: *</span></td><td class="row2" colspan="1" align="left" height="28" width=25%><input type="hidden" name="mode" value="register" />   <input type="hidden" name="agreed" value="true" />  <input type="hidden" name="coppa" value="0" />   <input type="submit" name="submit" value="Submit" class="liteoption" />&nbsp;&nbsp;  <input type="reset" value="Reset" name="reset" class="liteoption" /></td>      </tr></form>  </table>        #  #-----[ SAVE AND CLOSE ALL FILES ]------------------------------------------  #   #EOF - Enjoy 
__________________
[Linkleri sadece üyelerimiz görebilir. Üye olmak için tıklayın...]


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Alıntı ile Cevapla
  #2 (permalink)  
Alt 06-25-2008, 12:12
By_OmeR - ait Kullanıcı Resmi (Avatar)
Administrator
 
Üyelik tarihi: Apr 2007
Yaş: 25
Mesajlar: 1.374
Tecrübe Puanı: 10000000
By_OmeR isimli üye Tecrübe puanını kapatmıştır.
By_OmeR - MSN üzeri Mesaj gönder
Standart Cevap: phpBB Eklenti(Modifikasyon) Arşivi

Açıklama : profil, eposta, msn vb butonları misafirlerden gizler
Eklenmiş Dosya
Dosya tipi: txt Hide Viewtopic Buttons.txt (11,4 KB (Kilobyte), 0x kez indirilmiştir)
__________________
[Linkleri sadece üyelerimiz görebilir. Üye olmak için tıklayın...]


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Alıntı ile Cevapla
  #3 (permalink)  
Alt 06-25-2008, 12:13
By_OmeR - ait Kullanıcı Resmi (Avatar)
Administrator
 
Üyelik tarihi: Apr 2007
Yaş: 25
Mesajlar: 1.374
Tecrübe Puanı: 10000000
By_OmeR isimli üye Tecrübe puanını kapatmıştır.
By_OmeR - MSN üzeri Mesaj gönder
Standart Açıklaması : Üye profiline bulunduğumuz ayda kaç mesaj gönderdiğini gösterir.

phpbb Color Groups , özel Mesajları Görebilme , Junior Admin Modlarını


PHP- Kodu:
################################################################# ## MOD Title: Posts this month (Viewprofile) ## MOD Version: 1.0.1 ## MOD Author: kkroo < princeomz2004@hotmail.com > ( Omar Ramadan ) http://phpbb-login.strangled.net ## MOD Author: Afterlife(69) < afterlife_69@hotmail.com > ( Dean Newman ) http://www.ugboards.com ## MOD Description: This modification will add a new section to  ##                    viewprofile showing how many posts you have done in the current month. ## ## Installation Level: Easy ## Installation Time: 2 Minutes ## Files To Edit:    includes/usercp_viewprofile.php ##                    templates/subSilver/profile_view_body.tpl ##                    language/lang_english/lang_main.php ## Included Files: N/A ## License: http://opensource.org/licenses/gpl-license.php GNU General 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/ ############################################################## ## Author Note: ##    Sure to be a favourite for your members. ############################################################## ## MOD History: ## ##    2006-9-07 - Version 1.0.1 ##    -    updated query to count posts for faster page load time. (pointed out by drathburn) ##  ##    2006-9-07 - Version 1.0.0 ##    -    Ready for mods db. ##  ##    2005-11-17 - Version 0.1.0 ##    -    Created first version. ##  ################################################################# ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD #################################################################  # #-----[ OPEN ]------------------------------------------ # includes/usercp_viewprofile.php  # #-----[ FIND ]------------------------------------------ # $temp_url = append_sid("privmsg.$phpEx?mode=post&amp;" . POST_USERS_URL . "=" . $profiledata['user_id']);  # #-----[ BEFORE, ADD ]------------------------------------------ # $current_time = time(); $this_months_posts = 0; $year = date('Y', $current_time); $month [0] = mktime (0,0,0,1,1, $year); $month [1] = $month [0] + 2678400; $month [2] = mktime (0,0,0,3,1, $year); $month [3] = $month [2] + 2678400; $month [4] = $month [3] + 2592000; $month [5] = $month [4] + 2678400; $month [6] = $month [5] + 2592000; $month [7] = $month [6] + 2678400; $month [8] = $month [7] + 2678400; $month [9] = $month [8] + 2592000; $month [10] = $month [9] + 2678400; $month [11] = $month [10] + 2592000; $month [12] = $month [11] + 2592000; $arr_num = ( date('n')-1 ); $time_thismonth = $month[$arr_num]; $sql = "SELECT count(post_id) as monthly_posts FROM " . POSTS_TABLE . " WHERE poster_id = {$profiledata['user_id']} AND post_time > '" . intval($time_thismonth) . "'"; if(! $result = $db->sql_query($sql) ) {     message_die(GENERAL_ERROR, 'Could not obtain last months postcount.', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $this_months_posts = $row['monthly_posts'];  $db->sql_freeresult($result);  # #-----[ FIND ]------------------------------------------ # 'POSTS' => $profiledata['user_posts'],  # #-----[ AFTER, ADD ]------------------------------------------ #     'POSTS_MONTH' => $this_months_posts,  # #-----[ FIND ]------------------------------------------ # 'L_TOTAL_POSTS' => $lang['Total_posts'],  # #-----[ AFTER, ADD ]------------------------------------------ #     'L_POSTS_MONTH' => $lang['Posts_month'],  # #-----[ OPEN ]------------------------------------------ # templates/subSilver/profile_view_body.tpl  # #-----[ FIND ]------------------------------------------ #           <td valign="top"><b><span class="gen">{POSTS}</span></b><br /><span class="genmed">[{POST_PERCENT_STATS} / {POST_DAY_STATS}]</span> <br /><span class="genmed"><a href="{U_SEARCH_USER}" class="genmed">{L_SEARCH_USER_POSTS}</a></span></td>         </tr>  # #-----[ AFTER, ADD ]------------------------------------------ #         <tr>            <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_POSTS_MONTH}:&nbsp;</span></td>           <td><b><span class="gen">{POSTS_MONTH}</span></b></td>         </tr>  # #-----[ OPEN ]------------------------------------------ # language/lang_english/lang_main.php  # #-----[ FIND ]------------------------------------------ # # Note this is a partial find, Full line: $lang['Search_user_posts'] = 'Find all posts by %s'; // Find all posts by username # $lang['Search_user_posts']  # #-----[ AFTER, ADD ]------------------------------------------ # $lang['Posts_month'] = 'Posts this month';  # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM 
__________________
[Linkleri sadece üyelerimiz görebilir. Üye olmak için tıklayın...]


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Alıntı ile Cevapla
  #4 (permalink)  
Alt 06-25-2008, 12:14
By_OmeR - ait Kullanıcı Resmi (Avatar)
Administrator
 
Üyelik tarihi: Apr 2007
Yaş: 25
Mesajlar: 1.374
Tecrübe Puanı: 10000000
By_OmeR isimli üye Tecrübe puanını kapatmıştır.
By_OmeR - MSN üzeri Mesaj gönder
Standart TSL Tuttuğunuz Takım [1.1]

TSL Tuttuğunuz Takım [1.1]

PHP- Kodu:
##############################################################  ## MOD İsmi: TSL Tuttuğunuz Takım  ## MOD Yazarı: alorak < the.alorak@gmail.com > (Ali Orhun Akkirman) http://www.phpbb4.net  ## MOD Açıklaması: 2006-2007 sezonu Türkiye Süper Ligi Takımlarından oluşan Tutulan takım  ## seçme modudur.Seçilen takım logosu Mesajlarda gözükecektir.  ## MOD Versiyon: 1.1  ##  ## Yükleme seviyesi: Normal  ## Yükleme süresi: 10 Dakika  ## Düzenlenen dosyalar:  ## memberlist.php  ## viewtopic.php  ## admin/admin_users.php  ## includes/constants.php  ## includes/usercp_avatar.php  ## includes/usercp_register.php  ## includes/usercp_viewprofile.php  ## language/lang_turkish/lang_main.php  ## language/lang_turkish/lang_admin.php  ## templates/temanız/viewtopic_body.tpl  ## templates/temanız/profile_add_body.tpl  ## templates/temanız/memberlist_body.tpl  ## templates/temanız/admin/user_edit_body.tpl  ## Eklenen Dosyalar:  ## 19 .gif dosyası  ## admin_logo.php  ## logo_list_body.tpl  ## logo_edit_body.tpl  ## logo.sql  ## yukleme.mod  ##############################################################  ## Yazar Notu:  ## Nuttzy'ın Country Flag Mod 2.2.0 modu düzenlenmiştir.  ##############################################################  ## Yüklemeye başlamadan önce Tüm yedeklerinizi bir kere daha alınız..  ############################################################## 
[Linkleri sadece üyelerimiz görebilir. Üye olmak için tıklayın...]
__________________
[Linkleri sadece üyelerimiz görebilir. Üye olmak için tıklayın...]


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Alıntı ile Cevapla
Cevapla



Seçenekler
Stil

Yetkileriniz
Yeni Mesaj yazma yetkiniz aktif değil dir.
Mesajlara Cevap verme yetkiniz aktif değil dir.
Eklenti ekleme yetkiniz aktif değil dir.
Kendi Mesajınızı değiştirme yetkiniz aktif değil dir.

Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Açık
Pingbacks are Kapalı
Refbacks are Açık


Style Webmasteriz
Powered by vBulletin® ~ Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0