vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   "SWF" Javascript shortcut button on posting screens (https://vborg.vbsupport.ru/showthread.php?t=40064)

plattopus 06-19-2002 10:00 PM

"SWF" Javascript shortcut button on posting screens
 
Insert [disable][SWF][/disable] 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][disable][/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

Quote:

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

Quote:

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

Quote:

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


All times are GMT. The time now is 03:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01930 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete