Closed (fixed)
Project:
Bbcode
Version:
5.x-1.1
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2007 at 01:49 UTC
Updated:
13 Jan 2008 at 05:39 UTC
take a look at this thread in vb
http://www.vbulletin.org/forum/showthread.php?t=118048
Can we put this feature?
I've done quick and dirty way.
In page.tpl.php add
<script type="text/javascript" src="/modules/bbcode/ncode_imageresizer.js?v=1.0.1"></script>
<!-- i do not know how to call js in module -->
<style type="text/css">
<!--
put your necesary style here
-->
</style>
In bbcode-filter.inc
change [img] routines
// Images without or with client-side sizing
'#\[img(?::\w+)?\]([\w:;&,~%+!=@\/\.\-\#\?]+)\[/img(?::\w+)?\]#si' => '<img src="\\1" alt="" class="bb-image" onload="NcodeImageResizer.createOn(this);" />',
'#\[img=(\d+)x(\d+)(?::\w+)?\]([\w:;&,~%+!=@\/\.\-\#\?]+)\[/img(?::\w+)?\]#si' => '<img width="\\1" height="\\2" alt="" src="\\3" class="bb-image" onload="NcodeImageResizer.createOn(this);" />',
'#\[img=([\w\s:;,\.\-\'\(\)]+)(?::\w+)?\]([\w:;&,~%+!=@\/\.\-\#\?]+)\[/img(?::\w+)?\]#si' => '<img alt="\\1" src="\\2" class="bb-image" onload="NcodeImageResizer.createOn(this);" />',
But this is not working in blog module! may anyone tell me why?
Thanks and Regards,
Comments
Comment #1
naudefj commentedComment #2
naudefj commentedYou are welcome to submit a working patch. If not, this feature will not be implemented.