So, I wonder if anyone can help me with something I'm trying to do on my forum. Please let me know if I'm posting this on the wrong thread.
I made a function that takes an image URL as parameter and returns an image tag, resized depending on a few things there are irrelevant. The function works fine, I use it to resize avatars on the forum. The problems came when I tried using it on [img] tags. I tried modifying the bbcode.tpl. Instead of this line:
Code: Select all
<!-- BEGIN img --><a href="" onMouseOver="SMR_setLink(this);" target="_blank"><img src="{URL}" border="0" alt=""/></a><!-- END img -->
Code: Select all
<!-- BEGIN img --><a href="" onMouseOver="SMR_setLink(this);" target="_blank">{URL}</a><!-- END img -->
The problem is that no matter how much I tried, I coulnd't find a way to edit bbcode.php and use that function to send the tag to the browser. I don't understand how the image URL is found on that page, neither how all those functions on bbcode.php work. What I wanted to do was take the URL on the tag, use it to get the correct tag and send the whole tag to the browser, instead of sending only the URL and leaving the basic tag on bbcode.tpl.
Can anyone help me on that?