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
  #182  
Old 07-03-2002, 08:12 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I meant was, I took out the option to set the editor when you log on as a new user and regsiter. There is no way to check which browser they are using in the registeradult template so why have an option in there to turn something on that they will never see anyway if they don't use IE?

[quote] Boofo quoted:

I took out the code for setting the option for the editor in my registeradult template and put this code in it instead like you instructed.

Birdie501 quoted:

What do you mean with "took out"? You have to add the code not to replace!?
[quote]
Reply With Quote
  #183  
Old 07-04-2002, 02:01 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added this in registeradult:

right after the vBcode section </tr>


Code:
<tr>
	<td bgcolor="{ secondaltcolor}"><normalfont><b>Use the WYSIWYG interface on your message input screens?</b></normalfont><br>
	<smallfont>Enabling this option allows you to quickly manipulate different aspects of your posts including color, font, and size using an Microsoft Word-like interface.
	In addition you can click on smilies to have them inserted into your posts.
	You may disable this option if it causes problems for you.</smallfont></td>
	<td bgcolor="{ secondaltcolor}"><normalfont>
		<input type="radio" name="enablewysiwyg" value="yes" checked> yes
		<input type="radio" name="enablewysiwyg" value="no"> no
	</normalfont></td>
</tr>
This way on registration the user can choose to enable or disable this.

Also, remove the space from { secondaltcolor}.
Reply With Quote
  #184  
Old 07-04-2002, 02:16 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, but if you give them the option to turn it on or off in there and their browser won't support it, then won't that confuse them even more when it won't show up for them if they don't have the right browser?
Reply With Quote
  #185  
Old 07-04-2002, 03:12 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, if their browser won't support it, it won't show up. I amended the description to say "Only supported by IE 5.5 or higher".
Reply With Quote
  #186  
Old 07-04-2002, 03:58 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin,

Ok, I went ahead and put it in the registeradult template, but I changed it to have the "no" checked by default instead of yes. Do I need to put it in the regsitercoppa, too? And do I need to still have the below code in the registeradult template if I have the code you suggested in there?

Code:
<input type="hidden" name="enablewysiwyg" value="no">
Quote:
Originally posted by Erwin
Well, if their browser won't support it, it won't show up. I amended the description to say "Only supported by IE 5.5 or higher".
Reply With Quote
  #187  
Old 07-04-2002, 05:19 AM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
[B]What I meant was, I took out the option to set the editor when you log on as a new user and regsiter. There is no way to check which browser they are using in the registeradult template so why have an option in there to turn something on that they will never see anyway if they don't use IE?
Well, of course it checks which browser they are using, because you have the code for that in global.php!!
But it is not shown even if they use IE because the code i mentioned turn it off by default. I use that because i have literegistration installed, where the user only have to fill in username ,email and password., nothing else.

If the user want to use it and use IE he can turn it on in his options , otherwise he won't even see this option!
:laugh:
Reply With Quote
  #188  
Old 07-04-2002, 05:23 AM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Erwin
I added this in registeradult:

right after the vBcode section </tr>


Code:
<tr>
	<td bgcolor="{ secondaltcolor}"><normalfont><b>Use the WYSIWYG interface on your message input screens?</b></normalfont><br>
	<smallfont>Enabling this option allows you to quickly manipulate different aspects of your posts including color, font, and size using an Microsoft Word-like interface.
	In addition you can click on smilies to have them inserted into your posts.
	You may disable this option if it causes problems for you.</smallfont></td>
	<td bgcolor="{ secondaltcolor}"><normalfont>
		<input type="radio" name="enablewysiwyg" value="yes" checked> yes
		<input type="radio" name="enablewysiwyg" value="no"> no
	</normalfont></td>
</tr>
This way on registration the user can choose to enable or disable this.

Also, remove the space from { secondaltcolor}.
Hi Erwin,

why don't you use my change with $wysiwyg_option ??
If you do it like you did, the option will be also seen by users that don't use IE??!!
Reply With Quote
  #189  
Old 07-04-2002, 08:22 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, because I have installed Walstreat's addon too - so even if Netscape users switch it on, they won't see it as only IE 5.5 or higher users see the WYSIWYG interface.

It works fine on my site so far.
Reply With Quote
  #190  
Old 07-05-2002, 02:28 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know that this was probably already discussed in here, but can it be made to work in private messages, too?
Reply With Quote
  #191  
Old 07-05-2002, 02:41 AM
eiSecure's Avatar
eiSecure eiSecure is offline
 
Join Date: Dec 2001
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, you just need to extend the templates to the private message templates too.

We will try to provide private message support in our next update, for those who don't want to mess with their templates.
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 12:05 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.05950 seconds
  • Memory Usage 2,322KB
  • 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
  • (3)bbcode_code
  • (3)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
  • (2)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