Log in

View Full Version : Adding Javascript or flash games


forum4
10-18-2010, 03:34 AM
So I can't add javascript to posts, but I just wanted to be able to add some flash games manually. Is there any way to do that?

I already have an arcade, but just wanted to add some java code to embed some games into the forum without messing with the arcade. They will be holiday oriented, so wanting to change them up each month etc.

Is there any way to do it through the posts, or do I need to create a page for each one then maybe post the link to the page for each game?

Thanks so much.

BirdOPrey5
10-18-2010, 05:34 PM
You could put any HTML you wanted (including flash embedding code) into a BB Code and call each game by unique code such as:



It means without additional mods someone could put a pacman game in any post but in practice probably no one would know to even try and you could edit/delete it if it did happen.

forum4
10-20-2010, 03:34 AM
Tried that, but nothing worked. It has "javascript" in it, so maybe that is why the BB code won't work.

BirdOPrey5
10-20-2010, 11:05 AM
If you can show me the code(s) I can probably get it to work as a BB Code...

forum4
10-21-2010, 09:18 PM
OK, here's one of the codes.

<script language="JavaScript" type="text/JavaScript">
novelgames_gameID = '22';
novelgames_language = 'e';

</script>
<script language="JavaScript" type="text/JavaScript" src="http://www.novelgames.com/flashgames/game.js"></script>

Hope this works. Thanks so much for taking the time to help :)

BirdOPrey5
10-21-2010, 11:11 PM
It's working fine for me... Your code as the replacement and all the Yes/No options set to "No"

Demo: http://www.juot.net/forums/showthread.php?t=48864

Because it's JavaScript if you are adding it to an existing thread and not posting a new one you have to refresh the page to see it. Other people visiting the page will see it fine though.

forum4
10-22-2010, 03:12 AM
It works now....thanks so much :D

RobbieZ
10-28-2010, 08:18 AM
I guess you should always lock the thread too, so no one can quote you and spy the code?

BirdOPrey5
10-28-2010, 08:51 AM
If you feel that would be a problem then yes locking is a good idea.