Changeset 139
- Timestamp:
- 12/25/07 18:06:03 (5 years ago)
- Location:
- bbcode.deviantart
- Files:
-
- 3 modified
-
bbcodes.xml (modified) (1 diff)
-
files/lib/data/message/bbcode/DeviantArtBBCode.class.php (modified) (2 diffs)
-
package.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bbcode.deviantart/bbcodes.xml
r55 r139 6 6 <classname>DeviantArtBBCode</classname> 7 7 <allowedchildren>none</allowedchildren> 8 <attributes> 9 <attribute name="0"> 10 <required>0</required> 11 <validationpattern>\d+x\d+</validationpattern> 12 </attribute> 13 </attributes> 8 14 <sourcecode>1</sourcecode> 9 15 <wysiwygicon>deviantartM.png</wysiwygicon> -
bbcode.deviantart/files/lib/data/message/bbcode/DeviantArtBBCode.class.php
r78 r139 22 22 // id as input 23 23 $id = intval($content); 24 } else if(strpos($content, 'http://') == 0 ){24 } else if(strpos($content, 'http://') == 0 && preg_match('/-(\d+)$/', $content, $hits)){ 25 25 // url as input 26 preg_match('/-(\d+)$/', $content, $hits);27 26 $id = intval($hits[1]); 28 } else if(strpos($content, '<object') == 0){27 } else if(strpos($content, '<object') !== false){ 29 28 // html as input 30 29 preg_match('/^<object width\="(\d+)" height\="(\d+)">.+value\="id\=(\d+)"/', $content, $hits); … … 35 34 } else { 36 35 return; 36 } 37 38 // overwrite width/height from attribute 39 if(isset($openingTag['attributes'][0])) { 40 list($width,$height) = explode("x", $openingTag['attributes'][0]); 37 41 } 38 42 -
bbcode.deviantart/package.xml
r119 r139 5 5 <packagename>deviantART BBCode</packagename> 6 6 <packageDescription><![CDATA[BBCode for deviantART Query]]></packageDescription> 7 <version>1. 0.1</version>7 <version>1.1.0</version> 8 8 <date>DATE</date> 9 9 <plugin>com.woltlab.wcf.data.message.bbcode</plugin> … … 29 29 </instructions> 30 30 31 <instructions type="update" fromversion="1.0.1"> 32 <files>files.tar</files> 33 <bbcodes>bbcodes.xml</bbcodes> 34 </instructions> 35 31 36 <instructions type="update" fromversion="1.0.0"> 32 37 <files>files.tar</files> 38 <bbcodes>bbcodes.xml</bbcodes> 33 39 </instructions> 34 40 </package>
