[rootturkhacks.com~]
duyuru LiNK KISALTMAK / TEMA VEYA SCRiPT iSTEĞiNDE BULUNMAK YASAKTIR!
duyuru GiZLi iÇERiKLERE "asdafsdfsdf" TARZI YORUM YAPMAK BAN SEBEBIDIR !
hack forum

[MOD] Otomatik başlık / Automatic Subject on Reply v1.0.0

#1
Kod:
##############################################################
## MOD Title: Automatic Subject on Reply
## MOD Author: drathbun < [email protected] > (Dave Rathbun)
## MOD Description: Simple mod to add a default subject on all post replies
## MOD Version: 1.0.0
##
## Installation Level: easy
## Installation Time: 1 Minutes
## Files To Edit: posting.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes:
## This very simple mod provides a default subject on all post replies
## It essentially duplicates the "Quote" function of a default subject.
## 2.0.4 compatible as written
## Installation Notes
## The "After, Add" operation is used in the mod notes because that's one of the
## available options. However, what you can really do is replace the line:
## $subject = '';
## with the "After, Add" code. The code will work if installed per these
## instructions, so it should be compatible with any automatic mod installers.
## But the reason for the mod instructions being written the way they are is
## there are two instances of the line
##
## $subject = '';
##
## in the code. I had to provide enough lines to be specific.
##
## 2.0.3 compatible with one additional edit, detailed here. You have to add the
## topic_title to the sql that retrieves the post info. In 2.0.4 this change has
## already been made, and therefore is not included in the standard mod install
## operations.
##
## OPEN posting.php
## FIND $sql = "SELECT f.*, t.topic_status
## IN-LINE AFTER, ADD , t.topic_title
##
## No language entries or template changes are required for this very simple mod.
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ AÇ ]------------------------------------------
#
posting.php

#
#-----[ BUL ]------------------------------------------
#
       else if ( $mode == 'reply' )
       {
               $user_sig = ( $userdata['user_sig'] != '' ) ? $userdata['user_sig'] : '';

               $username = ( $userdata['session_logged_in'] ) ? $userdata['username'] : '';
               $subject = '';

#
#-----[ SONRASINA EKLE ]------------------------------------------
#
               // begin Automatic Subject on Reply mod
               $subject = $post_info['topic_title'];
               if ( !preg_match('/^Re:/', $subject) && strlen($subject) > 0)
               {
                       $subject = 'Re: ' . $subject;
               }
               // end Automatic Subject on Reply mod


#
#-----[ DOSYAYI KAYDET/KAPAT ]------------------------------------------
#
# EoM
imza
Eski Kurt
Alıntı
#2
Teşekkürler
imza
Alıntı


Benzer Konular...
Konu: Yazar Cevaplar: Gösterim: Son Mesaj
  [MOd] Watched Topics List / Profilde İzlenen Başlık Listesi MiRaT 1 528 11-04-2018, 06:29 PM
Son Mesaj: SurHan
  [mod] Personal Topic - Kişisel Başlık MiRaT 0 344 01-28-2018, 09:10 PM
Son Mesaj: MiRaT
  [MOD]PM Quick Reply/Özel Mesaj'da Hızlı Cevap MiRaT 0 336 01-28-2018, 09:03 PM
Son Mesaj: MiRaT



Bu konuyu görüntüleyen kullanıcı(lar): 1 Ziyaretçi
brazzers premium accounts izmit escort porno beylikdüzü escort avcılar escort porno cami halısı vdcasino vdcasino giriş ilbet casino siteleri taraftarium24 ilbet giriş kurtköy escort izmir escort izmir escort izmir escort