Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

YT Shortcode Plugin does not appear
(1 viewing) (1) Guest
Read user-guide, report bugs and discuss more
  • Page:
  • 1

TOPIC: YT Shortcode Plugin does not appear

YT Shortcode Plugin does not appear 2 years, 2 months ago #46451

In Joomla 3.10 the button does not appear, no matter if JCE or TinyMCE.

Re: YT Shortcode Plugin does not appear 2 years, 2 months ago #46455

  • thuygtn
Dear sir,

I fixed the issue, please check your site again.
For Joomla 3.10 only, the solution is:
in the file: plugins\system\ytshortcodes\ytshortcodes.php
Please find:
if($version->RELEASE < '3.5' ){
$page = str_replace('<div id="editor-xtd-buttons" class="btn-toolbar pull-left">', '<div id="editor-xtd-buttons" class="btn-toolbar pull-left">' . $button, $page);
}else
{
$page = str_replace('<div class="toggle-editor btn-toolbar pull-right clearfix">', $button.'<div class="toggle-editor btn-toolbar pull-right clearfix">', $page);
}

Edit to:
$app = JFactory::getApplication();
$editor = $app->getCfg('editor');
if($editor == "tinymce")
{
$page = str_replace('<div class="toggle-editor btn-toolbar pull-right clearfix">','<div id="editor-xtd-buttons" class="btn-toolbar pull-left">'. $button.'</div><div class="toggle-editor btn-toolbar pull-right clearfix">', $page);
}else{
$page = str_replace('<div id="editor-xtd-buttons" class="btn-toolbar pull-left">', '<div id="editor-xtd-buttons" class="btn-toolbar pull-left">' . $button, $page);
}

If it's the code:
if($version->RELEASE < '3.5' ){
$page = str_replace('<div id="editor-xtd-buttons" class="btn-toolbar pull-left">', '<div id="editor-xtd-buttons" class="btn-toolbar pull-left">' . $button, $page);
}else
{
$app = JFactory::getApplication();
$editor = $app->getCfg('editor');
if($editor == "tinymce")
{
$page = str_replace('<div class="toggle-editor btn-toolbar pull-right clearfix">','<div id="editor-xtd-buttons" class="btn-toolbar pull-left">'. $button.'</div><div class="toggle-editor btn-toolbar pull-right clearfix">', $page);
}else{
$page = str_replace('<div id="editor-xtd-buttons" class="btn-toolbar pull-left">', '<div id="editor-xtd-buttons" class="btn-toolbar pull-left">' . $button, $page);
}
}
please edit to:
$app = JFactory::getApplication();
$editor = $app->getCfg('editor');
if($editor == "tinymce")
{
$page = str_replace('<div class="toggle-editor btn-toolbar pull-right clearfix">','<div id="editor-xtd-buttons" class="btn-toolbar pull-left">'. $button.'</div><div class="toggle-editor btn-toolbar pull-right clearfix">', $page);
}else{
$page = str_replace('<div id="editor-xtd-buttons" class="btn-toolbar pull-left">', '<div id="editor-xtd-buttons" class="btn-toolbar pull-left">' . $button, $page);
}

Thanks
  • Page:
  • 1
Time to create page: 0.20 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes