Typography not working

GK User
Wed Dec 17, 2014 1:16 pm
Warning

JFolder: :folder: Path is not a folder. Path: /var/www/vhosts/laughology.co.uk/httpdocsDStemplates


get the above message when turning on the typography plug in - it say plug in is saved, but none of the typography show on the front end.

Any suggestions?

Ian
User avatar
Expert Boarder

GK User
Sat Dec 20, 2014 12:55 pm
Hello,

Did you installed the typography plugin for J!3.x version?
User avatar
Administrator

GK User
Sat Dec 20, 2014 2:39 pm
Hello Dziedek,

Have a plugin called 'Button - GK Typography' which is switched on.

Ian
User avatar
Expert Boarder

GK User
Mon Dec 22, 2014 7:36 am
Please check if file plugins/system/gk_typography/gk_typography.php contains the following code:

Code: Select all
if(!defined('DS')){
   define('DS',DIRECTORY_SEPARATOR);
}
User avatar
Administrator

GK User
Wed Dec 31, 2014 1:32 pm
Hello dziudek.

There is no such file in that folder?

Ian
User avatar
Expert Boarder

GK User
Fri Jan 02, 2015 10:40 am
Sorry, my mistake - the proper filename is:

plugins/editors-xtd/gk_typography/gk_typography.php
User avatar
Administrator

GK User
Fri Jan 02, 2015 2:43 pm
Yes, I have that code. (see below)

// no direct access

defined('_JEXEC') or die('Restricted access');
if(!defined('DS')){
define('DS',DIRECTORY_SEPARATOR);
}
User avatar
Expert Boarder

GK User
Mon Jan 05, 2015 1:41 pm
Please send me a PM message with FTP and back-end access to your website.
User avatar
Administrator

GK User
Wed Feb 04, 2015 3:35 pm
I am facing the exact same issue. any news on this subject ?
User avatar
Fresh Boarder

GK User
Wed Feb 04, 2015 7:11 pm
@cns - what about the mentioned code fragment - do you have it in your plugin?
User avatar
Administrator

GK User
Fri Feb 06, 2015 11:05 am
The problem was JCE stripping out CSS .

When I went to the profile section of JCE and 'allowed CSS', the typo worked fine.

Thanks

Ian
User avatar
Expert Boarder

GK User
Tue Apr 07, 2015 10:34 am
Hello, I have the same problem. how can fix this problem. Image
dziudek wrote:Please send me a PM message with FTP and back-end access to your website.
User avatar
Fresh Boarder

GK User
Wed Apr 08, 2015 1:15 pm
@chevez - please make sure that you have installed a version of the plugin for Joomla! 3.x
User avatar
Administrator

GK User
Thu Apr 09, 2015 4:20 pm
Yes, im sure its the correct plugin for J!3.

i try uninstall and reinstall the plugin but not working. :(


dziudek wrote:@chevez - please make sure that you have installed a version of the plugin for Joomla! 3.x
User avatar
Fresh Boarder

GK User
Fri Apr 10, 2015 12:49 pm
Please try to replace your gk_typography.php file with the attached one (please unzip it first).
User avatar
Administrator

GK User
Fri Apr 10, 2015 6:38 pm
the file works but wen add article .

Warning
Failed loading XML file.

/home/nos/public_html/templates//typography/
failed to load external entity "/home/nos/public_html/templates//typography/"
///HOW FIX///
in db Button - GK Typography #11 params appears []
I have to add this {"typo_override":"gk_news2:full.xml"}

//////
Gracias por tu ayuda. ;)

dziudek wrote:Please try to replace your gk_typography.php file with the attached one (please unzip it first).
User avatar
Fresh Boarder

GK User
Wed May 13, 2015 11:18 am
Hi !
Help me please.
Typography error when using University (version 3.17.1).
I use Joomla 3.41.

I have Warning
Failed loading XML file.
/bhome/part3/03/vipcom/vipstd.com/www/templates//typography/
failed to load external entity "/bhome/part3/03/vipcom/vipstd.com/www/templates//typography/"
User avatar
Fresh Boarder

GK User
Thu May 14, 2015 11:03 am
@vip0991 - please go to the typography plugin, select an xml file in the settings and please save the plugin settings.
User avatar
Administrator

GK User
Thu May 14, 2015 12:47 pm
dziudek wrote:@vip0991 - please go to the typography plugin, select an xml file in the settings and please save the plugin settings.

Dear Dziudek!
Before asking this question I read on the forum topic.
And all checked . But the error remains.
It is not possible to select xml file
JFolder: :folder: Path is not a folder. Path: /bhome/part3/03/vipcom/vipstd.com/wwwDStemplates
Sorry for my bad English.
User avatar
Fresh Boarder

GK User
Thu May 14, 2015 3:02 pm
Are you using a plugin in version for J!3.x? To be sure please just replace the gk_typography.php file of the plugin with the below code:

Code: Select all
<?php
 
/**
* Typography plugin
* @Copyright (C) 2009-2011 Gavick.com
* @ All rights reserved
* @ Joomla! is Free Software
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* @version $Revision: GK4 1.0 $
**/

// no direct access

defined('_JEXEC') or die('Restricted access');
if(!defined('DS')){
   define('DS',DIRECTORY_SEPARATOR);
}

jimport('joomla.plugin.plugin');


class plgButtonGK_Typography extends JPlugin {



    function plgButtonGK_Typography(&$subject, $config) {

        parent::__construct($subject, $config);

    }



    function onDisplay($name) {
       if(JRequest::getCmd('option') == 'com_content' || JRequest::getCmd('option') == 'com_k2') {
           // parse filename and template

           $selected = $this->params->get('typo_override');

         // create button

           $button = new JObject();

           $doc = JFactory::getDocument();
               
           $doc->addStyleSheet(JURI::root().'plugins/editors-xtd/gk_typography/gk_typography/css/gk_typography.css');
             $doc->addScript(JURI::root().'plugins/editors-xtd/gk_typography/gk_typography/js/gk_typography.js', "text/javascript");
      
           $doc->addScriptDeclaration('$GKEditor = "' . $name . '";');

           $app = JFactory::getApplication();

           $template = $app->getTemplate();

           //settings for button

           JHtml::_('behavior.modal');

           $button->set('modal', true);

           //$button->set('link', $link);

           $button->set('text', JText::_('GK Typography'));

           $button->set('name', 'pencil-2 gk-typo');

           $button->set('options', "{handler:'clone',target:$$('.gk_typography_content')[0],size:{x:800,y:690}}");

         if($selected != 'error') {

              $template_name = substr($selected, 0, strpos($selected, ':'));

              $file = substr($selected, strpos($selected, ':') + 1, strlen($selected));

              // parse XML

              $path = JPATH_SITE . DS . 'templates' . DS . $template_name . DS . 'typography' . DS . $file;

              $xml = JFactory::getXML($path);
                     
              // check content view

              $app = JFactory::getApplication();

              $params = JComponentHelper::getParams('com_media');

              // start parsing  XML file

              // script section
            
            
              if($xml){ // parse only when file load correctly

                 $generated_content = '<script type="text/javascript">';

                 $generated_content .= '$GKTypo = [';

                 for ($i = 0; $i < count($xml->group); $i++) {

                     for ($j = 0; $j < count($xml->group[$i]->item); $j++) {

                         if ($j == 0) $generated_content .= '[';

                         $generated_content .= '\'' . $xml->group[$i]->item[$j] . '\',';

                     }

                     $generated_content = substr($generated_content, 0, strlen($generated_content) - 1);

                     $generated_content .= '],';

                 }

                 $generated_content = substr($generated_content, 0, strlen($generated_content) - 1);

                 $generated_content .= '];';
                 $generated_content .= '</script>';
                 // tabs for elements
                 $generated_content .= '<h2 class="gkTypoHeader">TYPOGRAPHY</h2>';
                 $generated_content .= '<div class="gkTypoWrap">';
                 $generated_content .= '<ul class="gkTypoMenu">';

                 for ($i = 0; $i < count($xml->group); $i++) {

                     $first = false;

                     for ($j = 0; $j < 1; $j++) {
                         $generated_content .= '<li><a onclick="gkhideTab(' . $i . ')">' .reset($xml->group[$i]->attributes()->name) . '</a></li>';

                     }

                 }

                 $generated_content .= '</ul>';

                 // arrays for elements

                 $generated_content .= '<div class="gkTypoContent">';

                 for ($i = 0; $i < count($xml->group); $i++) {

                     $generated_content .= '<table style="margin-top: 0; margin-left:0, position: absolute; z-index: -999; width:100%" class="gkTypoTable"><tbody>';

                     $first = false;

                     for ($j = 0; $j < count($xml->group[$i]->item); $j++) {

                     $generated_image = '';

                         if (reset($xml->group[$i]->attributes()->type) == 'icons') {
                             $generated_image = '<img src=\'' . JURI::root() . DS . 'templates' . DS . $template_name . DS . 'images' . DS . $xml->group[$i]->directory . DS . $xml->group[$i]->item[$j]->fname . "'/>";
                         }
                        
                         $generated_content .= '<tr ' . (!$first ? 'class="first"' : '') . '><td>'.$generated_image.'<span class="label label-info" onclick="gkclick($GKTypo[' . $i . '][' . $j . '])">';

                         $generated_content .= reset($xml->group[$i]->item[$j]->attributes()->name) . '</span></td>';

                         $generated_content .= '<td><code>' . htmlspecialchars($xml->group[$i]->item[$j]) . '</code></td></tr>';

         

                         if ($j == 0) $first = true;

                     }

                     $generated_content .= '</tbody></table>';

                 }

                 $generated_content .= '</div>';
                 $generated_content .= '</div>';

              } else {

                  $generated_content = '<h3> Parse error in selected filed. Please check file structure. </h3>';

              }

         } else {

            $generated_content = '<h3> No files found in template/typography directory. </h3>';

         }
         

           echo '<div style="display:none;"><div class="gk_typography_content">' . $generated_content . '</div></div>';

           return $button;
       }

    }

}
User avatar
Administrator

GK User
Thu May 14, 2015 3:46 pm
@dziudek -
Code replaced, but as before typography not working.
I can send PM message with back-end access to my site.
User avatar
Fresh Boarder

GK User
Thu May 14, 2015 5:13 pm
Please send me PM with back-end and FTP access to your website.
User avatar
Administrator

GK User
Mon May 18, 2015 10:30 am
dziudek wrote:Please send me PM with back-end and FTP access to your website.

Good day, Dziudek!
You got PM with back-end and FTP access to my website?
I sent to your e 14/5/2015.
User avatar
Fresh Boarder

GK User
Mon May 18, 2015 12:12 pm
I didn't received any PM message from you
User avatar
Administrator

GK User
Mon May 18, 2015 2:42 pm
Problem solved - I had to update the PHP code element file in the plugin, because it was not updated too.
User avatar
Administrator

GK User
Mon May 18, 2015 3:30 pm
dziudek wrote:Problem solved - I had to update the PHP code element file in the plugin, because it was not updated too.

Thank you very much for your efficiency!
My best wishes for you!
User avatar
Fresh Boarder

GK User
Sun May 24, 2015 11:15 pm
dziudek wrote:Problem solved - I had to update the PHP code element file in the plugin, because it was not updated too.


Dziudek,
I have this problem as well. Do I need to change the gk_typography.php file or something else? I downloaded the v3 plugin yesterday.

Have a nice weekend.
Matt
User avatar
Junior Boarder

GK User
Mon May 25, 2015 9:43 am
@mconlentz - please replace all plugin files.
User avatar
Administrator

GK User
Sat May 30, 2015 6:32 am
Yes. That seems to have solved the problem. Thank you!
User avatar
Junior Boarder

GK User
Sun Jul 05, 2015 3:02 pm
Hello
I've a "typography" problem in my template (university / joiomla 3): class "Bulle" "Legend" etc... don't work !
I've installed gk typography plugin.
What's wrong ?
Thanks in advance for helping me solve this problem
Gilles
User avatar
Fresh Boarder

GK User
Tue Jul 07, 2015 3:45 pm
Please make sure that under the features tab in the template settings the typography CSS is enabled.
User avatar
Administrator

GK User
Wed Jul 08, 2015 4:02 pm
Hello,
Thanks for your help.
"Typography CSS" was not enabled in the features tab of the template. I modified it.
But still can't get the typography to work
What else should I fix ?
Gilles
User avatar
Fresh Boarder

GK User
Wed Jul 08, 2015 7:23 pm
Please send me a PM message with back-end access to your website - I will need it to analyze a reason of your issue.
User avatar
Administrator

GK User
Wed Sep 30, 2015 1:14 pm
I also have problem with gk typography. I have tried all your suggestion but still when i click typography button , it opens a new item for k2.
I will send you pm with back end acces cause i really don't know how to solve it.
User avatar
Senior Boarder

GK User
Mon Oct 05, 2015 6:52 pm
@Citius - it seems to be a conflict with your CKEditor - I've changed the editor to JoomlaCK and now the typography is working fine. In general we are not support 3rd party editors in our typography plugin.
User avatar
Administrator


cron