Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: Embedding Flash
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

dayve
Forum Moderator

USA
5820 Posts

Posted - 13 August 2001 :  12:36:38  Show Profile  Visit dayve's Homepage
I've seen this request several times and teamed up with Iron Heart of http://www.someplacesomewhere.com and got it working rather nicely.

DEMO:
Click Here

SYNTAX:
[flash width::height]someflash.swf[/flash]

CODE:
http://www.nineinchnailz.com/forum/flash.txt (had problems posting code here???)

that's it... enjoy...


Dayve


Edited by - dayve on 13 August 2001 12:42:06

Adul
Starting Member

37 Posts

Posted - 13 August 2001 :  18:00:36  Show Profile  Visit Adul's Homepage  Send Adul an AOL message  Send Adul an ICQ Message
Sweet, I was trying to figure a way out myself, this helps a lot.


Does this work iwth version 3.3?



Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 August 2001 :  04:43:05  Show Profile  Visit dayve's Homepage
just added the ability to apply width and height attributes to images as well...

Image Resizing

In order not to conflict with the flash width and height code in inc_functions, the syntax may appear odd to look at but it really is the best way I could do it.


Dayve
Go to Top of Page

bjlt
Senior Member

1144 Posts

Posted - 17 August 2001 :  06:18:41  Show Profile
how to make it an admin/mod only feature?
a user now can upload a small pix and set it large.
or we can set a limit or autoresize

Go to Top of Page

Raichelle
Junior Member

370 Posts

Posted - 17 August 2001 :  11:22:29  Show Profile
lol still trying figure out how to have this mod so that when users can just click on the buttons instead of typing [flash]daljdf[/flash] or whatever..

so can someone please be nice enough to post up the codes to add on the inc_code.asp because i already have buttons to use for the flash, glow, flip and sound i just need the code for them to work

Edited by - raichelle on 17 August 2001 11:27:32
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 August 2001 :  13:18:38  Show Profile  Visit dayve's Homepage
quote:

lol still trying figure out how to have this mod so that when users can just click on the buttons instead of typing [flash]daljdf[/flash] or whatever..

so can someone please be nice enough to post up the codes to add on the inc_code.asp because i already have buttons to use for the flash, glow, flip and sound i just need the code for them to work

Edited by - raichelle on 17 August 2001 11:27:32



the trick about this Raichelle is the variables needed for width and height, it would be easy to add the button but the member would have to remember to insert the width and height numbers. otherwise when they click on the button it would come out something like this:

[flash :: ][/flash]

if that scenario is desireable then all you have to do is add this:

inc_code.asp
============
function flash() {
if (helpstat) {
alert("Inserts Flash tags, remember to enter width and height attributes before and after the ::");
} else if (basic) {
AddTxt="";
AddText(AddTxt, "[flash :: ]", "[/flash]");
} else {
txt=prompt("URL to flash file (.swf)","Text");
if (txt!=null) {
AddTxt="[flash :: ]"+txt+"[/flash]";
AddText(AddTxt);
}
}
}

inc_post_buttons.asp
====================

<a href="Javascript:flash();"><img src="yourFlashIconImage" border="0"></a>




Dayve
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 August 2001 :  13:21:09  Show Profile  Visit dayve's Homepage
quote:

how to make it an admin/mod only feature?
a user now can upload a small pix and set it large.
or we can set a limit or autoresize



I thought of that myself, and thought I could throw a routine around the function in inc_functions.asp but I am not convinced that would be the best approach. This is my problem with coding, I always want the most efficient ways of doing things and I can't think sometimes which is why I rely heavily on a kick in the pants from the likings of the talent around here

Dayve
Go to Top of Page

Raichelle
Junior Member

370 Posts

Posted - 17 August 2001 :  18:00:19  Show Profile
o yes it was easy to change the inc_code.asp file i was thinking they suppose be differen

but i have one problem.. the code u gave me for shadow text don't work
i just tested it when someone post using the shadow code its going show [shadow] text [/shadow] on there post

did i messed up or the code was not correct?

rai

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 August 2001 :  20:18:32  Show Profile  Visit dayve's Homepage
I don't recall giving you shadow code, I think I gave you the microsoft syntax perhaps but I haven't done the shadow code, I will later....

Dayve
Go to Top of Page

Raichelle
Junior Member

370 Posts

Posted - 17 August 2001 :  22:05:00  Show Profile
actually i think u gave it to me
but its ok if you don't remember i notice you been busy a little


Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 August 2001 :  22:55:41  Show Profile  Visit dayve's Homepage
quote:

actually i think u gave it to me
but its ok if you don't remember i notice you been busy a little



no, that was just mentioning the IE syntax for the filter not ubb code type tags, but that could be converted. here is the original discussion on this matter:

http://forum.snitz.com/forum/topic.asp?ARCHIVE=&TOPIC_ID=14553

I will make the code for ya in about 20 mins or so...

Dayve
Go to Top of Page

Raichelle
Junior Member

370 Posts

Posted - 17 August 2001 :  23:03:41  Show Profile
lol i used that code maybe thats why it didn't work

thanks dayve i will be back in about hour an hour then

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 August 2001 :  23:08:48  Show Profile  Visit dayve's Homepage
the shadow code is now at the other post (see link above)

Dayve
Go to Top of Page

kylem
Starting Member

6 Posts

Posted - 18 August 2001 :  18:15:57  Show Profile
Realize that adding Flash is a security issue, because javascript can be embedded in flash, and cgi's can be called transparently.

What's to prevent me from using javascript in Flash to grab the user's cookie (username & pw), then send them to a cgi script....no one would ever know...

Go to Top of Page

kylem
Starting Member

6 Posts

Posted - 18 August 2001 :  18:16:37  Show Profile


Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 19 August 2001 :  00:07:22  Show Profile  Visit dayve's Homepage
http://html.about.com/library/weekly/aa082498.htm

hmmm, I don't think you are giving an accurate statement, you need to support your claim with some facts... by all means, please do, I'd be interested...

Dayve
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07