Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
WYSIWYG Post Editor v1.0 Details »»
WYSIWYG Post Editor v1.0
Version: 1.00, by eiSecure eiSecure is offline
Developer Last Online: Apr 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-24-2002 Last Update: Never Installs: 64
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 06-26-2002, 05:07 AM
Superman53142's Avatar
Superman53142 Superman53142 is offline
 
Join Date: Feb 2002
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Velocd
Hey Superman, any idea of how I can get the default font to be Verdana instead of Times New Roman? Since that is what most of my members are used to. Also, have you noticed or not if the default size is the normal size? If not, it would be great to preset that to the normal vbulletin size.
I think it can be done. The default font is correct for Times New Roman, and when submitted, if you don't select a size, it will print out no size, hence Verdana will be the default size, even though it is a bigger font than Times New Roman. If I were to make Verdana the default, it would be Verdana, size 2 (which should be about 10px or so).

EDIT: OK, I have this done. I will release it tomorrow along with the other requests. I know it would be a MAJOR pain in the butt to upgrade everytime a new request was furfilled, so I prefer to do lump upgrades. Does anyone else think Alex (eiSecure) is going to be very surprized at the number of changes that will be done by the time he wakes up tomorrow
Reply With Quote
  #63  
Old 06-26-2002, 05:18 AM
Superman53142's Avatar
Superman53142 Superman53142 is offline
 
Join Date: Feb 2002
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, if you really must have this change now, right below the <iframe> there is a <script> tag. Insert this right below the <script....> tag:

idContent.document.write("<style>body { font-family:Verdana; font-size: 12px }</style>");
Reply With Quote
  #64  
Old 06-26-2002, 05:33 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can just replace this:
Code:
$threadengine = $DB_site->query_first("SELECT enablewysiwyg FROM user WHERE userid='$bbuserinfo[userid]'");

  if($threadengine[enablewysiwyg]){ eval("dooutput(\"".gettemplate("newthread_wysiwyg")."\");");

  } else { eval("dooutput(\"".gettemplate("newthread")."\");"); }
With:
Code:
  if($bbuserinfo['enablewysiwyg']) {
     eval('dooutput("'.gettemplate('newthread_wysiwyg').'");');
  } else {
     eval('dooutput("'.gettemplate('newthread').'");');
  }
No query needed.
Reply With Quote
  #65  
Old 06-26-2002, 05:34 AM
Superman53142's Avatar
Superman53142 Superman53142 is offline
 
Join Date: Feb 2002
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So $bbuserinfo works like one of the super-duper-global PHP variables like $HTTP_POST_VARS?
Reply With Quote
  #66  
Old 06-26-2002, 05:36 AM
Superman53142's Avatar
Superman53142 Superman53142 is offline
 
Join Date: Feb 2002
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm outta here. I'll be back in the morning; it's pretty late here.
Reply With Quote
  #67  
Old 06-26-2002, 05:37 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the install file it says:
Quote:
11. Extract all the images included in this zip to a new folder called 'toolbars' under your forum's images folder.
They need to be in the 'toolbar' folder, actually.
Reply With Quote
  #68  
Old 06-26-2002, 05:39 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Superman53142
So $bbuserinfo works like one of the super-duper-global PHP variables like $HTTP_POST_VARS?
No, but $bbuserinfo is an array that contains all information from the user and userfield tables for the browsing user.

Anyway, just finished installing this on my local machine. What can I say... touche.
Reply With Quote
  #69  
Old 06-26-2002, 05:42 AM
Superman53142's Avatar
Superman53142 Superman53142 is offline
 
Join Date: Feb 2002
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly

No, but $bbuserinfo is an array that contains all information from the user and userfield tables for the browsing user.

Anyway, just finished installing this on my local machine. What can I say... touche.
Make the default text Verdana, it looks too sweet!!! Thanks to VeloCD for the idea. I posted like a few posts up on how I did it; just idContent.document.write("<STYLE>BODY { font-family: Verdana; font-size: 12px }</STYLE>");
Reply With Quote
  #70  
Old 06-26-2002, 05:44 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shouldn't it translate the vB Code back to visual when you edit a post? I can see the [b] and all that.
Reply With Quote
  #71  
Old 06-26-2002, 05:45 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Superman53142
Make the default text Verdana, it looks too sweet!!! Thanks to VeloCD for the idea. I posted like a few posts up on how I did it; just idContent.document.write("<STYLE>BODY { font-family: Verdana; font-size: 12px }</STYLE>");
Yes I already did that, and it does look very very good. Great job like I said.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:18 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05112 seconds
  • Memory Usage 2,318KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete