1

Topic: How to allow javascript in posts for Admin only

How do I allow javascript in posts for Admin (me) only. I need it badly to embed flash videos and other things with <script></script> tags. Can someone please guide me? Thank you.

2

Re: How to allow javascript in posts for Admin only

Can someone please kindly help me for this? I need to embed Silverlight wmv videos in the posts and one cannot do it without js. I already have the Allow HTML mod for allowing html for specified usergroups. Thank you in advance.

Re: How to allow javascript in posts for Admin only

Well, <script> is an HTML tag. So you should be able to post JS, if you've installed the mod correctly.

4

Re: How to allow javascript in posts for Admin only

No, it does not work. The js code is as follows:

<script type='text/javascript' src="silverlight.js"></script>
    <script type='text/javascript' src="wmvplayer.js"></script>

    <script type="text/javascript">
        var cnt = document.getElementById("container");
        var src = 'wmvplayer.xaml';
        var cfg = {
            file:'http://www.mysite.com/video.wmv',
            height:'30',
            width:'50',
            fullscreenclick:'true',
            shownavigation:'false',
            overstretch:'true',
            showstop:'true',
            showdownload:'true',
            link:'http://www.mysite.com/video.wmv',
        };
        var ply = new jeroenwijering.Player(cnt,src,cfg);
    </script>

It works on a normal html page. But in the forum post, it does not show the video play button at all. Maybe even though Allow HTML does not remove these js code still it does not parse it properly I think. Any help would be greatly appreciated.

Re: How to allow javascript in posts for Admin only

Isn't there some checkbox you have to check to allow HTML?

6

Re: How to allow javascript in posts for Admin only

html is already on for the admin usergroup from the Admin panel.

Re: How to allow javascript in posts for Admin only

How does the code look after it's been posted?

Re: How to allow javascript in posts for Admin only

Moved to Modifications