Author |
Topic |
dayve
Forum Moderator
USA
5820 Posts |
|
Adul
Starting Member
37 Posts |
Posted - 13 August 2001 : 18:00:36
|
Sweet, I was trying to figure a way out myself, this helps a lot.
Does this work iwth version 3.3?
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 August 2001 : 04:43:05
|
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 |
|
|
bjlt
Senior Member
1144 Posts |
Posted - 17 August 2001 : 06:18:41
|
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
|
|
|
Raichelle
Junior Member
370 Posts |
Posted - 17 August 2001 : 11:22:29
|
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 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 August 2001 : 13:18:38
|
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 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 August 2001 : 13:21:09
|
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 |
|
|
Raichelle
Junior Member
370 Posts |
Posted - 17 August 2001 : 18:00:19
|
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
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 August 2001 : 20:18:32
|
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 |
|
|
Raichelle
Junior Member
370 Posts |
Posted - 17 August 2001 : 22:05:00
|
actually i think u gave it to me but its ok if you don't remember i notice you been busy a little
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 August 2001 : 22:55:41
|
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 |
|
|
Raichelle
Junior Member
370 Posts |
Posted - 17 August 2001 : 23:03:41
|
lol i used that code maybe thats why it didn't work
thanks dayve i will be back in about hour an hour then
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 August 2001 : 23:08:48
|
the shadow code is now at the other post (see link above)
Dayve |
|
|
kylem
Starting Member
6 Posts |
Posted - 18 August 2001 : 18:15:57
|
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...
|
|
|
kylem
Starting Member
6 Posts |
Posted - 18 August 2001 : 18:16:37
|
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
|
Topic |
|