The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Adding Javascript or flash games
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. |
#2
|
||||
|
||||
You could put any HTML you wanted (including flash embedding code) into a BB Code and call each game by unique code such as:
[pacman][/pacman] 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. |
#3
|
||||
|
||||
Tried that, but nothing worked. It has "javascript" in it, so maybe that is why the BB code won't work.
|
#4
|
||||
|
||||
If you can show me the code(s) I can probably get it to work as a BB Code...
|
#5
|
||||
|
||||
OK, here's one of the codes.
HTML Code:
<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> |
#6
|
||||
|
||||
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. |
#7
|
||||
|
||||
It works now....thanks so much
|
#8
|
|||
|
|||
I guess you should always lock the thread too, so no one can quote you and spy the code?
|
#9
|
||||
|
||||
If you feel that would be a problem then yes locking is a good idea.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|