Print Page | Close Window

Multiple location access

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=8808
Printed Date: 07 April 2026 at 2:16pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Multiple location access
Posted By: Goon
Subject: Multiple location access
Date Posted: 12 January 2004 at 11:00am

I have set up Web Wiz Forums on our network. Users are able to access it locally ( http://intranet/forums - http://intranet/forums ) and also externally ( https://intranet.FQDN.com/forums - https://intranet.FQDN.com/forums ) - this works, except;

1. Email notifcations are sent with one or other link, can code be amended to send both links - external and internal?

2. Download links same problem, surely a relative link is all that's required? ie /forums/uploads without http://intranet - http://intranet .

Thanks in advance




Replies:
Posted By: WebWiz-Bruce
Date Posted: 12 January 2004 at 11:16am
1. You could edit the post_message.asp file and change the email that is sentout to include both links.

2. Files uploaded using the upload functions do use relative links.


-------------
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: Goon
Date Posted: 13 January 2004 at 3:48am

Thanks for your reply -boRg-,

1. Done, thanks for the pointer

2. Still not sure about this. Essentially anything uploaded internally gets the internal link, and anything uploaded externally gets the external link.

Bit of a pain as some users who work from home won't be able to get attachments from those who posted at work.

Any clues welcome!



Posted By: WebWiz-Bruce
Date Posted: 13 January 2004 at 4:57am
Try using a different upload component.

-------------
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: Goon
Date Posted: 13 January 2004 at 6:18am
Thanks again -boRg- but no joy, it seems to be the same regardless of upload component used. Looking at the database I can see the links are not relative, but can't find the code that I need to look at.


Posted By: WebWiz-Bruce
Date Posted: 13 January 2004 at 6:32am
I wrote the code to be relative links, so don't understand where the full path would come from.

-------------
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: Goon
Date Posted: 13 January 2004 at 7:31am
Well it's definately happening! Don't want to be a pain but you fancy pointing me in the right asp file direction then I'll have a looksee myself.


Posted By: WebWiz-Bruce
Date Posted: 13 January 2004 at 7:37am
upload_files.asp and functions_upload.asp


-------------
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: Goon
Date Posted: 13 January 2004 at 11:18am

I can't find anything obvious, interestingly enough if I disable WYSIWYG editing then all works fine, the relative links get put into the DB and files are hence downloadable from each location.

 



Posted By: WebWiz-Bruce
Date Posted: 13 January 2004 at 3:43pm
I've bee through testing today with all componets (apart from SA fileup) with the WYSIWYG Editor and the code like I programed it only put in relative links, so I can't understand why you are getting this problem.

-------------
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: Goon
Date Posted: 14 January 2004 at 4:11am

Strange, I have tested with SAfileup, Dundas and aspsmart. Every time i use WYSIWYG the link in the database is NOT relative. Turning off WYSIWYG fixes the problem.

I'm on 7.6, perhaps 7.7 fixes this problem?



Posted By: Goon
Date Posted: 14 January 2004 at 4:54am

-boRg-

http://dbforums.com/arch/195/2003/7/838335 - http://dbforums.com/arch/195/2003/7/838335

 



Posted By: WebWiz-Bruce
Date Posted: 14 January 2004 at 5:48am
Thats why I didn't find this as I use Mozilla Firebird as my default browser. If this is a problem with IE then there is little that can be done apart from write some ASP code to remove any path that is not relative.

-------------
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: Goon
Date Posted: 14 January 2004 at 6:31am

Or change the pasthtml line in upload_files.asp to use something other than pastehtml. Unfortuantely my javascript ain't so hot!

If anyone can help I'd appreciate it



Posted By: WebWiz-Bruce
Date Posted: 14 January 2004 at 7:00am
I spent about 2 days, 16 hours working on this part and the pastHTML was the only solution I could find.

-------------
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: Goon
Date Posted: 14 January 2004 at 7:44am

There's someone with a solution here:

http://groups.google.co.uk/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=OgujLm8wDHA.2456%40TK2MSFTNGP12.phx.gbl&rnum=8 - http://groups.google.co.uk/groups?hl=en&lr=&ie=UTF-8 &oe=UTF-8&selm=OgujLm8wDHA.2456%40TK2MSFTNGP12.phx.g bl&rnum=8

But I can't work out how to change the code in upload_files. Not expecting you to fix it of course, though a donation would be likely if you did ;-)

 



Posted By: WebWiz-Bruce
Date Posted: 14 January 2004 at 8:28am
Thats still uses pastHTML so I wouldn't see how that would help.

Your best solution is to use ASP that when it is submitted the relative path, the part containing your domain is removed from the link.


-------------
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: Goon
Date Posted: 15 January 2004 at 10:13am

Thanks -boRg-, I've successfully amended post_message.asp. I'd upload the code but don't have permission.




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