PDA

View Full Version : "SWF" Javascript shortcut button on posting screens


plattopus
06-19-2002, 10:00 PM
Insert [SWF] vBcode shortcut button to posting screens
Now out of beta!

I wrote this to help someone out from vbulletin.com, but after realising it is actually a hack I deleted it and converted it into text instructions.

What does it do?

When a user is posting a new message (and they have the option turned on in their User CP), there is a set of input buttons designed to be "shortcuts" to some of the more popular vBcodes (such as url, img, etc). This hack adds an SWF button next to the IMG button.

The user is presented with a popup in which they enter values (url, width, height) to be converted to an SWF vBcode, and the code is automatically inserted into the message (just like the other vBcodes).

Note: this hack also outlines the process involved in setting up the SWF tag

Extra Notes

- I can be reached via PM for limited support (this is my first hack).

- If there's a demand for it, I will also include other vBcodes to the hack (so reply if you want more!)

[disable] vBcode has been requested, and is being worked on.

plattopus
06-20-2002, 07:29 AM
Screenshot 1: The posting screen

plattopus
06-20-2002, 07:29 AM
Attributes entry

plattopus
06-20-2002, 07:30 AM
URL entry

plattopus
06-20-2002, 07:31 AM
Finished tag

Velocd
06-20-2002, 07:31 AM
umm, what was the purpose of moving this out of beta? Unless there has been a change, which I don't see any. Or where you trying to clean the last thread up? Or try to make it more noticeable?--because now there are 2 hacks of the same on the home page. :p

plattopus
06-20-2002, 07:33 AM
I will be deleting the beta one, because it's no longer beta.

It was only posted in there to be tested by other people, but now that it works I'll actually release it where people can see it.

plattopus
06-20-2002, 07:36 AM
By the way, if you don't have a copy of your HTML-enabled-forums-only modification, I suggest you get one now... because it's about to be deleted.

snyx
06-20-2002, 02:36 PM
not bad man, but I dont want users posting 5MB swf files they made in swish. gotta be some restrictions...

FleaBag
06-20-2002, 02:41 PM
A runtime error has occured.
Do you wish to debug?

Line: 48
Error: 'swf_txt' is undefined


This appears when I place the mouse pointer over the SWF button. Any ideas? Thanks.

FleaBag
06-20-2002, 04:41 PM
OK figured it out, only took two ticks. After you paste the code into the template, you need to remove the   before the SWF button, otherwise you get runtime errors. Running smoothly now on 2.2.6. Thanks! :)

xug
06-20-2002, 07:43 PM
Is it possible to put an extra option for the Admin where he can switch this option on/off for each member individually??
Where Off is standard!!

Velocd
06-20-2002, 09:11 PM
I have some extra editions I added if you view the beta hack of this, for example only allowing it in HTML enabled forums / only allowing it in specific forums (by their id). Take alook at the beta hack for the instructions on how to install.

I could probably figure out your request but I'm short on time and need to continue working on my forums, sorry ;)

plattopus
06-21-2002, 04:35 AM
Originally posted by xug
Is it possible to put an extra option for the Admin where he can switch this option on/off for each member individually??
Where Off is standard!!
I'm sure there would be, but it's far beyond my capabilities. :(

Princeton
06-22-2002, 11:20 PM
Just so you are aware ... flash footers have been known to be used as a tool to fetch a users password via it's cookie. This is one reason why FLASHKIT has banned flash footers.

xug
06-24-2002, 03:20 AM
Originally posted by princeton
Just so you are aware ... flash footers have been known to be used as a tool to fetch a users password via it's cookie. This is one reason why FLASHKIT has banned flash footers.

Thanks for the info, I have removed this hack option and wait till somebody can make an addition like I asked a few postings up!!

FleaBag
09-04-2002, 06:44 AM
Working with 2.2.7, thanks. :)

jibious
04-26-2003, 06:59 PM
...kinda late in replying, but thanks a bunch. had someone who wanted a flash movie on a post and i had been thinking of installing for quite a while now but always forgot.

*installed*

...working fine on 2.2.8

mitomcua
07-18-2003, 08:15 AM
Anyway to make the xxx.swf center within the post? now it is all the way to the left.

Thanks,
m