Forum OpenACS Q&A: AdServer : javascript, img, target tags

Hello,
<p>
I want to use the AdServer package.
<p>
But all my ad tags are like this :

<pre>
<script language="JavaScript" src="http://adv.surinter.net/richmedia.cfm?id=5176"></script>
<script language="JavaScript"
src="http://adv.surinter.net/richmedia.cfm?affilid=5176&tag=2"></script>
</pre>
<p> or
<pre>
<!-- VC active -->
<SCRIPT LANGUAGE="JavaScript">
<!--
// ValueParameters
ValueHost = "hs0209597";
ValueID = "akoor_random_number";
ValueLoaded = false;
ValueVersion = "1.0";
ValueWidth = 468;
ValueHeight = 60;
//-->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript" SRC="http://oz.valueclick.com/jsmaster"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
if (ValueLoaded) ValueShowAd();
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="http://kansas.valueclick.com/redirect?host=hs0209597&size=468x60&b=indexpage&v=0" TARGET="_top"><IMG BORDER="0" WIDTH="468" HEIGHT="60" ALT="Click here to visit our sponsor"
SRC="http://kansas.valueclick.com/cycle?host=hs0209597&size=468x60&b=indexpage&noscript=1"></A>
</NOSCRIPT>
</pre>

When trying to insert those tags, I'm told that "For security reasons, we only accept..." and that "script" and "img" tags are not accepted.
<p>
So I can't use the adserver ? Or is there a way ?
<p>
Thanx

Collapse
Posted by jerry arns on
Of course as my message above contains the criminal tags, I couldn't post it as html...
Collapse
3: Use ns_quotehtml (response to 2)
Posted by Andrew Piskorski on
Jerry, in order to properly quote HTML tags, or anything else, for display as HTML on the BBoard, try using this simple little dtk_openacs_bboard_quotehtml proc. (I think with the new OpenACS 4.5 forums package you no longer need the regsub to double the backslashes, however.)
Collapse
Posted by Jay Dubanik on
Jerry,
Did you find the answer to your question? or you still need some help?
Collapse
Posted by jerry arns on
Yes,

in add-adv-2.tcl

the property target_url should be of type "allhtml" instead of just "html".

I opened a bug in the ticket tracker (#137).