Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Add Flash Tag to your list of BBCode Tags
Topic Started: Aug 21 2008, 07:54 PM (1,899 Views)
Dan T
Member Avatar
document.createElement("Alcohol")
[ *  * ]
place this under the < !--Board -->

doesnt really need a preview it just added a button which allows you to easily use the flash BBCode.

Code:
 
<script type="text/javascript">
//created by Holysavior of ZBCode and Javascriptin.com

if(location.href.match(/\/post\//i) ){
$("#c_bbcode").append("<button type='button' id='flash' onclick='workflash()'>Flash</button>")
$("#flash").insertBefore("#c_bbcode select");

function workflash() {
var height = prompt("Height of the File?");
var width = prompt("Width of the File?");
var url = prompt("URL of the File?");

document.forms['posting'].post.value="[flash="+width+","+height+"]"+url+"[/flash]"
}
}
</script>

Offline Profile Quote Post Goto Top
 
davadude
Member Avatar
GuildWars addict :P
[ *  *  * ]
Nice; it's a small handy code; and works perfectly ;)
Offline Profile Quote Post Goto Top
 
rizelmine
Member Avatar
☼ esoteric ☼
[ * ]
thanks a lot! :)
Offline Profile Quote Post Goto Top
 
silvershoes
Member
[ * ]
Just what I was looking for. Thanks!
Offline Profile Quote Post Goto Top
 
Johnny Mullet
Member Avatar
Fear the Mullet
[ * ]
Great code! Thanks.
Offline Profile Quote Post Goto Top
 
sphericthor
Member Avatar
Voice of The Castle Boards
[ * ]
I hate to say it but there is a slight problem with the code.

I have just added it to my boards and was going to make an announcement letting people know it was there. So I typed out a few words, got a video as an example and used the Flash button. As soon as I put the link in and pressed OK... all the text was removed and the only thing left was the Flash tags with the right information in there. This also happens when trying to add a second video to the post.

So basically, if you're going to add more than one video to a post or you have written something before it, you're pretty much going to have to do it the usual way.
Offline Profile Quote Post Goto Top
 
JadedOne
Member Avatar
Member
[ *  * ]
sphericthor
Sep 23 2008, 10:19 AM
I hate to say it but there is a slight problem with the code.

I have just added it to my boards and was going to make an announcement letting people know it was there. So I typed out a few words, got a video as an example and used the Flash button. As soon as I put the link in and pressed OK... all the text was removed and the only thing left was the Flash tags with the right information in there. This also happens when trying to add a second video to the post.

So basically, if you're going to add more than one video to a post or you have written something before it, you're pretty much going to have to do it the usual way.
Having that same problem on our board, if it wasn't for that problem it would be a great code.....
Offline Profile Quote Post Goto Top
 
Darkman
Member Avatar
Member
[ *  * ]
Is there a fix for this? Or is one in the pipeline?
I would love to use this code, but with the problem mentioned above, it's just not practical.
Offline Profile Quote Post Goto Top
 
Johnny Mullet
Member Avatar
Fear the Mullet
[ * ]
Doh!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · User Created Codes · Next Topic »
Add Reply