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)
-   -   WYSIWYG Post Editor v1.0 (https://vborg.vbsupport.ru/showthread.php?t=40283)

eiSecure 06-24-2002 10:00 PM

WYSIWYG Post Editor v1.0
 
WYSIWYG Post Editor

Description:
Lets you have a Microsoft Word/FrontPage-like editing box when you reply to threads, create new threads, and/or edit posts.

Features:
- Supports BBCode
- HTML is converted to BBCode
- Gives user a visual layout of what he/she is typing
- Supports dynamic bolding/underlining/etc.
- Has cool-looking Office XP-styled buttons.:bunny:
- Allows users to choose wether to use this editor, or vB's default one.
- Makes BBCodes obsolete
- And many more...:bunny:

Installation Time:
About 20-30 minutes.

Credits:
Toolbar, Original Coding and Design: eiSecure (http://www.eisecure.com)
Debugging & HTML to BBCode Conversion: Superman53142 (http://www.aoaforums.com)
User Options for WYSIWYG: Velocd (http://www.diffusion4.com)

NOTE:UNLIKE PREVIOUS VERSIONS, THIS ONE DOES NOT REQUIRE THAT YOUR FORUM HAS HTML ENABLED IN POSTS!:)

You can view a demo of the hack in action here: http://forums.eisecure.com

If you encounter any problems or if anything doesn't work right, or if the instructions aren't correct, then please post them here.

If you want to limit this hack to people who are using IE5.5 or above, click here for instructions.

Thanks,
Alex

Superman53142 06-25-2002 09:01 PM

Cool. I'm installing right away :)

Velocd 06-25-2002 09:19 PM

Does the VBcode work though? Such as typing [php] will auto format? And also how about smilies? Will clicking on them insert them into the editor? Other than those two issues, this is defiantly excellent!

One request though: In the original WYSIWYG editor that was posted up in the request section, it had a feature to upload an image by browsing for it on your computer. Any way to implement that?

Velocd 06-25-2002 09:25 PM

Oh, and eiSecure you might want to clean up the install.txt file, it's a bit sloppy and hard to follow (kinda crunched up).

;)

eiSecure 06-25-2002 09:34 PM

Quote:

Originally posted by Velocd
Does the VBcode work though? Such as typing [php] will auto format? And also how about smilies? Will clicking on them insert them into the editor? Other than those two issues, this is defiantly excellent!

One request though: In the original WYSIWYG editor that was posted up in the request section, it had a feature to upload an image by browsing for it on your computer. Any way to implement that?

Yes, VBCode works fine, however, it is not displayed. What you see on the page is HTML, but when you submit, it's automatically converted to BBCode, so there shouldn't be any security issues there.:)

Smilies will auto-insert, but again, they won't be displayed images.

Images would be possible, if there is a way for the user to upload multiple files to the server.

Also, since you say the install is messy, how about you make one?;) :cool: :bunny:

Velocd 06-25-2002 09:55 PM

Quote:

Originally posted by eiSecure
Also, since you say the install is messy, how about you make one?;) :cool: :bunny:
hmmmmmmm....did I say sloppy? I meant it's perfect, *cough*but could be better*cough*. I'm busy at the moment though, and I'm sure people will be able to navigate their way through it (hopefully not destroying their forums in the process--j/k ;))

Quote:

Originally posted by eiSecure
Yes, VBCode works fine, however, it is not displayed. What you see on the page is HTML, but when you submit, it's automatically converted to BBCode, so there shouldn't be any security issues there.:)

Smilies will auto-insert, but again, they won't be displayed images.

Clickable smilies are not working for me :(
Sure, I can type a smilie face, which is basically a : and (, but the left box with smilies in them does not work when you click on it. Instead, I get a run time error my Microsoft Script Debugger picks up...

One solution to this is fixing it so the [get more] link works also, because it doesn't for me :( Once that works, users will at least know what vbcode to type to get a smilie to work.

Attached is a screenshot of the problem.

ALSO: where did the alignment button go? That was way cool, but now its gone...:(

Superman53142 06-25-2002 09:55 PM

BTW, I'm working on an update (some people like to rush out with releases ;)) that will insert the smilies as pictures into the WYSIWYG editor for visual purposes :)

Also, there is a bug in the templates that I noticed. You will have to add the following to all of the ****_wysiwyg templates:

Code:

<script language="Javascript" src="vbcode2.js"></script>
<script language="Javascript" src="vbcode_language.js"></script>

Alex is gonna fix the files ASAP :)

eiSecure 06-25-2002 09:57 PM

It's already fixed.:)

Just update your _wysiwyg templates with the ones in the first post.

Superman53142 06-25-2002 09:57 PM

Quote:

Originally posted by Velocd
Clickable smilies are not working for me :(
Sure, I can type a smilie face, which is basically a : and (, but the left box with smilies in them does not work when you click on it. Instead, I get a run time error my Microsoft Script Debugger picks up...

ALSO: where did the alignment button go? That was way cool, but now its gone...:(

First paragraph, see my last post. I just got this installed too :p

Was using outdated versions of the templates for coding purposes.

Also, there is no (that I know of, help me out here guys :)) equivilant "center" or "right" function for vbCode.

eiSecure 06-25-2002 09:58 PM

Quote:

Originally posted by Velocd


hmmmmmmm....did I say sloppy? I meant it's perfect, *cough*but could be better*cough*. I'm busy at the moment though, and I'm sure people will be able to navigate their way through it (hopefully not destroying their forums in the process--j/k ;))



Clickable smilies are not working for me :(
Sure, I can type a smilie face, which is basically a : and (, but the left box with smilies in them does not work when you click on it. Instead, I get a run time error my Microsoft Script Debugger picks up...

One solution to this is fixing it so the [get more] link works also, because it doesn't for me :( Once that works, users will at least know what vbcode to type to get a smilie to work.

Attached is a screenshot of the problem.

ALSO: where did the alignment button go? That was way cool, but now its gone...:(

heh..it was a bug caused by your addon.:p

It's fixed now. The align buttons were removed because they were supported only by HTML, and not BBCode.

You can still use tabs, though.:)


All times are GMT. The time now is 02:24 PM.

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.03669 seconds
  • Memory Usage 1,749KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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