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

naudefj’s picture

Status: Active » Postponed
naudefj’s picture

Priority: Critical » Minor
Status: Postponed » Closed (fixed)

You are welcome to submit a working patch. If not, this feature will not be implemented.