This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Files
  • Records
  • Records
  • Records
  • Records
  • Records
  • Records
  • Records
  • Records
  • Records
  • Recipes
  • Article (Rating System)
  • News
  • News update
  • Videos
  • Images
  • Records
  • More Options
  1. Forum
  2. News
  3. Hardware
    1. 3D-Accelerator
    2. CPU-Sockets
    3. RAM
    4. HDMI & Display Port
    5. USB
    6. Thunderbolt
    7. Connectors / Ports
  4. Timelines
    1. ICT Timeline
      1. Categories
      2. All Records
      3. ICT Timeline - The Beginnings
      4. ICT Timeline - 60s/70s
      5. ICT Timeline - 80s
      6. ICT Timeline - 90s
      7. ICT Timeline - 00s
      8. ICT Timeline - 10s
    2. OS Timeline
      1. Categories
      2. All Records
      3. DOS
      4. Windows
      5. MacOS
  5. Other
    1. Vinyl
    2. Reviews
    3. Rezepte
    4. Downloads
    5. Link-Library
    6. Parcum
      1. Parcum - Map
      2. Parcum - All Entries
      3. Parcum - Countries
      4. Parcum - Categories
    7. Restaurants, Snacks and more
    8. ISeeT Tools
    9. YouTube Videos
    10. ISeeT TV
    11. ISeeT TV on Tour
  • Login
  • Register
  • Search
  1. ISeeT Forums
  2. WEB Development
  3. Wordpress

Wordpress, wpForo & EnlighterJS

  • ISeeTWizard
  • 26 October 2025 at 12:02
1st Official Post
  • ISeeTWizard
    Administrator
    Points
    4.995
    Posts
    161
    Files
    32
    News
    37
    Videos
    57
    Images
    185
    • 26 October 2025 at 12:02
    • Official Post
    • #1

    I had now several issues to get more buttons and especially the code Enlighter to work with wpForo. Unfortunately wpForo by default only uses the minimal TinyMCE editor and this can't be changed.

    But thanks to the functions.php file in you theme you can at least modify it's behavior in some parts which helps a lot.

    Also images aren't shown directly but as upload. So here are some tweaks for your functions.php file that may help you.

    Code
    function ISeeT_customize_wpforo_editor($settings) {
        // Add more buttons to the toolbar
    $settings['tinymce']['toolbar1'] = 'fontsizeselect,bold,italic,underline,strikethrough,forecolor,bullist,numlist,hr,alignleft,aligncenter,alignright,alignjustify,link,unlink,blockquote,wpf_spoil,undo,redo,pastetext,emoticons,fullscreen';
    $settings['tinymce']['toolbar2'] = 'cut,subscript,superscript,outdent,indent,backcolor,removeformat,table,visualblocks,visualchars,insertdatetime,formats,charmap,styleselect,searchreplace,anchor,image,media,pre,codesample,EnlighterInsert,EnlighterEdit';
    
        // Enable additional plugins
        $settings['plugins'] = 'charmap,colorpicker,compat3x,directionality,fullscreen,hr,image,link,lists,media,paste,tabfocus,textcolor,wordpress,wpautoresize,wpdialogs,wpeditimage,wpemoji,wpgallery,wplink,wptextpattern,wpview,advlist,codesample,enlighterjs';
        
        $settings['external_plugins'] = 
    array(
        'enlighterjs' => site_url('/wp-content/plugins/enlighter/resources/tinymce/enlighterjs.tinymce.min.js')
    );
    
        
    
        // Optional: set other TinyMCE settings
        $settings['tinymce']['tinymce'] = true;
        $settings['tinymce']['menubar'] = false;
        $settings['tinymce']['resize'] = true;
        $settings['tinymce']['teeny'] = false;
        $settings['tinymce']['quicktags'] = true;
        $settings['tinymce']['height'] = 600;
        return $settings;
    }
    add_filter('wpforo_editor_settings', 'ISeeT_customize_wpforo_editor');
    Display More


    You can see within the code what is used for what - Pay attention that if you want to add additional plugins like me (advlist, codesample,...) you need to download the correct version and here you must know that Wordpress is using a very very old version of TinyMCE as they don't want to invest the time to upgrade it. So you need to download the version 4.9.11 (I'll attach a version here)

    Of course you can adapt this to your needs.

    But by default wpForo is stripping some HTML tags by default for security reasons which is good but also bad as with that behavior the code isn't loaded correctly with the Enlighter Plugin.

    Code
    function ISeeT_allow_custom_html_in_wpforo($content) {
        $allowed_tags = wp_kses_allowed_html('post');
    
        // Erlaube zusätzliche Tags und Attribute
        $allowed_tags['pre']['class'] = true;
        $allowed_tags['code']['class'] = true;
        $allowed_tags['span']['class'] = true;
        $allowed_tags['div']['class'] = true;
    
        return wp_kses($content, $allowed_tags);
    }
    add_filter('wpforo_content_filter', 'ISeeT_allow_custom_html_in_wpforo', 10);
    Display More


    Thanks to that little code now the Enlighter plugin works well. Here the link to the plugin I'm talking of.

    And last but not least the little code to show the images - I didn't test it myself yet as the forum is brand new but I already integrated the code on the site and other told me that it is working.

    Code
    add_filter('wpforo_content_after', 'wpforo_default_attachment_image_embed', 11);
    function wpforo_default_attachment_image_embed( $content ){
        if( preg_match_all('|<a class=\"wpforo\-default\-attachment\" href\=\"([^\"\']+)\"[^><]*>.+?<\/a>|is', $content, $data, PREG_SET_ORDER) ){
            foreach($data as $array){
                if(isset($array[1])){
                    $file = $array[1];
                    $e = strtolower(substr(strrchr($file, '.'), 1));
                    if( $e === 'jpg' || $e === 'jpeg' || $e === 'png' || $e === 'gif' || $e === 'bmp' || $e === 'webp' ){
                        $filename = explode('/', $file); $filename = end($filename);
                        $html = '<a href="' . esc_url($file) . '" target="_blank"><img class="wpforo-default-image-attachment" src="' . esc_url($file) . '" alt="' . esc_attr($filename) . '" title="' . esc_attr($filename) . '" /></a>';
                        $content = str_replace($array[0], $html, $content);
                    }
                }
            }
        }
        return $content;
    }
    Display More

    I hope this will help you as it helped me - It was much try on error until I got it to work like I wanted.

    Files

    tinymce_4.9.11.zip 565,32 kB – 345 Downloads

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login

Latest News

  • Meet Apple HomeView, a new way to enjoy entertainment, stay connected, and manage the home

    ISeeTWizard 13 October 2026 at 15:41
  • Apple unveils the new Apple TV 4K, supercharged by Siri AI

    ISeeTWizard 13 October 2026 at 15:37

Latest Posts

  1. Resize EFI partition

    ISeeTWizard
    27 July 2026 at 10:32

Did you know…?

“I’m not going to continue knocking that old door that doesn’t open for me. I’m going to create my own door and walk through that.”

Ava DuVernay

“My wish for you is that you continue. Continue to be who you are, to astonish a mean world with your acts of kindness.”

Maya Angelou

“For the great doesn’t happen through impulse alone, and is a succession of little things that are brought together.”

Vincent Van Gogh

“If you have knowledge, let others light their candles in it.”

Margaret Fuller

“For me, becoming isn’t about arriving somewhere or achieving a certain aim. I see it instead as forward motion, a means of evolving, a way to reach continuously toward a better self. The journey doesn’t end.”

Michelle Obama

“Find out who you are and do it on purpose.”

Dolly Parton

“Life is made of ever so many partings welded together.”

Charles Dickens

“You can be everything. You can be the infinite amount of things that people are.”

Kesha

“The future is not something we enter. The future is something we create.”

Leonard I. Sweet

“It does not matter how slowly you go, as long as you do not stop.”

Confucius

“Success is stumbling from failure to failure with no loss of enthusiasm.”

Winston Churchill

“Always do your best. What you plant now, you will harvest later.”

Og Mandino

“When I let go of what I am, I become what I might be.”

Lao Tzu

“Nothing is impossible. The word itself says ‘I’m possible!’”

Audrey Hepburn

“Dreams do not come true just because you dream them. It’s hard work that makes things happen. It’s hard work that creates change.”

Shonda Rhimes

“Yesterday is but today’s memory and tomorrow is today’s dream.”

Khalil Gibran

“Spread love everywhere you go. Let no one ever come without leaving happier.”

Mother Teresa

“Always go with your passions. Never ask yourself if it’s realistic or not.”

Deepak Chopra

“Don’t worry about failure, you only have to be right once.”

Drew Houston

“I believe that if you’ll just stand up and go, life will open up for you. Something just motivates you to keep moving.”

Tina Turner

“The art of life is to know how to enjoy a little and to endure very much.”

William Hazlitt

“All dreams are within reach. All you have to do is keep moving towards them.”

Viola Davis

“Coming together is a beginning; keeping together is progress; working together is success.”

Henry Ford

You cannot change what you refuse to confront.

“Before anything else, preparation is the key to success.”

Alexander Graham Bell

“I may not have gone where I intended to go, but I think I have ended up where I needed to be.”

Douglas Adams

“There are no regrets in life. Just lessons.”

Jennifer Aniston

“We are here to add what we can to life, not to get what we can from life.”

William Osler

“Be yourself; everyone else is already taken.”

Oscar Wilde

“The only thing we have to fear is fear itself.”

Franklin D. Roosevelt

“One of the deep secrets of life is that all that is really worth doing is what we do for others.”

Lewis Carroll

“There’s love enough in this world for everybody, if people will just look.”

Kurt Vonnegut

“The purpose of life is to live it, to taste experience to the utmost, to reach out eagerly and without fear for newer and richer experience.”

Eleanor Roosevelt

“If you don’t like the road you’re walking, start paving another one.”

Dolly Parton

“We pass through this world but once.”

Stephen Jay Gould

“If you live long enough, you’ll make mistakes. But if you learn from them, you’ll be a better person.”

Bill Clinton

“You only live once, but if you do it right, once is enough.”

Mae West

“Keep your face towards the sunshine and shadows will fall behind you.”

Walt Whitman

“Let us make our future now, and let us make our dreams tomorrow’s reality.”

Malala Yousafzai

“It is better to fail in originality than to succeed in imitation.”

Herman Melville

“Living might mean taking chances, but they’re worth taking.”

Lee Ann Womack

“Everything you can imagine is real.”

Pablo Picasso

“No need to hurry. No need to sparkle. No need to be anybody but oneself.”

Virginia Woolf

“Next time, ask ‘What’s the worst that will happen?’ Then push yourself a little further than you dare.”

Audre Lorde

“You will face many defeats in life, but never let yourself be defeated.”

Maya Angelou

“Get busy living or get busy dying.”

Stephen King

“You can’t help what you feel, but you can help how you behave.”

Margaret Atwood

“Life is very interesting…in the end, some of your greatest pains become your greatest strengths.”

Drew Barrymore

“Be where you are; otherwise you will miss your life.”

Buddha

“When you have a dream, you’ve got to grab it and never let go.”

Carol Burnett

“Do one thing every day that scares you.”

Eleanor Roosevelt

“Whatever we are, whatever we make of ourselves, is all we will ever have—and that, in its profound simplicity, is the meaning of life.”

Philip Appleman

“Be persistent and never give up hope.”

George Lucas

“Don’t judge each day by the harvest you reap but by the seeds that you plant.”

Robert Louis Stevenson

“Life is like riding a bicycle. To keep your balance, you must keep moving.”

Albert Einstein

“We have to dare to be ourselves, however frightening or strange that self may prove to be.”

May Sarton

“Good friends, good books, and a sleepy conscience: This is the ideal life.”

Mark Twain

“Be sure you put your feet in the right place, then stand firm.”

Abraham Lincoln

“Once you face your fear, nothing is ever as hard as you think.”

Olivia Newton-John

“It is better to be hated for what you are than to be loved for what you are not.”

Andre Gide

“Never let the fear of striking out keep you from playing the game.”

Babe Ruth

“Dream big and dare to fail.”

Norman Vaughan

“The fear of death follows from the fear of life. A man who lives fully is prepared to die at any time.”

Mark Twain

“If you don’t have any shadows, you’re not in the light.”

Lady Gaga

“Ambition is the path to success. Persistence is the vehicle you arrive in.”

Bill Bradley

“You have to believe in yourself when no one else does.”

Serena Williams

“To succeed in life, you need three things: a wishbone, a backbone, and a funnybone.”

Reba McEntire

“It is during our darkest moments that we must focus to see the light.”

Aristotle

“Live in the sunshine, swim the sea, drink the wild air.”

Ralph Waldo Emerson

“Tomorrow is a new day. You shall begin it serenely and with too high a spirit to be encumbered with your old nonsense.”

Ralph Waldo Emerson

“You may not control all the events that happen to you, but you can decide not to be reduced by them.”

Maya Angelou

“It is never too late to be what you might have been.”

George Elliot

“Dreaming, after all, is a form of planning.”

Gloria Steinem

“And when you want something, all the universe conspires in helping you achieve it.”

Paulo Coelho

“The world you desire can be won. It exists... it is real... it is possible... it’s yours.”

Ayn Rand

“The great courageous act that we must all do is to have the courage to step out of our history and past so that we can live our dreams.”

Oprah Winfrey

“The new dawn blooms as we free it. For there is always light if only we’re brave enough to see it, if only we’re brave enough to be it.”

Amanda Gorman

“The simple things are also the most extraordinary things, and only the wise can see them.”

Paulo Coelho

“Some people want it to happen, some wish it would happen, others make it happen.”

Michael Jordan

“The future belongs to those who prepare for it today.”

Malcolm X

“The biggest adventure you can take is to live the life of your dreams.”

Oprah Winfrey

“Life does not have to be perfect to be wonderful.”

Annette Funicello

“We make a living by what we get, but we make a life by what we give.”

Winston Churchill

“Failure is a great teacher and, if you are open to it, every mistake has a lesson to offer.”

Oprah Winfrey

“It’s amazing how a little tomorrow can make up for a whole lot of yesterday.”

John Guare

“There is no passion to be found playing small—in settling for a life that is less than the one you are capable of living.”

Nelson Mandela

“In three words I can sum up everything I’ve learned about life: It goes on.”

Robert Frost

“The future belongs to those who believe in the beauty of their dreams.”

Eleanor Roosevelt

“Just when you think it can’t get any worse, it can. And just when you think it can’t get any better, it can.”

Nicholas Sparks

“You don’t always need a plan. Sometimes you just need to breathe, trust, let go and see what happens.”

Mandy Hale

“Life is what happens to you when you are busy making other plans.”

John Lennon

“Keep smiling, because life is a beautiful thing and there’s so much to smile about.”

Marilyn Monroe

“Don’t take yourself too seriously. Know when to laugh at yourself, and find a way to laugh at obstacles that inevitably present themselves.”

Halle Bailey

“Life is a daring adventure or it is nothing at all.”

Helen Keller

“There are so many great things in life; why dwell on negativity?”

Zendaya

“Life isn’t about finding yourself. Life is about creating yourself.”

George Bernard Shaw

“Always remember that you are absolutely unique. Just like everyone else.”

Margaret Mead

“We must let go of the life we have planned, so as to accept the one that is waiting for us.”

Joseph Campbell

“I’m not going to continue knocking on that old door that doesn’t open for me. I’m going to create my own door and walk through that.”

W.P. Kinsella

“Life has no limitations, except the ones you make.”

Les Brown

“There is no perfection, only life.”

Milan Kundera

Users Viewing This Thread

  • 1 Guest

Visits

  • 147 Today
  • 367 Yesterday
  • 3.054 This Week
  • 2.348 Last Week
  • 10.010 This Month
  • 12.569 Last Month
  • 57.196 This Year
  • 0 Last Year
  • Ø 276,31 per day
  • 57.196 Total

Last updated: 22 October 2026 at 16:09

  1. Cookie Policy
  2. Privacy Policy
  3. Contact
  4. Legal Notice
  1. IT-Tools
  2. Link-Library
  3. Downloads
  4. Restaurants, Snacks and more
Powered by WoltLab Suite™
Style: Ambience by cls-design
Stylename
Ambience
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design