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
  #172  
Old 07-03-2002, 12:20 PM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
Which section should this go under? I put it under the start modify options section.

Code:
if ($enableHTMLEdit == 1) {
    if ($bbuserinfo[enablewysiwyg]) {
     $enablewysiwygchecked="checked";
     $enablewysiwygnotchecked="";
  } else {
     $enablewysiwygchecked="";
     $enablewysiwygnotchecked="checked";
  }
    eval ("\$wysiwyg_option .= \"".gettemplate("wysiwyg_modifyoption")."\";");
    } else {
    $wysiwyg_option="";
  }
There are 4 sections in there with:

Code:
if ($bbuserinfo[userid]==0 or $permissions['canmodifyprofile']==0) {
    show_nopermission();
  }

yep sorry, it is
// ############################### start modify options ###############################
Reply With Quote
  #173  
Old 07-03-2002, 12:44 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Afetr moving it there, it doesn't show up in the options menu now. Do I have to install the fix by Walstreet to make it work? I don't want it enabled by default. I just want it to only show in the options if you have the browser needed for it.
Reply With Quote
  #174  
Old 07-03-2002, 12:57 PM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes you have to and also make the changes i mentioned above!
if you do all i did it will work, i promise!
Reply With Quote
  #175  
Old 07-03-2002, 01:03 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, Birdie501, now I am completely lost. I did everything you said in Post #167. What else do i have to do to make it work. I need to do Walstreet's fix right? What else? And will it make it so it is off by default like I want it to be? It's kindof confusing. Please point me to the posts I need to do.

Quote:
Originally posted by Birdie501
Yes you have to and also make the changes i mentioned above!
if you do all i did it will work, i promise!
Reply With Quote
  #176  
Old 07-03-2002, 01:20 PM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hope nobody will kill me, because i wrote several pages in this thread

Ok you should do:

1) https://vborg.vbsupport.ru/showthrea...206#post268206
2) https://vborg.vbsupport.ru/showthrea...340#post268340
3) https://vborg.vbsupport.ru/showthrea...651#post268651

then you also should put this into your register template:
(not sure if it is ok??)
For all new members it will be off! For the old one you have to use the mysql code mentioned in this thread somewhere!

PHP Code:
<input type="hidden" name="enablewysiwyg" value="no"
Reply With Quote
  #177  
Old 07-03-2002, 03:10 PM
ziggy ziggy is offline
 
Join Date: Jul 2002
Location: Central, OR USA
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey everyone...great hack!

I was wondering what all is included in the WYSIWYG download on page 1 of this thread & what I still have to change myself?
I skipped pages 3-9 =)

I'll be adding .js & actionscript syntax highlighting as well, I also need a SWF button alongside the IMG buttton so I can post SWF's under 50k (I think this SWF butt might already exist & is just commented out in 2.2.1? (anyone confirm/deny?))

I'm updating to 2.2.6 today!

Thanx for any answers/help you can give me!...ziggy
Reply With Quote
  #178  
Old 07-03-2002, 03:35 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do I need to do what is in this post to all 3 php files (newthread, newreply and editpost)?

And where is this and what is it?

Quote:
For all new members it will be off! For the old one you have to use the mysql code mentioned in this thread somewhere!
One last thing. What template do I put this in and where?

Code:
<input type="hidden" name="enablewysiwyg" value="no">
Reply With Quote
  #179  
Old 07-03-2002, 04:04 PM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
Do I need to do what is in this post to all 3 php files (newthread, newreply and editpost)?


And where is this and what is it?


Yes put it to all three files, but you have to change the template names. That should be logic.


Quote:
Originally posted by Boofo
One last thing. What template do I put this in and where?

Code:
<input type="hidden" name="enablewysiwyg" value="no">
you put this to your registration template called : registeradult and if you use the coppa form also put it in registercoppa.

Just have a look to this templates and put it right behind the other similar fields, e.g.
<input type="hidden" name="showavatars" value="yes">

and last but not least:
Quote:
For all new members it will be off! For the old one you have to use the mysql code mentioned in this thread somewhere!
in phpmyadmin run this query to set it off!
PHP Code:
alter table user
alter column enablewysiwyg set 
default '0'
:classic:
Reply With Quote
  #180  
Old 07-03-2002, 04:28 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ouch! That hurt!

Quote:

Yes put it to all three files, but you have to change the template names. That should be logic.
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.

Quote:

you put this to your registration template called : registeradult and if you use the coppa form also put it in registercoppa.

Just have a look to this templates and put it right behind the other similar fields, e.g.
<input type="hidden" name="showavatars" value="yes">
And done! Thank you very much for all of the help.

Quote:

in phpmyadmin run this query to set it off!
PHP Code:
alter table user
alter column enablewysiwyg set 
default '0'
:classic:
Reply With Quote
  #181  
Old 07-03-2002, 06:09 PM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
Ouch! That hurt!



heheh

Quote:
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.
What do you mean with "took out"? You have to add the code not to replace!?

Quote:
And done! Thank you very much for all of the help.
You`re welcome!
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 01:32 AM.


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.06200 seconds
  • Memory Usage 2,330KB
  • 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
  • (5)bbcode_code
  • (3)bbcode_php
  • (12)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