inherit
92204
0
Dec 3, 2013 10:05:18 GMT -8
laundrylady
68
November 2006
laundrylady
|
Post by laundrylady on Nov 7, 2012 8:13:44 GMT -8
I am using a code on the old version that allows me to use html in the posts. I would like a plug in that would allow me to continue to do so.
Some of the mini games that we like to play will not work in the new upgrade.
I am using SubDevo's code,HTML In Posts for Certain Users by SubDevo so if he could update it to a plug in or someone could write a new one , I would appreciate it.
<script type="text/javascript"> /* HTML In Posts for Certain Users by SubDevo */ /* Global Footer - Please leave this header intact. Do not repost. */ /* [url]http://interoceandesigns.com[/url] or [url]http://lsdp.proboards.com[/url] */
var fStaff=/^(admin|staff1)$/i;
var td=document.getElementsByTagName("td"),b,rm=/user=(.+?)\"/i; var l=new RegExp("&"+"lt;","gi"),r=new RegExp("&"+"gt;","gi"),x=0; if(/(calendar|pm|pre)view|search2|display/i.test(pb_action)){ while(td[++x]){n=td[x-1]; b=td[x].innerHTML; if(n.width=="20%"&&td[x].width=="80%"&&rm.test(n.innerHTML)){ if(fStaff.test(RegExp.$1)&&/\[html\]/i.test(b)&& !/kquote><b>Code:</i.test(b)){ td[x].innerHTML=b.replace(/\[html\]/gi,"").replace(l,"<").replace(r,">"); }}}} </script>
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Nov 7, 2012 14:23:25 GMT -8
With the way V5 works and the enhanced UBBC there's not much need for that code anymore (and it'd need a complete re-write)
Is this just for embeding games into a post ? If so, I might have a look into it. But someone else may jump in with a plug-in before I do! (feel free to do so!)
PS: SubDevo has put in the code ' Do not repost.' A link to the code would have been better.
|
|
inherit
92204
0
Dec 3, 2013 10:05:18 GMT -8
laundrylady
68
November 2006
laundrylady
|
Post by laundrylady on Nov 7, 2012 14:24:58 GMT -8
Yes, I embed mini type games into the forum for my members.
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Nov 7, 2012 17:08:30 GMT -8
Are all the imbeds in iframes or do some use other HTML?
|
|
inherit
92204
0
Dec 3, 2013 10:05:18 GMT -8
laundrylady
68
November 2006
laundrylady
|
Post by laundrylady on Nov 8, 2012 6:04:13 GMT -8
Thanks, RedBassett, will give it a go. Will probably be wanting other HTML later on but this will do for what I am doing now.
<iframe src="http://www.miniclip.com/games/zombie-karts/en/webgame.php" frameborder="0" style="border:none;" width="680" height="510" scrolling="no"></iframe>
Looking to run codes like the above. Not in a hurry.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Nov 9, 2012 15:03:12 GMT -8
I really don't recommend these types of plugins, it opens doors up for people to be malicious if it's not developed with security in mind. Someone released an "Iframes in posts" plugin a few days ago. I took a look at it just to see how they were parsing the attributes, and lets just say it wasn't secure, which is why I am guessing it's gone now.
|
|
inherit
92204
0
Dec 3, 2013 10:05:18 GMT -8
laundrylady
68
November 2006
laundrylady
|
Post by laundrylady on Nov 9, 2012 16:07:41 GMT -8
Sigh, guess its back to putting them on a web page again,
|
|