Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Watched Forum picture problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Watched Forum picture problem

 Post Reply Post Reply
Author
kl8ton View Drop Down
Newbie
Newbie


Joined: 23 April 2003
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote kl8ton Quote  Post ReplyReply Direct Link To This Post Topic: Watched Forum picture problem
    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?

Edited by kl8ton
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
kl8ton View Drop Down
Newbie
Newbie


Joined: 23 April 2003
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote kl8ton Quote  Post ReplyReply Direct Link To This Post 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?



Edited by kl8ton
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.