> 1 <
| Author | Message |
foxhound
4 posts
Location: Netherlands Occupation: Age: |
#300 2008-04-27 10:40 GMT |
|
First let me say you are all doing a great job here. I visit this place every week a few times just to see whats new.
Thanks for all the work you have done Now I have a question regarding the "Smart Image Resizer {Final}". I would really like to use it on my site but I am using some edited functions.php which changed some functions for security so now I am not really sure how to change some things. I need to change my functions.php from this: Code: $bbcodes = array( to this: '\\[img=([^\\\'\;\?[]*)\.(jpg|jpeg|gif|png)\\]([^\\[]*)\.(jpg|jpeg|gif|png)\\[/img\\]' => '<a href="\\1.\\2"><img src="\\3.\\4" alt="" /></a>', Code: $bbcodes = array( '\\[img\\]([^\\\'\;\?([]*)\.(jpg|jpeg|gif|png)\\[/img\\]' => '<p class="thumbContainer"><img onclick="new Moognify(this);" src="\\1.\\2" alt="click image to close" /><br />click image for smart resizer or-<a href="\\1.\\2" target="_blank" >Click Here for full size</a></p>', '\\[aimg=([^\\\'\;\?[]*)\.(jpg|jpeg|gif|png)\\]([^\\[]*)\.(jpg|jpeg|gif|png)\\[/aimg\\]' => '<a href="\\1.\\2"><img src="\\3.\\4" alt="" /></a>', However, my functions.php looks different: Code: $bbcodes = array( '#\[(img)\]([^\s"\';\?\(\[]+\.(?:jpg|jpeg|gif|png))\[/img\]#', '#\[(img)=([^\s"\';\?\(\[]+\.(?:jpg|jpeg|gif|png))\]([^\s"\';\?\(\[]+\.(?:jpg|jpeg|gif|png))\[/img\]#', Now I tried to use the code as told in the topic anyhow but as I feared that gives me a lot of errors (local install). So, I would like to ask if anyone could help me with editing the code in such a way it will work with my functions.php. Thanks in advance. [code] |
|
> 1 <

