• In Chat
  • About
  • Contact
  • Browse

    Latest Coding

    Latest Daily

    Latest Health

    Featured Story

Coding 2018

| Begin | File Bank |  Register | Reply | Search | Statistics | Manual |
Site Coding Coding / Site Coding /  
 

Minibb update with Summernote WYSIWYG editor

 
Author Admin
Admin


#1 | Posted: 10 Oct 2018 08:37 | Edited by: Admin 

Instead of upgrading minibb to be able to accept inline pics and so on I decided to implement a different, open-source editor. I settled for Summernote as it had all the features I wanted and was FREE - no add-ons costing dosh. The steps I carried out were these ...

Step 1: I downloaded the script and uploaded 2 of the files referred to in Step 2 to my server

Step 2: I altered main-post-form html file found in the templates directory to this ...

View main-post-form.html text file

That is all it took for the template files but as the images files are stored in the database I made sure there was enough room in each post by first of all altering $post_text_maxlength found in setup-options.php to this ...

Step 3: $post_text_maxlength=100000;

Step 4: Last but not least I altered the database post table, post_text field to medium text as opposed to just text to allow for far more characters.

Everything seems to be working - along with the editing side of things.

Summernote Org

Website Designer

Author Admin
Admin


#2 | Posted: 10 Oct 2018 12:15 | Edited by: Admin 

Not come across this before but the above WYSIWYG editor saves pictures inside the database as code.  The picture below, for example, is stored as this code within the database ...

http://mkj.brainwaving.co.uk/files/photo.txt

I have altered various files to cope with the extra data - see first post.

Website Designer

Author Admin
Admin


#3 | Posted: 11 Oct 2018 21:31 | Edited by: Admin 
Decided to ditch this idea. As you can see the forum reply box is back to how it was originally. I now have the unenviable task of updating the forum software to allow such practice as image uploading etc. Quite a lot of work before all the add-ons I have planned for this forum are in place, especially so when there are so many stand alone forums. Thank goodness for TextWrangler is all can say .
Website Designer

Your Reply Click this icon to move up to the quoted message


 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.

 

 
Coding Powered by Forum Software miniBB ®
Online now: Guests - 1
Members - 0
Max. ever online: 4 [14 Oct 2018 12:43]
Guests - 2 / Members - 2
No Of Posts

  • Latest Daily Post ...

  • Latest Health Post ...

CONTACT

Phone: +01 0775 8107 427

sport4u2018@gmail.com

WEBMASTER

email icon Mark Jones

Latest Story

RANDOM CODING

  • Copyright © 2018 MKJ Brainwaving
↑ TOP