This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-02-20 16:33:30

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Test

[app]http://www.w3schools.com/tags/helloworld.swf[/app]

Last edited by gbear605 (2012-02-20 17:29:13)


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#2 2012-02-20 16:34:31

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Test

wat


Posts: 20000 - Show all posts

Offline

 

#3 2012-02-20 17:17:02

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Test

veggieman001 wrote:

wat

I was testing an applet inserter thing.  It obviously didn't work  tongue


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#4 2012-02-20 17:27:40

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Test

HTML does not work on the fora. All <tags> will not do anything.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#5 2012-02-20 17:29:50

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Test

gbear605 wrote:

veggieman001 wrote:

wat

I was testing an applet inserter thing.  It obviously didn't work  tongue

Flash doesn't use applets  tongue


Posts: 20000 - Show all posts

Offline

 

#6 2012-02-20 17:31:22

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Test

veggieman001 wrote:

gbear605 wrote:

veggieman001 wrote:

wat

I was testing an applet inserter thing.  It obviously didn't work  tongue

Flash doesn't use applets  tongue

Really what I was testing is an object inserter, but I named it applet, because object would sound weird in context  tongue


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#7 2012-02-21 00:34:13

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Test

So you are testing a userscript?


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&amp;display=small

Offline

 

#8 2012-02-21 03:16:52

KajHacker
New Scratcher
Registered: 2012-02-20
Posts: 19

Re: Test

I don't think HTML works on the forums, only BBcode.

Offline

 

#9 2012-02-21 03:53:15

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Test

KajHacker wrote:

I don't think HTML works on the forums, only BBcode.

It is custom BBcode. I think he is making a userscript or something that allows people to embed flash content. I'm not exactly sure.

Btw, nice username XP


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&amp;display=small

Offline

 

#10 2012-02-21 07:07:45

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Test

Eh, I'm too lazy to finish it, so if anyone wants to fix my bug, go ahead.  You can publish it if you like, but give me credit.

Code:

// ==UserScript==
// @name           Applet Enabler
// @namespace      gbear605
// @description    Enable applets on scratch forum, based on the image enabler by rookwood101,Cocolover,LS97,flashgocrazy
// @include        http://scratch.mit.edu/forums/viewtopic.php*
// ==/UserScript==


if (document.URL.indexOf('http://scratch.mit.edu/forums/viewtopic.php') != -1) {

 var bodyElement = document.getElementsByTagName("body")[0];
 var bodyInner = bodyElement.innerHTML;
 var appurls = new Array();
 for (i=0;i<bodyInner.split(/\[app\]/i).length-1;i++) {
  appurls[i] = bodyInner.split(/\[app\]/i)[i+1].split(/\[\/app\]/i)[0];
  if (appurls[i].replace(/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;:/~\+#]*[\w\-\@?^=%&amp;/~\+#])?/i, "") != "") {
   appurls[i] = 'http://img94.imageshack.us/img94/6045/invalidimage.png';
  }
 }
 var addJava = bodyInner;
 for (i=0;i<javaurls.length;i++) {
  addApplet = addApplet.replace(/\[app\](http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;:/~\+#]*[\w\-\@?^=%&amp;/~\+#])?\[\/app\]/i, '<object data="' + appurls[i] + '"></object>');
 }

}

Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

Board footer