vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Project Tools (https://vborg.vbsupport.ru/forumdisplay.php?f=266)
-   -   Wysiwyg (https://vborg.vbsupport.ru/showthread.php?t=267107)

cosy 07-19-2011 11:09 PM

Wysiwyg
 
seams there is no functions_WYSIWYG.php on the includes folder and if the user have WYSIWYG editor it cant post bugs

HMBeaty 07-19-2011 11:14 PM

If you are using 4.1.4 or higher, you are correct. The functions_wysiwyg.php file no longer exists due to the new CKEditor being implemented. There is currently no fix for this

PitchouneN64ngc 07-20-2011 01:46 PM

This is already fixed for future releases, I'm posting the fix here.

Search:

PHP Code:

require_once(DIR '/includes/functions_wysiwyg.php');
$vbulletin->GPC['message'] =  convert_wysiwyg_html_to_bbcode($vbulletin->GPC['message'],  $vbulletin->options['pt_allowhtml']); 

Replace by:

PHP Code:

require_once(DIR '/includes/class_wysiwygparser.php');
$html_parser = new vB_WysiwygHtmlParser($vbulletin);
$vbulletin->GPC['message'] = $html_parser->parse_wysiwyg_html_to_bbcode($vbulletin->GPC['message'], $vbulletin->options['pt_allowhtml']); 

Project Tools 2.1.3 will have a compatible fix for every version and 2.2.0 is defined to be 4.1.4+ as minimum version.

HMBeaty 07-20-2011 11:09 PM

Quote:

Originally Posted by PitchouneN64ngc (Post 2222854)
This is already fixed for future releases, I'm posting the fix here.

Search:

PHP Code:

require_once(DIR '/includes/functions_wysiwyg.php');
$vbulletin->GPC['message'] =  convert_wysiwyg_html_to_bbcode($vbulletin->GPC['message'],  $vbulletin->options['pt_allowhtml']); 

Replace by:

PHP Code:

require_once(DIR '/includes/class_wysiwygparser.php');
$html_parser = new vB_WysiwygHtmlParser($vbulletin);
$vbulletin->GPC['message'] = $html_parser->parse_wysiwyg_html_to_bbcode($vbulletin->GPC['message'], $vbulletin->options['pt_allowhtml']); 

Project Tools 2.1.3 will have a compatible fix for every version and 2.2.0 is defined to be 4.1.4+ as minimum version.

Thanks. I was actually going to search through the files and see if I couldn't fix it and post the fix here this weekend when I had time, but you beat me to it :)

Roland155 07-22-2011 07:31 PM

sry but which file is affected??

- - - - edit:

I found the file... its projectpost.php.

Fine, it works! Thx

dannycutts 09-14-2011 11:42 PM

would this be why my WYSIWYG editor has vanished when I upgraded to 4.1.6?

Danny

PitchouneN64ngc 09-15-2011 03:48 PM

This fix is for when you submitted the content, not the display of the editor.

onespot 09-01-2013 11:34 PM

So you post a fix but don't say which file to edit?!


All times are GMT. The time now is 10:25 AM.

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.01315 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete