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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 using forum variables in posts
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

wundabua
Starting Member

Switzerland
14 Posts

Posted - 17 June 2001 :  09:38:41  Show Profile  Send wundabua an AOL message
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  Show Profile
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
Go to Top of Page

wundabua
Starting Member

Switzerland
14 Posts

Posted - 19 June 2001 :  03:36:55  Show Profile  Send wundabua an AOL message
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.

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