Author |
Topic |
|
wundabua
Starting Member
Switzerland
14 Posts |
Posted - 17 June 2001 : 09:38:41
|
hello together,
I was so impressed by the possibilities of snitz forums and implemented my whole homepage integrated in snitz forum posts. using the portal, calendar, etc. mods.
my question now: is it possible to use forum variables (like the strForumURL) in posts? I use images in posts, which are in directories below the forum main dir. what I would like to do is something like <img src="<%=strForumURL%>images/something.gif">
could someone come up with a solution for this?
regards klement.
Edited by - wundabua on 17 June 2001 09:40:12 |
|
Deleted
deleted
4116 Posts |
Posted - 17 June 2001 : 13:18:30
|
No, its not directly possible. For several reasons (as far as I know the code):
1) You have to turn HTML mode ON first, which is not advised for normal users as it brings some security issues. 2) The inc_functions.asp has a function HTMLEncode which replaces < and > characters before displaying (but this is not the main reason). 3) The message is output as is except several conversions as explained in (2), but does not take special care of executing something, such as an "eval" function, thus outputs it as is, and once its output, the ASP engine cannot execute it. Your request can be implemented, BUT: IT'S EXTREMELY DANGEROUS TO ALLOW SOME CODE EXECUTION IN POSTS !
Usual efforts in programming in web is to disable such code execution trials. You better type in the URL.
Think Pink |
|
|
wundabua
Starting Member
Switzerland
14 Posts |
Posted - 19 June 2001 : 03:36:55
|
thank you for your advice ... I already did the html-code-on-for-admins-only mod to my code (and I am the only admin :-) ).
i know that it is dangerous to let users do coding stuff in web apps ...
regards klement.
|
|
|
|
Topic |
|
|
|