Page 1 of 2

jostag 1.5 native — support

Posted: Wed Sep 17, 2008 7:47 am
by infograf768
Please use this topic if you have any questions concerning jostag.

http://extensions.joomla.org/component/ ... Itemid,35/

Re: jostag 1.5 native — support

Posted: Mon Apr 18, 2011 3:17 pm
by GayleH2
I am trying to add a canonical url tag to my joomla website. The instructions on how to do this with Joomla are not clear and I am confused how I go about using this on all of my joomla site pages. My understanding is that I can add a plugin called JosTag to my site - then I assume I am supposed to somehow put in a canonical url tag on each page or article - as to how I do this I am totally confused.... does this tag go in the template directory after the <head> - or do you put it at the top of each article? And what do I do with the JosTag other than activating it as a plugin? Any help would be very much appreciated>> my site is http://www.webdesignmagik.com

Re: jostag 1.5 native — support

Posted: Mon Apr 18, 2011 3:51 pm
by infograf768
You could indeed add a canonical URL for your articles with jostag, but it would be a no end job...
And it would only work when an article is displayed as a single article.

Better use specific components as SEF404.

Re: jostag 1.7 released

Posted: Tue Jul 19, 2011 10:03 am
by infograf768
Announcing a Joomla! 1.7 optimised version of Jostag.

http://extensions.joomla.org/extensions ... adata/5139


Enjoy.

Re: jostag 1.5 native — support

Posted: Mon Jul 25, 2011 8:41 pm
by Varsys
Thank you Infograf, VERY useful plugin! We used it to add nofollow tag to some individual articles and it was simple.

Re: jostag 1.5 native — support

Posted: Tue Apr 10, 2012 5:20 pm
by rosponius
Hi infograf,
(I'm posting here because It seems I can't login to the review page)

First of all:thank you for this great plugin (and for the advices you gave me in the past about multilanguage!)

I'm trying to use your plugin with oomla 2.5.
If I put something like {tag}meta name="googlebot" content="noindex, no follow"{/tag}
it works fine.
But if I put something like the following code:
{tag}<link rel=”canonical” href=”http://www.website.com/current-friendly ... ml”/>{/tag}

then the code goes into the body part of html instead of head section.
I can't see where I am wrong

Re: jostag 1.5 native — support

Posted: Wed Apr 11, 2012 7:21 am
by infograf768
You should not include the < and /> in between the {tag}... {/tag}
And make sure your doublequotes are correct, i.e. " and not ʺ

I get here OK:
<meta name="googlebot" content="noindex, no follow"/>
<link rel="canonical" href="http://www.website.com/current-friendly-url.html"/>

Re: jostag 1.5 native — support

Posted: Wed Apr 11, 2012 12:28 pm
by rosponius
Thank you,
I didn't change anything in the code but now It goes in the head section, I don't know how actually! I just change editor from tinymce and set it back.

But if I check the page with firebug I get something like this

<link href="http://www.website.com/current-friendly-url.html" rel="canonical"> ???

instead of:

<link rel=”canonical” href=”http://www.website.com/current-friendly-url.html”/>

Is this normal?

Re: jostag 1.5 native — support

Posted: Fri Jun 22, 2012 2:40 pm
by adrien5555
Hello infograph,

Thanks for sharing your great plugin, but I can't make it work unfortunately. When I type a tag in the body of an article, it doesnt convert to a head tag....

One page using Jostag can be seen here :
http://test.anco.pro/index.php/blog-cod ... n-caraibes

the site is under Joomla 2.5.4

Your help would be greatly appreciated :D
Merci !
Adrien

Re: jostag 1.5 native — support

Posted: Fri Jun 22, 2012 3:47 pm
by infograf768
Make sure you enable the plugin

Re: jostag 1.5 native — support

Posted: Fri Jun 22, 2012 7:28 pm
by adrien5555
sorry,
I forgot to mention important info, sorry. Actually, I dont manage to set up the plugin. Each time I tried, I got this error :

JInstaller: :Install : le fichier n'existe pas /homez.187/ancokkaz/www/test/tmp/install_4fe4c6c5e30a1/index.html

Plug-in : erreur à l'installation

Re: jostag 1.5 native — support

Posted: Sat Jun 23, 2012 5:54 am
by infograf768
Can you install any other extension?
Have you tried to install thee version of the plugin for the 1.7/2.5 series and NOT the 1.5 one?

Re: jostag 1.5 native — support

Posted: Sat Jun 23, 2012 8:23 pm
by NoCoolNamesLeft
Hi

I get an error when trying to install this particular plugin, other plugins install fine. I have also tried to instal lit on a remote server running the latest versions of php/joomla. Same errors. The error below comes from a local XAMPP installation. I've also downloaded the plugin from the download site multiple times to ensure there is no crc errors or similar problems with the install package.

Details:

System:
PHP Version 5.3.8
Web Server Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 2.5.6 Stable [ Ember ] 19-June-2012 14:00 GMT
Joomla! Platform Version Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT


File:
jostag_plugin_for_1.7.zip

Error on install:
JInstaller: :Install: File does not exist F:\xampp\htdocs\template2\tmp\install_4fe620fb16810\index.html
Error installing plugin

Re: jostag 1.5 native — support

Posted: Sun Jun 24, 2012 5:48 am
by infograf768
You are correct. the index.html file was missing.
Please use new zip.
I also attach it here.
jostag_plugin_for_2.5.zip

Re: jostag 1.5 native — support

Posted: Sun Jun 24, 2012 12:47 pm
by NoCoolNamesLeft
Hi

Superb, that worked.

Thanks! :D

By the way, I have one security concern with this. Wouldnt it be possible for someone to abuse this in the comments of an article? I don't want people to be able to add external JS/CSS to the head page of the site by simply adding the tag code in a comment. (?)

Re: jostag 1.5 native — support

Posted: Mon Jun 25, 2012 5:47 am
by infograf768
I have no idea how you implement comments on your site.
I doubt any content plugin would be loaded in these.
Best is for you to test for example with a {loadmodule ...}.

Concerning front-end authors, yes, they could write a new article containing the tags, if they are aware the plugin is active.

But in both cases, this would add stuff in the "meta" tag, therefore one can't load a js or a css file through it.

Code is
$document->addCustomTag($tag);
not
$doc->addStyleSheet
or
$doc->addScript

Re: jostag 1.5 native — support

Posted: Tue Jun 26, 2012 2:45 pm
by adrien5555
hello infograf,

thanks for fixing this. It works great now :D

by the way, using Jostag is the only way I found to insert Geo Tags within a Joomla site.

regards,

Re: jostag 1.5 native — support

Posted: Tue Jun 26, 2012 6:04 pm
by infograf768
adrien5555 wrote:hello infograf,

thanks for fixing this. It works great now :D

by the way, using Jostag is the only way I found to insert Geo Tags within a Joomla site.

regards,
Great to know it helped you.

Re: jostag 1.5 native — support

Posted: Mon Jul 23, 2012 10:17 pm
by hockey2112
I have the following info entered into a jostag module positioned in the absolute position of Purity II from Joomlart, but it is not working correctly:

Code: Select all

{tag}link href="slider/css/red.css" rel="stylesheet" type="text/css" title="red"{/tag}
{tag}link href="slider/css/fonts.css" rel="stylesheet" type="text/css"{/tag}
{tag}link href="slider/css/photos.css" rel="stylesheet" type="text/css"{/tag}
{tag}script type="text/javascript" src="slider/js/jquery-1.6.1.min.js"{/tag}
{tag}script type="text/javascript" src="slider/js/stepcarousel.js"{/tag}
{tag}script type="text/javascript" src="slider/js/option.js"{/tag}
{tag}script type="text/javascript" src="slider/js/showhide.js"{/tag}
{tag}script type="text/javascript" src="slider/js/photos.js"{/tag}
{tag}script src="slider/js/styleswitch.js" type="text/javascript"{/tag}
Am I doing something wrong? The plugin is enabled, the module is enabled, and it is set to show up only on the pages I choose.

Re: jostag 1.5 native — support

Posted: Tue Jul 24, 2012 7:26 am
by infograf768
jostag version 2.1 was not optimised to include js files.

Please find here a new version 2.2.
jostag_plugin_for_2.5.zip
Note: the format to include js files is:
{tag}script src="myjavascript.js" type="text/javascript"> </script{/tag}

Please install and test.
New version now available through JED:
http://extensions.joomla.org/extensions ... -data/5139

Re: jostag 1.5 native — support

Posted: Tue Jul 24, 2012 2:06 pm
by hockey2112
I just downloaded the plugin from your site (http://info-graf.fr/infografcvs/t%C3%A9 ... g-2-5.html), uninstalled the old plugin, installed the new one, and adjusted the code in my module so that it looks like this:

Code: Select all

{tag}link href="slider/css/red.css" rel="stylesheet" type="text/css" title="red"{/tag}
{tag}link href="slider/css/fonts.css" rel="stylesheet" type="text/css"{/tag}
{tag}link href="slider/css/photos.css" rel="stylesheet" type="text/css"{/tag}
{tag}script src="slider/js/jquery-1.6.1.min.js" type="text/javascript"> </script{/tag}
{tag}script src="slider/js/stepcarousel.js" type="text/javascript"> </script{/tag}
{tag}script src="slider/js/option.js" type="text/javascript"> </script{/tag}
{tag}script src="slider/js/showhide.js" type="text/javascript"> </script{/tag}
{tag}script src="slider/js/photos.js" type="text/javascript"> </script{/tag}
{tag}script src="slider/js/styleswitch.js" type="text/javascript"> </script{/tag}
Unfortunately, it did not work; the live page looks just as it did with the old version of the plugin.

Re: jostag 1.5 native — support

Posted: Wed Jul 25, 2012 5:59 am
by infograf768
Please look at the source of the page where the html module is displayed and copy here the head of the page.

This is what I get here:

Code: Select all

[...]
 <script src="/trunk/media/system/js/mootools-core.js" type="text/javascript"></script>

  <script src="/trunk/media/system/js/core.js" type="text/javascript"></script>
  <script src="/trunk/media/system/js/caption.js" type="text/javascript"></script>
  <script src="/trunk/media/system/js/mootools-more.js" type="text/javascript"></script>
  <script src="/trunk/templates/beez_20/javascript/md_stylechanger.js" type="text/javascript"></script>
  <script src="/trunk/templates/beez_20/javascript/hide.js" type="text/javascript"></script>
  <script type="text/javascript">
window.addEvent('load', function() {
				new JCaption('img.caption');
			});
function keepAlive() {	var myAjax = new Request({method: "get", url: "index.php"}).send();} window.addEvent("domready", function(){ keepAlive.periodical(3600000); });
  </script>

  <link href="/trunk/slider/css/red.css" rel="stylesheet" type="text/css" title="red"/>
  <link href="/trunk/slider/css/fonts.css" rel="stylesheet" type="text/css"/>
  <link href="/trunk/slider/css/photos.css" rel="stylesheet" type="text/css"/>
  <script src="/trunk/slider/js/jquery-1.6.1.min.js" type="text/javascript"> </script>
  <script src="/trunk/slider/js/stepcarousel.js" type="text/javascript"> </script>
  <script src="/trunk/slider/js/option.js" type="text/javascript"> </script>
  <script src="/trunk/slider/js/showhide.js" type="text/javascript"> </script>
  <script src="/trunk/slider/js/photos.js" type="text/javascript"> </script>
  <script src="/trunk/slider/js/styleswitch.js" type="text/javascript"> </script>


<!--[if lte IE 6]>

etc.

Re: jostag 1.5 native — support

Posted: Thu Jul 26, 2012 8:37 pm
by hockey2112
I think I found the issue. Since the script items have, essentially, two tags, I had to modify your examples like this:

Code: Select all

{tag}link href="slider/css/red.css" rel="stylesheet" type="text/css" title="red"{/tag}
{tag}link href="slider/css/fonts.css" rel="stylesheet" type="text/css"{/tag}
{tag}link href="slider/css/photos.css" rel="stylesheet" type="text/css"{/tag}
{tag}script src="slider/js/jquery-1.6.1.min.js" type="text/javascript"{/tag} {tag}/script{/tag}
{tag}script src="slider/js/stepcarousel.js" type="text/javascript"{/tag} {tag}/script{/tag}
{tag}script src="slider/js/option.js" type="text/javascript"{/tag} {tag}/script{/tag}
{tag}script src="slider/js/showhide.js" type="text/javascript"{/tag} {tag}/script{/tag}
{tag}script src="slider/js/photos.js" type="text/javascript"{/tag} {tag}/script{/tag}
{tag}script src="slider/js/styleswitch.js" type="text/javascript"{/tag} {tag}/script{/tag}

Re: jostag 1.5 native — support

Posted: Fri Jul 27, 2012 6:27 am
by infograf768
I was asking you:
Please look at the source of the page where the html module is displayed and copy here the head of the page.

with the new plugin and without these new {tag}

Re: jostag 1.5 native — support

Posted: Tue Sep 11, 2012 10:47 am
by Lucio71
Hello,
I use JosTag but the Google Analytics Content Experiment code code I've entered is shown 2 times:

...

Sorry the issue was caused by a conflict with another plugin; I uninstalled it and now the JosTag plugin works fine!

Re: jostag 1.5 native — support

Posted: Wed Nov 21, 2012 6:04 pm
by itsnetservices
Amazing plugin!

I am having just 1 problem. Anything I enter between the {tag}{/tag} get's inserted 2 times into the head.

Do you have any idea why this may be?

Re: jostag 1.5 native — support

Posted: Thu Dec 13, 2012 11:52 am
by tekstlogo
Hi

Great plugin. I am using it for canonical etc.

I need to track my 404 page with a script. But it strips the < and />
I know you say that i should avoid it, but is there a workaorund to get the script working?


{tag}script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXX-X']);
_gaq.push(['_trackPageview', '/404' + location.pathname + location.search]);


(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script{/tag}

Re: jostag 1.5 native — support

Posted: Fri Dec 14, 2012 6:14 pm
by infograf768
Version 2.2 of Jostag for 2.5 will add your script to head.

Re: jostag 1.5 native — support

Posted: Fri Dec 14, 2012 6:24 pm
by tekstlogo
infograf768 wrote:Version 2.2 of Jostag for 2.5 will add your script to head.
I use v 2.2 for J 2.5

The problem is that the tag plugin strips < and /> inside the tag. Because the script has more than 1 start and end signs.

The original script is and the highlighted signs gets stripped :

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXX-X']);
_gaq.push(['_trackPageview', '/404' + location.pathname + location.search]);


(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

Re: jostag 1.5 native — support

Posted: Fri Dec 14, 2012 6:50 pm
by infograf768
It works OK here.
jostagscript.png