vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   VB4 Post Editor, is there an update or mod? (https://vborg.vbsupport.ru/showthread.php?t=327251)

BlackxRam 05-03-2019 07:50 AM

VB4 Post Editor, is there an update or mod?
 
Is there an update to the VB4 wysiwyg editor or possibly a mod that gives it better functionality?

In Omnibus 05-03-2019 11:25 AM

There are no updates of any kind for vB4. Development on it stopped quite some time ago.

The CKEditor is open source but vBulletin always uses a customization of it so you can't simply replace the existing one with the newest version. It would require substantial coding.

Meister2017 05-14-2019 06:45 PM

There is a manual in German for an update to 3.6.6.2. If necessary, use Google Translate.

Beim CkEditor gab es viele und auch einige Wichtige Updates:
https://svn.ckeditor.com/CKEditor/trunk/CHANGES.html

vBulletin 4.2.5 hat standardm??ig CkEditor 3.2

Diese ?nderungen wurden getestet mit:
PHP 7.2.4 u. 7.2.3
PHP 7.0.22
Unter PHP 7.1 m?sste es also auch funktionieren.

CkEditor 3.6.6.2 runterladen: https://download.cksource.com/CKEdit...or_3.6.6.2.zip

Alles au?er:
_samples
_source
adapters
CHANGES.html
ckeditor.asp
ckeditor.pack
ckeditor_basic_source.js
ckeditor_php4.php
config.js
content.css
ISTALL.html
LICENSE.html

kopieren nach clientscript/ckeditor/
Hinweis: Im Ordner Plugins w?rde es sich empfehlen auch nur die zu kopieren, welche in vB schon vorhanden sind.


Nicht notwendig:
https://davidwalsh.name/prevent-xss-ckeditor einbauen wer mag:
Den Code in clientscript/ckeditor/ckeditorChange.js packen (Datei neu erstellen)

in /clientscript/ckeditor/ckeditor_php5.php
PHP Code:

$out .= "<script type=\"text/javascript\" src=\"" $ckeditorPath 'ckeditor.js' $args "\"></script>\n"

und drunter hinzuf?gen:
PHP Code:

$out .= "<script type=\"text/javascript\" src=\"" $ckeditorPath 'ckeditorChange.js' $args "\"></script>\n"

und in /vb/ckeditor.php
in der Funktion getJsIncludes() auch wieder die ckeditorChange.js hinzuf?gen.



Wieder notwendig:

clientscript/ckeditor/ckeditor.js
suche:
Code:

zh:1},load:function(k,l,m){if(!k||!a.lang.languages[k])k=this.detect(l,k);if(!this[k])a.scriptLoader.load(a.getUrl('lang/'+k+'.js'),function(){m(k,this[k]);},this);else m(k,this[k]);},detect:function(k,l)

ersetzte mit:




in clientscript/ckeditor/ckeditor_php5.php

alle
PHP Code:

private 

durch
PHP Code:

protected 

ersetzten.
Bsp.1:
PHP Code:

private $events = array(); 

durch
PHP Code:

protected $events = array(); 

Bsp.2:
PHP Code:

private function jsEncode($val

durch
PHP Code:

protected function jsEncode($val




Wer Probleme mit UTF-8 hat kann noch ben?tigen:

includes/functions.php in Z. 7093 einf?gen:
PHP Code:

function removeWrongChars(string &$text) {
 
$encoding mb_detect_encoding ($text);
if(
$encoding != "UTF-8") {
$text mb_convert_encoding$text$encoding"UTF-8" );
}



und vor Zeile 7319
PHP Code:

// show regular page
if (empty($vbulletin->db->explain) OR (defined('VB_API') AND VB_API === true)) 

hinzuf?gen
PHP Code:

removeWrongChars($output); 


final kaoss 05-14-2019 07:10 PM

Did you write that yourself or is there a source article that you can attribute that to?

scottkoz20 05-14-2019 08:06 PM

looks like there is something here - https://forum.vbdev.de/showthread.ph...or-3-2-3-6-6-2 (in german - translated to English)

however, something I will call out immediately is the following

vBulletin 4.2.5 defaults to CkEditor 3.2

These changes have been tested with:
PHP 7.2.4 u. 7.2.3
PHP 7.0.22
It should work under PHP 7.1.


I'm running php 5.6.40 on my vB4.2.5 site. Not sure how many vB4 sites are using php7.1+ at this point.

Meister2017 05-14-2019 08:29 PM

These changes are from "kleinerzwerg" and also work under php 5.6. I recommend to use at least php 7.0 because the board runs a lot faster:).

Mattwhf 05-23-2019 01:46 PM

Quote:

Originally Posted by In Omnibus (Post 2599224)
There are no updates of any kind for vB4. Development on it stopped quite some time ago.

The CKEditor is open source but vBulletin always uses a customization of it so you can't simply replace the existing one with the newest version. It would require substantial coding.

I agree with this, and that is why I didn't update vB editor while I really wanted to do that.

z3r0 06-13-2019 12:07 PM

Has anybody tried this yet?

CodeStache 06-13-2019 02:29 PM

We have sucessfully integrated CKEditor 5 into vBulletin 3 & 4 and it's currently the editor we use in our development area. Since vBulletin default's CKEditor is deeply embedded, we're still working to make the new editor as less modification as possible.

It supports all features of vBulletin, smoother, mobile compatible and of course looks better.

Here is how it looks like:
https://i.imgur.com/b7unkMn.png

z3r0 06-13-2019 04:42 PM

That looks great, will you be releasing it?


All times are GMT. The time now is 01:46 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.01380 seconds
  • Memory Usage 1,757KB
  • 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_code_printable
  • (11)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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