The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#5
|
||||
|
||||
![]() Quote:
I've an update for that trouble, looks like thats a trouble of the wysiwyg editor, when I insert inline a thumbnail with the wysiwyg disabled, it insert a [ATTACH ] tag but if I switch from textual editor to wysiwyg and than I switch again to text it change the attach tag to img tag! --------------- Added [DATE]1393954791[/DATE] at [TIME]1393954791[/TIME] --------------- Just to be sure, my Message Attachment Options are:
--------------- Added [DATE]1393992215[/DATE] at [TIME]1393992215[/TIME] --------------- Ok, now there is something of weird... Test 1: I tried to install a clean vBulletin 4.2.2 on my official server, using a new DB, after I installed it I tried to verify the inline trouble and that clean vBulletin have that trouble. Test 2: I've a fresh installed local Virtual Machine with FreeBSD, like the official server, with about all package installed, I tried to installa a fresh vBulletin 4.2.2 but that installation have inline image trouble too... Test 3: Fresh install of lastes stable Debian with Apache 2 (not Nginx as official server), than I've installed a fresh vBulletin 4.2.2 and... It goes! There isn't inline trouble! After a fast debug I found similar errors on test 1 and 2: Code:
Warning: preg_match() [function.preg-match]: Compilation failed: invalid range in character class at offset 23 in ..../includes/class_wysiwygparser.php on line 481 Code:
if (preg_match('#attachment.php\?attachmentid=(\d+)#si', $img_url, $matches) AND preg_match('#class=(\'|"|)([a-z0-9_-\s]+)?\s*previewthumb\s*([a-z0-9_-\s]+)?(\\1)#si', $fullurl)) { return '[ATTACH=CONFIG]' . $matches[1] . '[/ATTACH]'; } <?php $img_url ='http://192.168.1.55/attachment.php?attachmentid=36&stc=1'; $fullurl ='<img src="http://192.168.1.55/attachment.php?attachmentid=36&stc=1" attachmentid="36" alt="" id="vbattach_36" class="previewthumb">'; if (preg_match('#attachment.php\?attachmentid=(\d+)#s i', $img_url, $matches) AND preg_match('#class=(\'|"|)([a-z0-9_-\s]+)?\s*previewthumb\s*([a-z0-9_-\s]+)?(\\1)#si', $fullurl)) { echo "it's ok"; } ?> If I run that file on freebsd server it give error: Warning: preg_match(): Compilation failed: invalid range in character class at offset 23 in x.php on line 5 But if I run it on the Debian server it goes! That's really strange, some suggest to fix it? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|