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
  #162  
Old 07-03-2002, 01:22 AM
Martin CX Martin CX is offline
 
Join Date: Nov 2001
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When doing updates please remember that less is more in regards to size. It's enough that what was less than a 2K page (creating a new thread) is now more than 4K (horrific sizes, I know) - but the script runs slower the bigger it gets.

It would be very cool if your script was modular in the sense that it is easy to suss out what to delete because you don't need it, and it won't wreck the script. For example, I don't use smilies at all in my forums (my users vehemently abhors them!) so I don't need lots of extra code to do them properly - thus that is a part of the script I would delete.
Reply With Quote
  #163  
Old 07-03-2002, 01:36 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the updates - works real well.
Reply With Quote
  #164  
Old 07-03-2002, 01:47 AM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great hack, but I'd love to see some kind of image handling, not necessarily an upload feature, which is kind of redundant, but maybe something similar to the links button that will let you insert an image already on the web.

Pops up an http://_____________ box, accepts a url and inserts it in a wyswig way.

It's the first thing I looked for when I saw your post. sniff

Oh well, this is about 100x better than the standard stoneage editor!

Regards,

Matt
Reply With Quote
  #165  
Old 07-03-2002, 09:01 AM
WallStreat WallStreat is offline
 
Join Date: Oct 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Velocd
Great job Wallstreet, that defiantly helps! Alot of my members still didn't really know about the WYSIWYG editor because they had to switch it on, mostly the new registered users. One small problem is this WYSIWYG still has some bugs I and my members have noticed, if a member just doesn't want to use it I don't want to force them to install some older browser, I like to give them the option of turning it off....but that requires calling some queries.

as per birdie 501, incorp my mod & the user table hack, nake enabling wysiwyg as the default. hence for users who dun want to use it, they need to explicity trun it off:

if ( ($enableHTMLEdit == 1) AND ( ($bbuserinfo['enablewysiwyg']) ) ) {
eval("dooutput(\"".gettemplate("newthread_wysiwyg" )."\");");
} else {
eval("dooutput(\"".gettemplate("newthread")."\");" );
}

Quote:
Another problem though, you said it checks if the browser is older than IE 5.5, but what about other browsers? I know alot of people use Mozilla, and as I last heard Mozilla 1.0 isn't compatible with the WYSIWYG, will it also check this and bypass it?
my code checks for browers that are MS IE & running under Windows OS & version is 5.5 & 6.x . I'm still researching on a way to make this evern more foolproof
Reply With Quote
  #166  
Old 07-03-2002, 09:46 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to have it check for their browser and if it isn't IE 5.5 or 6.0, not even show the option to turn it on or off?
Reply With Quote
  #167  
Old 07-03-2002, 10:22 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
Is there any way to have it check for their browser and if it isn't IE 5.5 or 6.0, not even show the option to turn it on or off?
i got it, just have to write instructions!
Reply With Quote
  #168  
Old 07-03-2002, 10:41 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
Is there any way to have it check for their browser and if it isn't IE 5.5 or 6.0, not even show the option to turn it on or off?

Here we go:

Add a new template called wysiwyg_modifyoption:
Sorry but you have to translate back in english

PHP Code:
<tr>
<
td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF"><b>WYSIWYG Modul</b></normalfont></td>
</
tr>
<
tr>
    <
td bgcolor="#1C5780"><normalfont><b>M?chtest Du dasWYSIWYG Modul benutzen?</b></normalfont><br>
    <
smallfont>Wenn Du ja w?hlstkannst du den Text beim schreiben/?ndern eines Beitrages nach deinen W?nschen formatieren, ?hnlich wie in MS Word. (WYSIWYG What You See Is What You Get) <br><b><u>Achtung:</uFunktioniert nicht mit allen Internet browserIE 6empfohlen!</b>
</
smallfont></td>
    <
td bgcolor="#1C5780"><normalfont>
        <
input type="radio" name="enablewysiwyg" value="yes" $enablewysiwygcheckedja
        
<input type="radio" name="enablewysiwyg" value="no" $enablewysiwygnotcheckednein
    
</normalfont></td>
</
tr


in template modifyoptions

find:

PHP Code:
<tr>
<
td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF"><b>WYSIWYG Modul</b></normalfont></td>
</
tr>
<
tr>
    <
td bgcolor="#1C5780"><normalfont><b>M?chtest Du dasWYSIWYG Modul benutzen?</b></normalfont><br>
    <
smallfont>Wenn Du ja w?hlstkannst du den Text beim schreiben/?ndern eines Beitrages nach deinen W?nschen formatieren, ?hnlich wie in MS Word. (WYSIWYG What You See Is What You Get) <br><b><u>Achtung:</uFunktioniert nicht mit allen Internet browserIE 6empfohlen!</b>
</
smallfont></td>
    <
td bgcolor="#1C5780"><normalfont>
        <
input type="radio" name="enablewysiwyg" value="yes" $enablewysiwygcheckedja
        
<input type="radio" name="enablewysiwyg" value="no" $enablewysiwygnotcheckednein
    
</normalfont></td>
</
tr
and replace with

PHP Code:
$wysiwyg_option 


in member.php

find:

PHP Code:

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

PHP Code:

if ($enableHTMLEdit == 1) {
    if (
$bbuserinfo[enablewysiwyg]) {
     
$enablewysiwygchecked="checked";
     
$enablewysiwygnotchecked="";
  } else {
     
$enablewysiwygchecked="";
     
$enablewysiwygnotchecked="checked";
  }
    eval (
"\$wysiwyg_option .= \"".gettemplate("wysiwyg_modifyoption")."\";");
    } else {
    
$wysiwyg_option="";
  } 

Thats all.

It works for me, i just tested with Navigator 6.0 and nothing was shown!
Reply With Quote
  #169  
Old 07-03-2002, 11:05 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 hate to be a pain here, but can somebaody translate this part for me?

PHP Code:
<tr>
<
td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF"><b>WYSIWYG Modul</b></normalfont></td>
</
tr>
<
tr>
    <
td bgcolor="#1C5780"><normalfont><b>M?chtest Du dasWYSIWYG Modul benutzen?</b></normalfont><br>
    <
smallfont>Wenn Du ja w?hlstkannst du den Text beim schreiben/?ndern eines Beitrages nach deinen W?nschen formatieren, ?hnlich wie in MS Word. (WYSIWYG What You See Is What You Get) <br><b><u>Achtung:</uFunktioniert nicht mit allen Internet browserIE 6empfohlen!</b>
</
smallfont></td>
    <
td bgcolor="#1C5780"><normalfont>
        <
input type="radio" name="enablewysiwyg" value="yes" $enablewysiwygcheckedja
        
<input type="radio" name="enablewysiwyg" value="no" $enablewysiwygnotcheckednein
    
</normalfont></td>
</
tr
Reply With Quote
  #170  
Old 07-03-2002, 11:47 AM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just use this part from the original instruction file
Reply With Quote
  #171  
Old 07-03-2002, 12:08 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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();
  }
Quote:
Originally posted by Birdie501
just use this part from the original instruction file
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 05:38 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.07749 seconds
  • Memory Usage 2,358KB
  • 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
  • (6)bbcode_php
  • (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
  • (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