Pagina 1 van 1

Disable All CAPS MOD

Geplaatst: 18 jan 2005, 01:12
door Hacktor
##############################################################
## MOD Title: Disable All CAPS MOD
## MOD Author: morpheus2matrix < morpheus@2037.biz > (Morpheus) http://morpheus.2037.biz
## MOD Description: This MOD will allow you to disable all the CAPS in a message
## MOD Version: 1.0.0
## Compatibility: 2.0.6
##
## Installation Level: Easy
## Installation Time: 1 Minutes
## Files To Edit: 1
## includes/functions_post.php
##
## Included Files: N/A
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ 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/
##############################################################
## Author Notes:
##
## A good addition should be to check if we are after a dot
## Maybe in a next version ;-)
##
##############################################################
## MOD History:
##
## 2003-11-22 - Version 1.0.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_post.php

#
#-----[ FIND ]------------------------------------------------
#
//
// Clean up the message
//
$message = trim($message);

#
#-----[ AFTER, ADD ]------------------------------------------
#

$message = strtolower($message);

$first_space = '';
$first_word = '';
$first_space = strpos($message, ' ');

$first_word = substr($message, 0, $first_space - 1);

$message = str_replace($first_word, ucfirst($first_word), $message);

#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------
#
# EoM
Zo moet het bericht zijn:
Ik type dit en nog een keer. Maar dit maakt ie ervan? Klopt niets van. Waardoor komt dit? Wie-o-wie?

Maar het resultaat is met deze mod:
Ik type dIt en nog een keer. maar dIt maakt Ie ervan? klopt nIets van. waardoor komt dIt? wIe-o-wIe?

:shock:

Geplaatst: 25 jan 2005, 12:09
door Cheeta
ik vermoed dat die de eerste letter wel toestaat als hoofdletter post nog eens iets en begin dan is met Ab test afstand bv

Geplaatst: 25 jan 2005, 12:21
door Hacktor
Klopt. Van de Eerste letter maakt ie een Hoofdletter en naar repeteert ie diezelfde letter nogmaals in het bericht.

(Gaat om de H) :?

Hij die groot is en Hij die kan lacHen is Hij die kan Huilen.

????