Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 05-03-2019, 07:50 AM
BlackxRam BlackxRam is offline
 
Join Date: Aug 2003
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
Благодарность от:
Mike-D
  #2  
Old 05-03-2019, 11:25 AM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
Mike-D
  #3  
Old 05-14-2019, 06:45 PM
Meister2017 Meister2017 is offline
 
Join Date: Sep 2017
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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); 
Reply With Quote
Благодарность от:
Kane@airrifle
  #4  
Old 05-14-2019, 07:10 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you write that yourself or is there a source article that you can attribute that to?
Reply With Quote
2 благодарности(ей) от:
Mike-D, scottkoz20
  #5  
Old 05-14-2019, 08:06 PM
scottkoz20 scottkoz20 is offline
 
Join Date: Dec 2015
Location: Lewiston, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
Mike-D
  #6  
Old 05-14-2019, 08:29 PM
Meister2017 Meister2017 is offline
 
Join Date: Sep 2017
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
Mike-D
  #7  
Old 05-23-2019, 01:46 PM
Mattwhf Mattwhf is offline
 
Join Date: May 2016
Posts: 190
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by In Omnibus View Post
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.
Reply With Quote
Благодарность от:
Mike-D
  #8  
Old 06-13-2019, 12:07 PM
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anybody tried this yet?
Reply With Quote
  #9  
Old 06-13-2019, 02:29 PM
CodeStache's Avatar
CodeStache CodeStache is offline
 
Join Date: Jun 2019
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
2 благодарности(ей) от:
Hostboard, Mike-D
  #10  
Old 06-13-2019, 04:42 PM
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That looks great, will you be releasing it?
Reply With Quote
Reply

Thread Tools
Display Modes

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 02:55 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.04558 seconds
  • Memory Usage 2,293KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (11)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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