Print Page | Close Window

Watched Forum picture problem

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=6376
Printed Date: 03 April 2026 at 2:49pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Watched Forum picture problem
Posted By: kl8ton
Subject: Watched Forum picture problem
Date Posted: 13 October 2003 at 8:13am
If I "watch" a particular topic in the forum and I get an email with the posting, why do the pictures not come through?

-------------
Clayton



Replies:
Posted By: WebWiz-Bruce
Date Posted: 13 October 2003 at 11:21am
It all depends if the image has the full URL path to the image or not otherwise the email won't know where to look.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: kl8ton
Date Posted: 13 October 2003 at 2:18pm

This is a situation where the picture was uploaded to the server.  Why wouldn't the email be able to display that?  The email system and the forum server are on the same network.

I just did a test and the URL pic works fine.  If I upload a pic to the server, the notification email displays a red x, which in IE terms, it means the link is broken to the pic or the pic no longer exists, right?

How does the forum software link uploaded pics in email?



-------------
Clayton


Posted By: WebWiz-Bruce
Date Posted: 14 October 2003 at 2:00am
It links the images using the path from the forum to the upload folder.

It would be very hard to detaect this in emails and change every link to the full URL path.

Just something I'm afraid you will have to live with. The send post with email feature is just something to give you a guide to the new post on the server. I would still recommened clciking the link and reading the post fully in the actual forum.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: fernan82
Date Posted: 14 October 2003 at 10:41am

Well I disagree, I think it would be very easy to get around this.

The easiest  way would be to mod the code that inserts the URL on the text box when you upload to insert the full URL, all that takes it's inserting "http://" & Request.ServerVariables("HTTP_HOST") somewhere on the js function that inserts the link and changing the path to a virtual path on the admin section. There's also other ways to do it like using the var that holds the URL for the forum, etc.

Or if you prefer on post_message.asp look for something like this:

    'Initailise the e-mail body variable with the body of the e-mail
    strEmailMessage = strTxtHi & " " & decodeString(strUserName) & ","
    strEmailMessage = strEmailMessage & "<br /><br />" & strTxtEmailAMeesageHasBeenPosted & " " & strMainForumName & " " & strTxtThatYouAskedKeepAnEyeOn
    strEmailMessage = strEmailMessage & "<br /><br />" & strTxtEmailClickOnLinkBelowToView & " : -"
    strEmailMessage = strEmailMessage & "<br /><a href=""" & strForumPath & "/forum_posts.asp?TID=" & lngTopicID & "&TPN=" & intReturnPageNum & """>" & strForumPath & "/forum_posts.asp?TID=" & lngTopicID & "&TPN=" & intReturnPageNum & "</a>"
    strEmailMessage = strEmailMessage & "<br /><br />" & strTxtClickTheLinkBelowToUnsubscribe & " : -"
    strEmailMessage = strEmailMessage & "<br /><a href=""" & strForumPath & "/email_notify.asp?TID=" & lngTopicID & "&FID=" & intForumID & "&M=Unsubscribe"">" & strForumPath & "/email_notify.asp?TID=" & lngTopicID & "&FID=" & intForumID & "&M=Unsubscribe</a>"

and add something like this

strEmailMessage = Replace(strEmailMessage, "yourimagepath", "yourfullurl", 1, -1, 1)

That should do it, you'll have to replace yourimagepath with the path to the uploads folder exactly how you entered it on the admin section, and yourfullurl with the full url to that path.

That's just an example, it would not always work correctly, like if somebody post the full url it will get messed up and if by coincidence somebody post another link which contains the text string on yourimagepath it will also be converted. That could be fixed (or chances of it happening can be minimized greatly) by checking that the link is inside img tags and that it doesn't begin with http or www.

 



-------------
FeRnAN
http://www.danasoft.com/">



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net