Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Mod-Utility Request Embed External Images locally
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 4

Todd
New Member

USA
63 Posts

Posted - 07 May 2010 :  22:44:44  Show Profile  Visit Todd's Homepage  Reply with Quote
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
Go to Top of Page

Todd
New Member

USA
63 Posts

Posted - 07 May 2010 :  23:34:03  Show Profile  Visit Todd's Homepage  Reply with Quote
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
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 08 May 2010 :  03:28:03  Show Profile  Visit HuwR's Homepage  Reply with Quote
ok, you may need a new default.aspx, I assumed I had just made a change in the dll, i will zip up the other files and post them later

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 08 May 2010 :  08:23:36  Show Profile  Visit HuwR's Homepage  Reply with Quote
try this default.aspx with the new dll I posted.

default.aspx

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

Todd
New Member

USA
63 Posts

Posted - 08 May 2010 :  18:47:41  Show Profile  Visit Todd's Homepage  Reply with Quote
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
Go to Top of Page

Todd
New Member

USA
63 Posts

Posted - 02 June 2010 :  20:30:42  Show Profile  Visit Todd's Homepage  Reply with Quote
Sorry, I forgot to come back and give an update. Thanks HUWR, it's working correctly. Wonderful utility!


Admin for the Tyco Collector's Forum

Go to Top of Page

xseoer
Starting Member

USA
1 Posts

Posted - 24 June 2010 :  23:14:53  Show Profile  Visit xseoer's Homepage  Reply with Quote
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
Go to Top of Page

Todd
New Member

USA
63 Posts

Posted - 30 November 2013 :  14:39:41  Show Profile  Visit Todd's Homepage  Reply with Quote
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
Go to Top of Page

Todd
New Member

USA
63 Posts

Posted - 20 December 2013 :  19:13:59  Show Profile  Visit Todd's Homepage  Reply with Quote


Admin for the Tyco Collector's Forum

Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07