Author |
Topic |
Todd
New Member
USA
63 Posts |
Posted - 07 May 2010 : 22:44:44
|
I replaced the dll and had problems.
New default.aspx listed below by HUWR solved problem with it not working with just the new DLL. |
Admin for the Tyco Collector's Forum
|
Edited by - Todd on 08 May 2010 18:41:13 |
|
|
Todd
New Member
USA
63 Posts |
Posted - 07 May 2010 : 23:34:03
|
I put back the old dll from Feb 24 and it worked ok again, so it must be the .dll
There was one problem I've had all along. A few months back I modded the forum so that when the image tags are placed around the image location it is also centered. After running the imagegrab utility, the code would be changed from
to
/tyco/forum/uploaded/New_York_Central/train_in_spain.jpg
removing the img tags altogether and leaving nothing but the text
/tyco/forum/uploaded/New_York_Central/train_in_spain.jpg
displayed in the post.
This happens ONLY on images which are located on the forum server already, it does NOT happen to images that are offsite. They are grabbed and the code is changed properly. |
Admin for the Tyco Collector's Forum
|
Edited by - Todd on 07 May 2010 23:42:36 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
|
Todd
New Member
USA
63 Posts |
Posted - 08 May 2010 : 18:47:41
|
quote: Originally posted by HuwR
try this default.aspx with the new dll I posted.
default.aspx
Worked well with new default.aspx file. It does the job and it's even working with the uppercase IMG tags. Thank you very much for this utility, it's a godsend.
However, (and this existed with the old dll and default.aspx) all pictures that are locally hosted on the forum and are within nested code like;
center img /tyco/forums/uploaded/user/picture.jpg /img /center
get changed to;
/tyco/forums/uploaded/user/picture.jpg
UPDATE: I think I fixed it. I went into inc_code.asp and changed the function back to it's default snitz code. Like I said, I modded this forum alot. I had changed the function for insert image to one that also put the code for centering the image. Now it just inserts the picture. Users will have to center the pics in another step, no big deal.
I think this might be 100% now. I'll follow up with my successes soon, going to try out a few of the real forums now. |
Admin for the Tyco Collector's Forum
|
Edited by - Todd on 08 May 2010 19:01:08 |
|
|
Todd
New Member
USA
63 Posts |
|
xseoer
Starting Member
USA
1 Posts |
Posted - 24 June 2010 : 23:14:53
|
quote:
this is the grab and save code, and shows the simplicity of using .Net (code is C#)
Grabbing the image is simple, first we declare a byte array to store the image in Byte[] imagearray; next we grab the image into the array using the webclient class
using (WebClient client = new WebClient()) { imagearray = client.DownloadData(urlofimage); } next we just save the imagearray to disk using a filestream
using (FileStream writer = new FileStream(destinationpath + filename, FileMode.Create)) { writer.Write(image, 0, image.Length);
}
I will post the full code for parsing the img tags and grabbing the images later
Thanx for sharing!!
I have a lovely cat named [url=http://www.ghdtradezone.com]GHD[/url].Barin |
Edited by - xseoer on 24 June 2010 23:16:56 |
|
|
Todd
New Member
USA
63 Posts |
Posted - 30 November 2013 : 14:39:41
|
Issue with Image Grabber. Image grabber breaks, actually it removes the img code when run for a second time against a post only IF that post also contains a link to an external webpage.
Update: Done testing. If there is a link to an external webpage it interferes when starting with http:// If I remove the http:// the image grabber seems to ignore it and process the post correctly.
See this post where I worked out the issue.
http://www.tycoforums.com/tyco/forum/topic.asp?TOPIC_ID=14039
CAN THIS BE FIXED?
|
Admin for the Tyco Collector's Forum
|
Edited by - Todd on 08 December 2013 21:22:06 |
|
|
Todd
New Member
USA
63 Posts |
|
Topic |
|