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.
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → 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.
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.
Well, <script> is an HTML tag. So you should be able to post JS, if you've installed the mod correctly.
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.
Isn't there some checkbox you have to check to allow HTML?
html is already on for the admin usergroup from the Admin panel.
How does the code look after it's been posted?
Moved to Modifications
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → How to allow javascript in posts for Admin only
Powered by PunBB, supported by Informer Technologies, Inc.