hello
i saw that you wrote some functions via javascript and these fucntions located in this file "
iUtils.js" and in some template.txt depend on our requirement we can use these functions . for example here we imported
iUtils.js and we used
ReduceCapitals function to reduce Capitals for IReleaseName in our custom template .
Code:
<I
import "iUtils.js"
print([B]ReduceCapitals[/B](IRELEASENAME));
I>
ok, i installed vbulletin and wordpress both in our local host and i wanna to post to wordpress and vbulletin forums
at the same time .
i test vb and wp posting both works fine , i tested with wordpress v3.2.1 - lastversion.
but my problem is when my post
contain thumbnails bbcode image (Clickable thumb image) vbulletin accept bbcode and every forums support bbcode image . but we know that wordpress doesn't show bbcode thumbnail image and so we can't post to vb and wordpress simultaneously .
ok , do you have any function to replace thumb bbcode image to html code thumbnails?
we can define it for wordpress to automate convert bbcode thumb image to html code.
for example our post contain this cover thumbnail bbcode image
PHP:
[url=http://www.pixhost.org/show/1218/8537780_n8afm.jpg][img]http://t3.pixhost.org/thumbs/1218/8537780_n8afm.jpg[/img][/url]
so for wordpress it must converted to html code automatically :
bbcode image above must be convert to this one below that wordpress can show it:
Code:
<a href="http://www.pixhost.org/show/1218/8537780_n8afm.jpg"><img src="http://t3.pixhost.org/thumbs/1218/8537780_n8afm.jpg" alt="8537780_n8afm.jpg" border="0"/></a>
so i need 1 function in
iUtils.js to automate replace bbcode image to html code when
we use bbcode thumb image to post to wordpress blog.
example: we should define and add this to template.txt for wordpress, so could you help me to wrote this function "
ConvertBBcodeImageToHtmlCode" ?
so we can use this fucntion in our custom template.txt for wordpress:
Code:
<I
import "iUtils.js"
print(([B]ConvertBBcodeImageToHtmlCode[/B](IPICTURE));
I>
unfortunately i have not any good skills in javascript programming to add this fuction
to iUtils.js file.
could you help me a bit?
thanks