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

[SOLVED] YT Shortcodes disappear from editor in administrator in joomla 3.6
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: [SOLVED] YT Shortcodes disappear from editor in administrator in joomla 3.6

[SOLVED] YT Shortcodes disappear from editor in administrator in joomla 3.6 7 years, 1 month ago #31535

YT Shortcodes disappear from editor in administrator in joomla 3.6
the old tag still working but now i cant add anew shortcode into articles
Last Edit: 7 years, 1 month ago by ttuateyah.
The topic has been locked.

Re: YT Shortcodes disappear from editor in administrator in joomla 3.6 7 years, 1 month ago #31543

Dear ttuateyah

Please go to the file: plugins\system\ytshortcodes\ytshortcodes.php and find:
$page = str_replace('<div id="editor-xtd-buttons">', '<div id="editor-xtd-buttons">' . $button, $page);
$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);

=> Edit to:
$version = new JVersion();
if($version->RELEASE < '3.5' ){
$page = str_replace('<div id="editor-xtd-buttons">', '<div id="editor-xtd-buttons">' . $button, $page);
$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);
}
}

thanks
The topic has been locked.
The following user(s) said Thank You: ttuateyah

Re: YT Shortcodes disappear from editor in administrator in joomla 3.6 7 years, 1 month ago #31549

hello

thanks allot for your corporation
now its working
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.23 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