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)

Erwin 07-01-2002 01:22 AM

Works beautifully!!!

You are indeed Superman of Javascript! ;)

Superman53142 07-01-2002 01:38 AM

Quote:

Originally posted by Erwin
Works beautifully!!!

You are indeed Superman of Javascript! ;)

LOL, I guess that's what happens when you are oblivious to the existance of PHP for a few years :) :p

I'm happy that it's working well for ya :)

Birdie501 07-01-2002 05:52 AM

Thanks!!!!!! You make my life easier till vb3 comes out :-)

WallStreat 07-02-2002 07:07 AM

This is a great hack & i took the liberty to amend some of the codes to suit my needs i.e. instead of allowing users to choose to use this editor (which requires amending the database), this editor will show only if user's browser is Microsoft IE version 5.5 (windows version) & above:
PHP Code:

Open global.php, and find the following:
-----
// ###################### Start sessions #######################
-----

Add above it with this code:
-----
// // HTMLEdit Hack
if (eregi("Win",$HTTP_USER_AGENT) && (eregi("MSIE 5.5",$HTTP_USER_AGENT) || eregi("MSIE 6.",$HTTP_USER_AGENT))) { // browser is Win IE 5.5 & abv
    
$enableHTMLEdit 1;
} else {
    
$enableHTMLEdit 0;
}
// // HTMLEdit Hack

3. Open newthread.php, and find the following:
-----
eval(
"dooutput(\"".gettemplate("newthread")."\");");
-----

Replace it with this code:
-----
  if(
$enableHTMLEdit == 1){ eval("dooutput(\"".gettemplate("newthread_wysiwyg")."\");");
  } else { eval(
"dooutput(\"".gettemplate("newthread")."\");"); }
-----

4. Open newreply.php, and find the following:
-----
eval(
"dooutput(\"".gettemplate("newreply")."\");");
-----

Replace it with this code:
-----
  if(
$enableHTMLEdit == 1) { eval("dooutput(\"".gettemplate("newreply_wysiwyg")."\");");
  } else { eval(
"dooutput(\"".gettemplate("newreply")."\");"); }
-----

5. Open editpost.php, and find the following:
-----
eval(
"dooutput(\"".gettemplate("editpost")."\");");
-----

Replace it with this code:
-----
  if(
$enableHTMLEdit == 1) { eval("dooutput(\"".gettemplate("editpost_wysiwyg")."\");");
  } else { eval(
"dooutput(\"".gettemplate("editpost")."\");"); }
-----
----- 


eiSecure 07-02-2002 01:05 PM

That's a very nice mod!:)

Birdie501 07-02-2002 01:27 PM

@eisecure

can you update the install file with the modification from Wallstreat ? Thanks!

@wallstreat
i wanted this and never found. I gonna include this to my index page as well. Thanks!

eiSecure 07-02-2002 03:09 PM

Well, I'm going to release the install file with full updates and everything, so people don't have to keep on updating their installations.

I'm going to put a link to this post for now, and when we have a few of the other bugs worked out, I'll release an official update to it.:)

BigJohnson 07-02-2002 03:37 PM

With the new big update eiSecure your saying your going to release. Will it have the mod that wallstreet had or is it going to have the way it was made to be with the usercp because I really like wallstreets idea with the mod.

eiSecure 07-02-2002 03:57 PM

It'll probably be Wallstreet's hack, but I'm not too sure just yet...

What are some other people's experiences with Wallstreet's mod?

Superman53142 07-02-2002 04:08 PM

Hey, Alex, I've still got a few more things coming up, so as soon as I get those done we can release a 1.1 version.


All times are GMT. The time now is 01:19 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.01253 seconds
  • Memory Usage 1,754KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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