YAFLogo

cpjok
  • cpjok
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
Hey dose anyone know how i can get my YAF to allow SWF siggys.

i have this good SWF file siggy but i dont know how to get it to allow them

Thats the code i want it to allow

<center><embed src=http://www.blood-zone.com/images/KOD.swf height=173 width=440></embed>
Sponsor

test2005
15 years ago
Have you tried adding a BBcode Extension entry for SWF files?
.....the man in black fled across the desert..........and the gunslinger followed.....
cpjok
  • cpjok
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
nope as i dont know what that is
test2005
15 years ago
cpjok wrote:

nope as i dont know what that is



If your running v1.9.3.3, go to Admin >> BBCode Extensions and click the "Add" link.

You can review the "YouTube" extension already included to get an idea of what needs to go where.

Don't ask me for RegEx advise! I suck at it! :P

HTH

:)
.....the man in black fled across the desert..........and the gunslinger followed.....
cpjok
  • cpjok
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
this is version checker thing

Version Check
You are running Yet Another Forum.net version 1.9.1.8.

The latest available version is 1.9.1 released 01/09/2007.


and i carnt find it
Steviepunk
15 years ago
Don't suppose anyone has had a look at the RegEx for doing the flash. I've had a look a the YouTube RegEx but I can't figure out how to include width and height parameters, what I've come up with looks like this:

\[flash (?([1-9]*)): (?([1-9]*))\](?(.*?))\[/flash \]
(note, there should be no space after the :
I just had to add one otherwise it would show as a smily!)

I'm not 100% sure that is correct though, it should match on the following [flash 450:300]myflash.swf[/flash]

Anyone able to advise?

I'm on 1.9.1.8, so I'll need top code this in (will upgrade to 1.9.3 at some point, but I don't think that will be for a while)
vash
  • vash
  • 100% (Exalted)
  • YAF Commander
15 years ago
I hope that the good hearted men and women at this forum will provide us enlightenment with BBCodes. I also wanted to create BBCodes to Embed videos from Veoh, MetaCafe, Google, Yahoo and The likes. But the RegEx is too complicated for me to comprehend. 😞

Let's just wait for Jaben or Test2005 for their suggestions :-d
Steviepunk
15 years ago
ok, I got the flash stuff figured out

Here is the match expression


\[flash (?<width>([0-9]+)):(?<height>([0-9]+))\](?<inner>(.*?))\[/flash\]

This is the replace function

<object width="${width}" height="${height}"><param name="movie" value="${inner}"></param><embed src="${inner}" type="application/x-shockwave-flash" width="${width}" height="${height}"></embed></object>

or the plain embed tag you asked about

<embed src="${inner}" type="application/x-shockwave-flash" width="${width}" height="${height}"></embed>

This will match the following

[flash 400:300]test.swf[/flash]

with 400 being the width and 300 being the height and, of course, test.swf being the file/URL you want to show.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button