Sourcerer plugin not working

Category: GPS Tools 2 weeks ago

Hi,

Google Search Console is showing me Mobile Usability problem for GPS Tools links (viewport not set, links to close, text too small). Atleast partly I am trying to solve that with using small html/css script to style gps track description text in editor. For that purpose I am using Sourcerer plugin. Pls check below script.

Now, problem occurs as in List Layouts "show intro" does not show only short description of the item, but show css code as well. It starts with code within <style></style> tags.

Pls check attached image. Otherwise Sourcerer plugin works ok inside GPS Tools tracks.

Pls let me know how to solve that problem.

 

Thx&brgds

Matej

 

 

 

{source}
 
<!DOCTYPE html>
<html lang="sl">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://kit.fontawesome.com/a09b66d016.js" crossorigin="anonymous"></script>

<style>

a#deligps:hover {
color: orange;
}

a#deligps {
color: grey;
}

p#deligps {
font-family:"Trebuchet MS", Helvetica, sans-serif;
font-size: 16px;

}

</style>

</head>


<body>

<div style="width:100%; display: inline-block; height: 24px;"></div>


<p id="deligps">GPS sled prikazuje krožno pot na Stegovnik preko Močnikovega sedla. Pot se zaokroži na sedlu in razpotju več poti imenovanem Pri lojtri. Krožen povratek, ki ga prikazuje modri del sledi poteka preko izredno slikovitega naravnega okna, ki je že samo po sebi vredno celotne ture. Stegovnik je izvrsten razglednik, saj se nahaja približno na sredi med Košutnikovim turnom, Storžičem in Kočno.</p>

<div>

<p id="deligps" style="float:left; font-style:italic; padding-left:6px; padding-top:10px; margin-right:15px;">
<a id="deligps" href="/https://vnaravi.si/karavanke/stegovnik"><i class="fas fa-hiking"></i> Izlet</a></p>

<p id="deligps" style="float:left; font-style:italic; padding-left:6px; padding-top:10px; margin-right:15px;">
<a id="deligps" href="https://vnaravi.si/images/kam-na-izlet/stegovnik-galerija/app-files/index.html"><i class="fas fa-street-view"></i> Panorama</a></p>

<p id="deligps" style="float:left; font-style:italic; padding-left:6px; padding-top:10px; margin-right:15px;">
<a id="deligps" href="https://vnaravi.si/galerija/category/435-stegovnik"><i class="fas fa-binoculars"></i> Galerija</a></p>

</div>

<div style="display:inline-block; width:100%; height:1px;"></div>



</body>
</html>
 
{/source}

 

17660_1_gps tools error.jpg (You do not have access to download this file.)
Like it on Facebook, Tweet it or share this topic on other bookmarking websites.
  • Re: Sourcerer plugin not working

    by » 2 weeks ago


    The problems that you mentioned are related to your template, how are they solved by fixing GPS Tools? What exactly the fix needs be?


    Follow me on twitter: https://twitter.com/corejoomla
    If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory.
    Sociable | Surveys | 
    CjForum | Polls | Answers | Quizzes | Quotes | GPS ToolsCjFit | CjBlog


  • Re: Sourcerer plugin not working

    by » 2 weeks ago


    Hi,

    my question should be more simple :). Let me ask you again.

    If I want to style track description in editor with html/css using Sourcerer plugin error occurs in List Layouts - show intro. Instead of showing only track description it shows css code as well. Pls check attached image 1.

    When click on particular track within List Layout Sourcerer plugin works correctly - inside Track only description is visible.

    Pls check attached images. Image 1 shows error in List Layouts. Images 2 show the same description inside Tracks shown correctly.

     

    Pls let me know how to solve  Sourcer plugin error related to List Layouts.

     

    Thx&brgds

    Matej

     

    33654_2_1-sourcerer error.jpg (You do not have access to download this file.)
    33654_2_2-sourcerer ok-1.jpg (You do not have access to download this file.)

  • Re: Sourcerer plugin not working

    by » 2 weeks ago


    The component simply strips off all HTML tags and shows the intro in the listing page. I am not sure how the sourcer plugin is adding content to the description. So you can override the behavior and show the html tags instead. 

    components/com_gpstools/layouts/LAYOUTNAME/tracks_list.php line 264

    <?php echo JHtml::_('string.truncate', strip_tags($item->description), $params->get('list_intro_limit', 180));?>

     

    change this toi

    <?php echo JHtml::_('string.truncate', $item->description, $params->get('list_intro_limit', 180));?>

     

    I hope it will works. Otherwise you need to contact the plugin developer to find the right solution.


    Follow me on twitter: https://twitter.com/corejoomla
    If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory.
    Sociable | Surveys | 
    CjForum | Polls | Answers | Quizzes | Quotes | GPS ToolsCjFit | CjBlog


  • Re: Sourcerer plugin not working

    by » 2 weeks ago


    Hi,

    I think <style></style> tags somehow make a problem, as in my case if html p, a tags are styled inline everything is ok. I guess that is also a solution for my question :).

    Thx for your prompt responses.

    Brgds/Matej


You do not have permissions to reply to this topic.

Powered by CjForum

Trending Topics

Missing social share buttons
  • 0 replies
Hi, The embed share is enabled but only the code is showing and no...

How to define the default editor?
  • 5 replies
Hi. Where can I define the default editor?Me and my visitors always...

Survey Manager: Translations
  • 2 replies
Hi , I have a problem with understanding how to translate a...

Wrong date when discovering new posts
  • 6 replies
Checking the new posts I found out that the forum shows me a new...

Conditional not working
  • 7 replies
Hello I use radio buttons. If last one is selected a textarea...