Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Add Flash BBCode to post page
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
[SC] Add Flash BBCode to post page
Tweet Topic Started: Aug 21 2008, 07:47 PM (1,826 Views)
HolySavior Aug 21 2008, 07:47 PM Post #1
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
place this under the < !--Board -->

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>

Edited by HolySavior, Aug 24 2008, 11:19 AM.
Offline Profile Goto Top
 
Jesus Aug 21 2008, 07:51 PM Post #2
Member Avatar
The Holy Savior

Posts:
180
Group:
Member
Member
#85
Joined:
Jul 18, 2008
Coding language
Ruby on Rails
Is this so you can post like flash games in your posts O-o :o
Posted Image
Offline Profile Goto Top
 
HolySavior Aug 21 2008, 07:53 PM Post #3
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
i think its more like youtube videos or something.

it was a request . so i looked at how the flash tag went in the post and just made it.
Offline Profile Goto Top
 
Jesus Aug 21 2008, 07:54 PM Post #4
Member Avatar
The Holy Savior

Posts:
180
Group:
Member
Member
#85
Joined:
Jul 18, 2008
Coding language
Ruby on Rails
Oh, ok then I will put this to use :)
Posted Image
Offline Profile Goto Top
 
HolySavior Aug 21 2008, 08:02 PM Post #5
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
jesus

http://support.zetaboards.com/topic/556904/1/#new

look there. that might help you out.
Offline Profile Goto Top
 
Jesus Aug 21 2008, 08:03 PM Post #6
Member Avatar
The Holy Savior

Posts:
180
Group:
Member
Member
#85
Joined:
Jul 18, 2008
Coding language
Ruby on Rails
Ah ok but I think that's for flash videos such as shockwave so I am pretty sure flash games are the same deal because it uses shockwave as well.
Posted Image
Offline Profile Goto Top
 
farkingdom Aug 21 2008, 11:36 PM Post #7
Member

Posts:
6
Group:
Member
Member
#460
Joined:
Aug 5, 2008
Coding language
HTML/CSS
Not working for me :( but it seems to show out a blank piece of flash that's it
Offline Profile Goto Top
 
HolySavior Aug 22 2008, 12:12 AM Post #8
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
the code works its just i dont know how their flash thing works and what you need to all take for it to show up properly.
Offline Profile Goto Top
 
vuive Aug 22 2008, 07:22 AM Post #9


Posts:
3
Group:
Member
Member
#282
Joined:
Jul 25, 2008
Coding language
ASP.Net
Work for me, thanks
Offline Profile Goto Top
 
JadedOne Sep 27 2008, 10:06 PM Post #10
Member Avatar


Posts:
14
Group:
Member
Member
#479
Joined:
Aug 6, 2008
The text gets removed and the only thing left is the Flash tags with the right information in there when I try to add a video after I've typed out a post. So I have to add the video first when using this and then type out whatever post I'm making......

Other then that it's a great code that's really been needed.......
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 7:48 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy