View Full Version : Input Code Change
GoOgLe
03-26-2007, 06:53 AM
strText = String.Replace(strText, "[IMG", "<img src=", false);
strText = String.Replace(strText, "[/IMG]", "", false);
strText = String.Replace(strText, "]", ">", false);
what wrong with the code above ??? it doesnt load the picture !!!!
RizlaUK
03-26-2007, 11:11 AM
the tags look ok
are you allowing your app to get through your firewall ?
GoOgLe
03-27-2007, 01:06 AM
have a look error1 and error2...
error1 : trying to load the picture
error2 : couldnt load the picture
and i am using that code
strText = String.Replace(strText, "", "<img src=", false);
strText = String.Replace(strText, "", "", false);
strText = String.Replace(strText, "]", ">", false);
TextFile.WriteFromString("C:\\temp_preview.html","<HTML>"..strText.."</HTML>",false);-- write the html file
File.OpenURL("C:\\temp_preview.html", SW_SHOWNORMAL);-- show the preview
GoOgLe
03-27-2007, 08:25 AM
any help please !!!!! :o
RizlaUK
03-27-2007, 08:43 AM
ok i said the tags look ok i was wrong
strText = String.Replace(strText, "[/IMG]", "", false);
should be
strText = String.Replace(strText, "[/IMG]", ">", false);
you are replacing the tag with nothing
GoOgLe
03-27-2007, 08:50 AM
thanks alot alot alot Rizlauk
i have another question ;
how can i keep the text selected after i add the code so i can add more code without selecting again ???
RizlaUK
03-27-2007, 09:10 AM
iv already given you the code to do that, but you chose not to use it
download my bbcoder (http://dnet-software.co.nr/exe/BBCoder-v3.exe) app and use it to add some tags, see how it works
this is the code template you will need to have the same effect
http://www.indigorose.com/forums/showpost.php?p=98254&postcount=11
GoOgLe
03-27-2007, 09:21 AM
i have downloaded it Rizlauk much better looking than i sent u...
i used ur code now and it worked...
thanks alot
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.