There you are: Flash regex for the ones that need it
This adds a new bbcode option to include flash-files in posts
syntax:
http://domein.com/path/to/swf.swf
Instructions (Note: The instructions in the attachment on the next post are more accurate since there seems to be a bug with \\; \\5 gets replaced by\\1)
Backup admin/functions.php
Open admin/functions.php
after: "/(\[)(php)(])(\r\n)*(.*)(\[\/php\])/siU",
That's it! Let me know if it works (didn't used it at my server)
For some strange reason \\5 gets replaced with \\1, so \\1 should be: \\5
this get's a little complicated (strange bug \\1 gets replaced with \\5), see my attachment for valid instructions:
hmz....First it gets requested a couple of times and now no-one needs it?
I'll give it a try
You don't need to do that at all, you can simply create a bb code from the control panel using the {option} I've done it and it worked great!
yeah, I know that (I've written that utitity myself), but there is a limitation on that and that's that it doesn't accept more than 1 parameter. For this bbcode there are 2 parameters necessary: width and height..
I may rewrite the custom-bbcode thingy some day to allow this...
i'm trying it out right now. seems to work fine
Originally posted by Mas*Mind
yeah, I know that (I've written that utitity myself), but there is a limitation on that and that's that it doesn't accept more than 1 parameter. For this bbcode there are 2 parameters necessary: width and height..
I may rewrite the custom-bbcode thingy some day to allow this...
The code I'm using accept all flash parameters, it doesn't make you use them though, you cna use only the movie src, but if you want to add any othe parameter it works as well.
I even tested with transparent backgrounds!
yeah, but then you probably do it like this
swf/url
It's a solution, but not the nicest solution..
actually no, the way I have set up you would use a code like this:
and it works fine you can also limit the parameters or have none, and display the movie on its custom size just by having this code:
i have a verson 2 beta 3 of vb. I am trying to implement this hack but it just doesnt work.
I even updted threads and followed instructions twice through.
What shall i do ? I need a flash hack so i can edit boy the y size and x size
thank you .....
Is there any way to set limitations on the file that the users can add.
I want to use this for users sigs...so I don't want it too large.
Also .. what about limiting regular image size in users sigs? Anyone know anything about that?
If you are talking about the hack you have to ask Mas Mind, if you are talking about the BB code I posted, then yes you can set up a fixed width and height, the problem is that it will be fixed so they can't have anything smaller either.
you can do this simply by setting it up on the code replacement.
It would go like this: