<I
import "iUtils.js"
print([B]ReduceCapitals[/B](IRELEASENAME));
I>
[url=http://www.pixhost.org/show/1218/8537780_n8afm.jpg][img]http://t3.pixhost.org/thumbs/1218/8537780_n8afm.jpg[/img][/url]
<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>
<I
import "iUtils.js"
print(([B]ConvertBBcodeImageToHtmlCode[/B](IPICTURE));
I>
<I
print("[img]" + IPICTURE + "[/img]");
I>
<I
print("<a href=\"" + IPICTURE + "\"><img src=\"" + IPICTURE + "\" alt=\"\" border=\"0\"/></a>");
I>
<I
print("");
I>
<I
print("\"");
I>
<I
print("<a href=\"" + IPICTURE + "\"><img src=\"" + IPICTURE + "\" alt=\"\" border=\"0\"/></a>");
I>
<a href="[url=http://www.pixhost.org/show/1218/8537780_n8afm.jpg][img]http://t3.pixhost.org/thumbs/1218/8537780_n8afm.jpg[/img][/url]"><img src="[url=http://www.pixhost.org/show/1218/8537780_n8afm.jpg][img]http://t3.pixhost.org/thumbs/1218/8537780_n8afm.jpg[/img][/url]" alt="" border="0"/></a>
sorry i misunderstood you.
you have the whole BBCode in the picture field. this is not designed to work like this. the picture field is only for the direct link!
however this is a possible solution for your requested function:
http://pastebin.com/8mMHfn7i
best regards
<I
import "iUtils.js"
function PixhostOrgShow() {
return StringReplace( ReplaceRegExpr("img(\\d+)", IPICTURE, "www", False) , "/images/", "/show/");
}
function PixhostOrgThumb() {
return StringReplace(StringReplace(IPICTURE, "://img", "://t"), "/images/", "/thumbs/");
}
if((IPICTURE != null) && (IPICTURE != ""))
print("<a href=\"" + PixhostOrgShow() + "\"><img src=\"" + PixhostOrgThumb() + "\" alt=\"\" border=\"0\"/></a>");
else
print("- no image available -");
I>
you can extend the functions to other hosts too.i want to say your function works when we put direct link of image in image field text boxonly for pixhost.org .
<I
if ( Pos("pixhost.org", IPICTURE) > 0 )
{
// do the procedure for pixhost.org
}
// else
// ...
I>
You can do this but it is not designed to work like this.but i want to paste whole bbcode thumbnail image code to picture text box and i dont want to paste direct image link to text box field.
Try the function i posted above:and i need some function to convert whole bbcode image thumb to html code thumb, so we could be able to post to wordpress at same time when our text box field contain bbcode thumbnail image and when we paste bbcode image to picture text box field ...
RETRY (1) ERROR: "Connection Closed Gracefully."
ERROR: "News & AnnouncementsNews & Announcements Regarding
ERROR: "HTTP/1.1 404 Not Found
Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.
Contact us