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 button (3.0.4) version disappears after i upgraded Joomla to 3.10.0
(1 viewing) (1) Guest
Read user-guide, report bugs and discuss more
  • Page:
  • 1
  • 2

TOPIC: Yt shortcode button (3.0.4) version disappears after i upgraded Joomla to 3.10.0

Re: Yt shortcode button (3.0.4) version disappears after i upgraded Joomla to 3.10.0 2 years ago #46415

ifychukwuma@yahoo.co.uk wrote:
Yt shortcode button (3.0.4) version disappears after i upgraded Joomla to 3.10.0

Re: Yt shortcode button (3.0.4) version disappears after i upgraded Joomla to 3.10.0 2 years ago #46416

Jhon96Parra wrote:
ifychukwuma@yahoo.co.uk wrote:
Yt shortcode button (3.0.4) version disappears after i upgraded Joomla to 3.10.0

Re: Yt shortcode button (3.0.4) version disappears after i upgraded Joomla to 3.10.0 2 years ago #46459

  • thuygtn
Dear Jhon96Parra

Please go to the file: plugins\system\ytshortcodes\ytshortcodes.php and 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
{
$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);
}
}

or maybe it's :
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);
}

Please change the block to become:
$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
  • 2
Time to create page: 0.21 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