Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
05 Oct 2015 17:40
Replied by Krikor Boghossian on topic K2 Extra Fields Image Tag Src Extract

K2 Extra Fields Image Tag Src Extract

Category: English K2 Community

preg_replace requires a wildcard character to work correctly in this case.
$toreplace = array( '<img src="(.*?)" alt="Icon" />') =>'$1' );

or getk2.org/documentation/tips-a-tricks/1129-extra-field-image-type-as-link which you might have already seen.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
05 Oct 2015 17:13
Replied by Krikor Boghossian on topic Google Tag Manager event tags & K2 conflict

Google Tag Manager event tags & K2 conflict

Category: English K2 Community

That's nice of you Irene :)
  • Irene Sutherland
  • Irene Sutherland's Avatar
05 Oct 2015 14:56
Replied by Irene Sutherland on topic Google Tag Manager event tags & K2 conflict

Google Tag Manager event tags & K2 conflict

Category: English K2 Community

Thanks! I'll check it out and report back to this post for the benefit of others.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
05 Oct 2015 14:24
Replied by Krikor Boghossian on topic Google Tag Manager event tags & K2 conflict

Google Tag Manager event tags & K2 conflict

Category: English K2 Community

K2's scripts do not use return false; which cause conflicts with GTM.
There are however multiple versions of jQuery from the mod_cn_photos, the mod_susnet_twitter and the mod_susnet_likebox modules.
This will cause issues in your site's functionality.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
05 Oct 2015 13:03
Replied by Krikor Boghossian on topic Meta description tag contain script text

Meta description tag contain script text

Category: English K2 Community

How is that banner generated? Through a {loadposition} snippet or through a template override?

If you are using an override you can try moving the code outside the introtext's div.

In every other case you need to enter the snippet I gave you in the item.php file.

More on overrides can be found here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
04 Oct 2015 23:36
Replied by Krikor Boghossian on topic Edit Tagged Under

Edit Tagged Under

Category: English K2 Community

As Franz suggested, the string to be changed is: K2_TAGGED_UNDER
  • Paul
  • Paul's Avatar
04 Oct 2015 08:42
Edit Item Spaces was created by Paul

Edit Item Spaces

Category: English K2 Community

HI,
How can I edit the amount of space between a K2 items Title, Content, and Tagged Under?
Thanks!
  • Irene Sutherland
  • Irene Sutherland's Avatar
02 Oct 2015 14:14
Replied by Irene Sutherland on topic Google Tag Manager event tags & K2 conflict

Google Tag Manager event tags & K2 conflict

Category: English K2 Community

Hi Krikor,

Thanks for taking a look.

There is no deployment of GA code when you use GTM.

You put GTM code on your site, which then speaks to GA. The way I'm getting GTM code into the site is with the GTM plugin.

I'm not suggesting there's JS errors - rather that there may be a JS library conflict.

Please have a look at this article: www.simoahava.com/analytics/dont-gtm-listeners-work/

Rene
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
02 Oct 2015 12:43
Replied by Krikor Boghossian on topic Google Tag Manager event tags & K2 conflict

Google Tag Manager event tags & K2 conflict

Category: English K2 Community

Hello Rene,

Is this the code?
<script type="text/javascript"> dataLayer = []; </script> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-TKZDTJ" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <script type="text/javascript"> (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({ 'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:''; j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-TKZDTJ'); </script> <!-- End: gtm -->

I cannot see any JS errors in your site, but I cannot see any analytics code, only some HTML comments.

K2 by default does not load analytics, how are you loading them in this site?
  • Irene Sutherland
  • Irene Sutherland's Avatar
02 Oct 2015 07:22 - 02 Oct 2015 07:44
Replied by Irene Sutherland on topic Google Tag Manager event tags & K2 conflict

Google Tag Manager event tags & K2 conflict

Category: English K2 Community

Hi Krikor,

Thanks very much for getting back to me. :)

Google Tag Manager (GTM) isn't an extension, it's a Google application that allows you to control event and other tags and generally read the analytics on your site. It can work with any analytics solution, but I'm using it in conjunction with Google Analytics .

What connects Google Tag Manager to your site is a snippet of code - although I'm using a plugin called Google Tag Manager , which inserts the snippet of code just after the <body> tag. All you have to do is place your GTM ID in the relevant field in the plugin.

I've set up GTM on a number of my sites. I've been able to get event tags firing on the non-K2 sites, but not on catholicenquiry.com, which uses K2 for articles.

There can be a range of reasons that tags don't fire and one common reason can be JavaScript library conflicts .

It would seem to me that this may be where the problem lies.

I'm wondering if you know of any setting in K2 that I might be able to change in order to avoid this conflict.

I'm sure, in time, other users of K2 will want to use GTM and will find your answer useful.

Thanks again

Rene

PS I had searched the forum first. :)
  • Design
  • Design's Avatar
01 Oct 2015 23:50
Replied by Design on topic K2 Extra Fields Image Tag Src Extract

K2 Extra Fields Image Tag Src Extract

Category: English K2 Community

Nevermind! Finally managed to do it!
  • Design
  • Design's Avatar
01 Oct 2015 20:40
Replied by Design on topic K2 Extra Fields Image Tag Src Extract

K2 Extra Fields Image Tag Src Extract

Category: English K2 Community

Hey! I tried combining many of these techniques, and it actually was working, but I stumbled on something really weird.

I started the item with this:
$icon = $this->item->extraFields->$extrafieldsalias[28]->value ; $icon = preg_replace(array('/<img src="/', '/" alt="Icon" />/'),"",$icon);

I declared $icon and use $extrafieldsalias[28] to get the alias of the the Extra Field I wanted.
When I used preg_replace on the '/<img src="/', it worked and the actual <img src=" was removed from the $icon string as I desired, but the second part: '/" alt="Icon" />/' did not work as I expected. When I add this part, it actually erases the entire content and nothing shows up.

Do you have any idea why that is? I'm almost certain that it has nothing to do with the PHP function being wrongly written as it has been working and I got a few results. Well... Anything I could work around or any testing?
  • Andrew Voronov
  • Andrew Voronov's Avatar
01 Oct 2015 18:11
Replied by Andrew Voronov on topic K2 tag filtering doesn't work with SEF

K2 tag filtering doesn't work with SEF

Category: English K2 Community

@Lefteris

I don't know what to say.
I have local copy of the web site and tried all 4 steps that you wrote and it didn't solve the issue.
I don't know how to prove it.. may be using screen sharing?!
  • Design
  • Design's Avatar
01 Oct 2015 17:40
Replied by Design on topic K2 Extra Fields Image Tag Src Extract

K2 Extra Fields Image Tag Src Extract

Category: English K2 Community

So you're saying that if I use this:
<?php echo $this->item->extraFields->EXTRAFIELDALIASHERE->value; ?>

The value of the image will come out as a pure string of the source, and not an IMG tag?
If so, I'll test it out later.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
01 Oct 2015 17:29
Replied by Krikor Boghossian on topic K2 Extra Fields Image Tag Src Extract

K2 Extra Fields Image Tag Src Extract

Category: English K2 Community

I already sent you the code. Look at the highlighted section.
Replace the item.php's image block with and change the alias to your extrafield's alias.
  • Lefteris
  • Lefteris's Avatar
01 Oct 2015 17:29
Replied by Lefteris on topic K2 tag filtering doesn't work with SEF

K2 tag filtering doesn't work with SEF

Category: English K2 Community

@Andrew Voronov

I cannot verify the issue. Just tested K2 2.6.9 under Joomla! 3.4.4 and it worked fine for me. I suggest to try the following:

1. Update Joomla! and K2 to their latest stable version.
2. Check for any third-party system plugins. Try to disable them one by one.
3. Try to disable URL rewriting by setting " Use URL Rewriting" to "No".
4. Check your .htaccess file. Copy Joomla's htaccess.txt contents inside your .htaccess file.
  • Andrew Voronov
  • Andrew Voronov's Avatar
01 Oct 2015 15:50
Replied by Andrew Voronov on topic K2 tag filtering doesn't work with SEF

K2 tag filtering doesn't work with SEF

Category: English K2 Community

Lefteris wrote: @Andrew Voronov

Can you please verify one last thing? Is the multilingual environment set up correctly on your site? If you are using the core Joomla! multilingual feature you can test this by publishing the "Multilanguage Status" module in the administration modules.


Hi. You may look at my web site and see that it is multi lingual. At right you may see a lang switcher. Switcher works well.
Here is an image of my multi lang status on admin page (from web version of the web site).
  • Design
  • Design's Avatar
01 Oct 2015 15:47
Replied by Design on topic K2 Extra Fields Image Tag Src Extract

K2 Extra Fields Image Tag Src Extract

Category: English K2 Community

Sorry, but this doesn't look like what I'm talking about. This seems like a way of using K2 Extra Fields Image as the Item Image.
And I'm not really a PHP developer. I try to work my way around many times by testing millions of possibilities until it works, but I would really appreciate a more point specific answer.

So, its more of a matter if you know any way I could remove everything but the 'src="' value of the K2 Extra Fields Image in the item.php?
  • Lefteris
  • Lefteris's Avatar
01 Oct 2015 15:13
Replied by Lefteris on topic K2 tag filtering doesn't work with SEF

K2 tag filtering doesn't work with SEF

Category: English K2 Community

@Andrew Voronov

Can you please verify one last thing? Is the multilingual environment set up correctly on your site? If you are using the core Joomla! multilingual feature you can test this by publishing the "Multilanguage Status" module in the administration modules.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
01 Oct 2015 15:02
Replied by Krikor Boghossian on topic K2 tag filtering doesn't work with SEF

K2 tag filtering doesn't work with SEF

Category: English K2 Community

Thank you for reporting this Andrew, we will look into this and let you know.
Displaying 1641 - 1660 out of 6582 results.

Powered by Kunena Forum