The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Case-Insensitive Smilies.
I imagine this is a fairly easy modification to write, i'm guessing perhaps adding a strtoupper or lower or something somewhere.
What I want to do is make a "catch-all" for my smilies, whereby typing the smilie code in any case will make it work. At the moment only lower case works. I don't want to have to create duplicates of each of my smilies just to get upper case to work as well. Is this possible? I'm using vb 3.0.7. |
#2
|
||||
|
||||
Well this is a minor edit, shouldn't cause any problems from what i can see, open includes/functions_bbcodeparse.php
Find: Code:
$bbcode = preg_replace('#(?<!&|"|<|>|©)' . preg_quote($smiliefind, '#') . '#s', $smilie_replace["$smiliekey"], $bbcode); Code:
$bbcode = preg_replace('#(?<!&|"|<|>|©)' . preg_quote($smiliefind, '#') . '#is', $smilie_replace["$smiliekey"], $bbcode); - Zero Tolerance |
#3
|
|||
|
|||
Works perfectly.
Cheers. |
#4
|
||||
|
||||
is there a similar change that can be made for 3.5?
|
#5
|
|||
|
|||
Bump.
Anyone know how to do this in 3.6? |
#6
|
||||
|
||||
I wonder...
At least for 3.6.0 in /includes/class_bbcode.php find: Code:
$text = preg_replace('/(?<!&|"|<|>|©|&#[0-9]{1}|&#[0-9]{2}|&#[0-9]{3}|&#[0-9]{4}|&#[0-9]{5})' . preg_quote($find, '/') . '/s', $replace, $text); Code:
$text = preg_replace('/(?<!&|"|<|>|©|&#[0-9]{1}|&#[0-9]{2}|&#[0-9]{3}|&#[0-9]{4}|&#[0-9]{5})' . preg_quote($find, '/') . '/is', $replace, $text); |
#7
|
|||
|
|||
That works buddy Thanks alot.
|
#8
|
||||
|
||||
Cool.
|
#9
|
|||
|
|||
This no longer seems to work (in 3.6.8 at least). Anyone?
|
#10
|
|||
|
|||
*bump*
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|