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.


All times are GMT. The time now is 01:41 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.00929 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete