gereksiz karakterlerden kurtuluyorsunuz

Phpbb gereksiz karakterlerden kurtuluyorsunuz CMS - içerik yönetim hakkında bilgi paylaş; Açıklama : bu mod sayesinde mesajlarda kullanılan gereksiz karakterlerden kurtuluyorsunuz. örneğin mesajda "seni seviyorum!!!!!!!!" yazıyorsa ...
Cevapla
 
Seçenekler
  #1  
Arama 04-11-2007, 01:45
kadınca - ait Kullanıcı Resmi (Avatar)

Üyelik Tarihi: 28/08/07
Mesajlar: 6.564
 
     WS-Ticareti: (1)
Blog Yazıları: 2
Teşekkürleri: 34
262 Msg. 433 Tşkr.
Rep Gücü: 100 kadınca has a reputation beyond reputekadınca has a reputation beyond reputekadınca has a reputation beyond reputekadınca has a reputation beyond reputekadınca has a reputation beyond reputekadınca has a reputation beyond reputekadınca has a reputation beyond reputekadınca has a reputation beyond reputekadınca has a reputation beyond reputekadınca has a reputation beyond reputekadınca has a reputation beyond repute

gereksiz karakterlerden kurtuluyorsunuz

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

Kod:
################################################## ############ ## MOD Title: Exclamation point in message ## MOD Author: Underhill < > (N/A) ## 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: GNU General Public License v2 ################################################## ############ ## For security purposes, please check: ## 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 ################################################## ############ ## Author Notes: ## ## Tip: Use PHP to make you own replacements ## Tips-Download: ## ## Download: ################################################## ############ ## 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

__________________
__________________
konularımı ç-alırken lütfen altına nikimi yazarak alınız.yoksa eklediğiniz sitede deşifre edilirsiniz
Alıntı ile Cevapla
Cevapla


Seçenekler


Benzer Konular
Konu Konu Açanlar Forum Cevaplar Güncel Mesajlar
Dünyanın en gereksiz 20 aleti egitimbilgisi Haberler 0 06-05-2008 05:31

Siteye link vermek için alttaki kodu sitenize ekleyin
Ya da kodu Ctrl+C ile kopyalayın
Örnek görünüm: Webmaster Sitesi