View Single Post
  #1482  
Old 10-04-2011, 04:13 AM
sanstarr sanstarr is offline
 
Join Date: Sep 2011
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi - thanks for your post.

still an error:

Quote:
Warnung: require_once([path]/includes/functions_wysiwygparser.php) [function.require-once]: failed to open stream: No such file or directory in [path]/forms.php (Zeile 368)

Fatal error: require_once() [function.require]: Failed opening required 'XXX/includes/functions_wysiwygparser.php' (include_path='.:/usr/share/php:..') in XXX/forms.php on line 368


maybe the problem is, that "/includes/functions_wysiwygparser.php" doesn't exist.
use vb 4.1.X an other function with the ck-editor?

EDIT:

Found a solution:

Quote:
require_once(DIR . '/includes/class_wysiwygparser.php');
$html_parser = new vB_WysiwygHtmlParser($vbulletin);
$q[$formbit[id]] = $html_parser->parse_wysiwyg_html_to_bbcode($vbulletin->GPC["message"], 0);
then the form is submit correct. but problems with formatting the text, or the bbcode - texts like:
"<br>&am p " and so on...


EDIT2

following:

$q[$formbit[id]] = $html_parser->parse_wysiwyg_html_to_bbcode($vbulletin->GPC["message"], $vbulletin->options['pt_allowhtml']);

now the submited texts seems OK!!!
with correct formating etc.

for next release it must be a query for the vb version, that this mod can work with older and newer versions (with ck oder without)

something like this:

http://svn.vbulletin.org/trac/changeset/533/branches


now testing again...

edit3:

my forms.php -> see attachments
Attached Files
File Type: php forms.php (146.3 KB, 10 views)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01400 seconds
  • Memory Usage 1,782KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete