Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Gioacchino Nigrelli
  • Gioacchino Nigrelli's Avatar
24 May 2013 19:22
Replied by Gioacchino Nigrelli on topic [SOLVED] K2 Tools Problem/Error

[SOLVED] K2 Tools Problem/Error

Category: English K2 Community

Hi Krikor, I resolved the problem, the solution was really strange or at least not obvious to me, however, I put the Cache of the site to OFF under:

Global configuration->System->Cache Settings and put Cache to OFF.

It seems that caching on the site where I'm working (big in size) causes some problems to K2 Archive and K2 Tag Cloud.

For now it seems everything fine, users logged and not logged now can use K2 Archive and K2 Tag Cloud as always.

Thank you for the support.
  • Filip Nikitovic
  • Filip Nikitovic's Avatar
24 May 2013 17:25
Replied by Filip Nikitovic on topic Commenting on K2 blog using only social account

Commenting on K2 blog using only social account

Category: English K2 Community

It simply doesnt work like this.
I tried same thing on my website,not just localhost.

I edited code just as You instructed
<?php if($this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2')) && empty($this->item->event->K2CommentsBlock)): ?> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-comments" data-href="http://www.vienna-airport-cab.at/" data-width="470" data-num-posts="10"></div> <?php endif; ?> <!-- Item comments -->

In category "view" everything is ok but when I try to open "item" page I can only see white screen and nothing else.
  • Filip Nikitovic
  • Filip Nikitovic's Avatar
24 May 2013 15:26
Replied by Filip Nikitovic on topic Commenting on K2 blog using only social account

Commenting on K2 blog using only social account

Category: English K2 Community

Cooments are enabled.

When I edit code like this and try to open item i get white page,no error no nothing

<?php if($this->item->params->get('itemComments')): ?> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-comments" data-href="http://example.com" data-width="470" data-num-posts="10"></div> <?php endif; ?>

Mybe problem is becouse I use example.com or becouse Im working on localhost
  • Filip Nikitovic
  • Filip Nikitovic's Avatar
24 May 2013 14:27 - 24 May 2013 14:33
Replied by Filip Nikitovic on topic Commenting on K2 blog using only social account

Commenting on K2 blog using only social account

Category: English K2 Community

Please,please ,Im sorry to bore You so how does code look like exactly at the end?

I will customize it so suit my needs.

Do I have to add only this:
<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-comments" data-href="http://example.com" data-width="470" data-num-posts="10"></div> <?php endif; ?>

under this
<?php if($this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2')) && empty($this->item->event->K2CommentsBlock)): ?>

becouse when I do that nothing happens
  • Filip Nikitovic
  • Filip Nikitovic's Avatar
24 May 2013 13:57
Replied by Filip Nikitovic on topic Commenting on K2 blog using only social account

Commenting on K2 blog using only social account

Category: English K2 Community

So it was madam all the time :)
Thank You very much for your time.

Im losing my had here.

You told me to "comment out all elements inside that if statement (or erase them) and paste your facebook code there"

So why does code still have elements that You told me to erase.
Should I erase them like this.
<?php if; ?> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-comments" data-href="http://example.com" data-width="470" data-num-posts="10"></div> <?php endif; ?>
  • David Lohan
  • David Lohan's Avatar
24 May 2013 13:54
Replied by David Lohan on topic Using Tags

Using Tags

Category: English K2 Community

I've returned to this very subject after months awaty. It is clear that newer versions of K2 have become available, but that they still don't address the issues raised here. The same is true of extensions for K2.
  • Yiota
  • Yiota's Avatar
24 May 2013 13:26

Commenting on K2 blog using only social account

Category: English K2 Community

Actually is Madam,

Your code should look like this
<?php if($this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2')) && empty($this->item->event->K2CommentsBlock)): ?> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-comments" data-href="http://example.com" data-width="470" data-num-posts="10"></div> <?php endif; ?>
  • Marco
  • Marco's Avatar
24 May 2013 11:36

The was a problem converting the source image.

Category: Simple Image Gallery PRO

There was a problem rendering your image gallery. Please make sure that the folder you are using in the Simple Image Gallery Pro plugin tags exists and contains valid image files. The plugin could not locate the folder: media/k2/galleries/1

I recive this error always , also on new and clear installation.. the plugin worket for some weeks , than one day it started with that.. The permission are set right , the folder exist and inside i can see the images... so , what's the problem in yours opinion?
i ve already read a lot of article about this error and tryed all the possible solutions but nothing.. pls help me ... u can see the site here age2.draco-web.com/
  • sakellariou panagiotis
  • sakellariou panagiotis's Avatar
24 May 2013 09:52
Replied by sakellariou panagiotis on topic Tragic Problem with Tag urls

Tragic Problem with Tag urls

Category: English K2 Community

I managed to pinpoint the problem of the wrong tag urls. It has to do with lowercase-uppercase letters.

If i add a k2 tag in Greek that contains even one uppercase letter then the url is wrong (domain/tag/ instead of domain/tag/tag-name) . If the tag is all lowercase letters then it's working fine.

I cannot function a site like that though, with the constant fear of adding an uppercase letter which will result in an invalid url (say... bye bye google), k2 and sh404 both have settings that are supposed to transform a url to all lowercase or uppercase, so I suppose that shouldn't be happening and it's a major bug.

Any ideas how to fix it?
  • sakellariou panagiotis
  • sakellariou panagiotis's Avatar
24 May 2013 05:12
Tragic Problem with Tag urls was created by sakellariou panagiotis

Tragic Problem with Tag urls

Category: English K2 Community

I'm building a site on joomla 3.1.1 and k2 2.6.6 . I'm also using sh404 (latest version) and there is a huge problem with the tag urls.

ANY tags that are in Greek are assigned the url "domain/tag/" which ofcourse is wrong and as a problem is a total game-breaker.

I manage to make sh404 generate the correct urls (e.g. domain/tag/tag-name) by doing the following steps

1. clear joomla cache
2.purge all sh404 urls
3.open sh404 configuration and save configuration (no need to change anything)

the steps have to be in that exact order and as soon as I add a NEW tag it won't get the correct url but instead the "domain/tag/" one. Also the above steps work only every second time I do them, which means that in order to have a correct url for a new Greek tag I need to do these steps then visit a page where the tag appears (so that the wrong url is created), then do the steps again, and then the correct url is created after visiting the same page again.

Also I'm having some more problems with the tags, for instance if i try to create a joomla menu pointing to a k2 tag, it won't give me any options to choose a tag (even though there are many tags). I noticed another thread in here reporting the same and the answer was "use joomla 3.0.4" which is totally unacceptable as an answer. I've been building this site for 1 month now and only yesterday did I realize the tag problems, and suffice it to say that I don't have any backups with joomla 3.0.4 since the site is being built.

And yet another tag problem, the selection-based tagging is just one big bug, nothing works. if i want to add a tag, pressing the add to selection does not move the tag to the selected field, but if I save the item it is indeed added, however I can only add one tag, a second one will not be added. I can only add a tag - hope it's added, save item, than add another. Ofc, I'm using the free-tagging mode because of this, which is really unintuitive as I have thousands of tags and seeing what I have beforehand helps me remember what to add.

Anyway, try to ignore the last 2 problems, as the game-breaker bug is the one with the greek tag urls, without a fix to that I'm simply lost.

Any help would be greatly appreciated.
  • Steven Johnson
  • Steven Johnson's Avatar
24 May 2013 03:33
Replied by Steven Johnson on topic TAG selector options disappeared in TAG Menu

TAG selector options disappeared in TAG Menu

Category: English K2 Community

I have the same issue also, glad it has been found and fixed.

I am assuming the next K2 release will have the issue fixed.

Any estimate on how long till the next release of K2?

Thanks! -- Steven
  • Filip Nikitovic
  • Filip Nikitovic's Avatar
23 May 2013 20:38 - 23 May 2013 22:11
Replied by Filip Nikitovic on topic K2 on multilanguage sites

K2 on multilanguage sites

Category: English K2 Community

<!-- Facebook Button --> <div class="itemFacebookButton"> <div id="fb-root"></div> <?php if ($locale=='de_DE'): ?> <script> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <?php else: ?> <script> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <?php endif; ?> <div class="fb-like" data-send="false" data-width="200" data-show-faces="true"></div> </div> <?php endif; ?>

Mybe You can see here what I did wrong
  • Filip Nikitovic
  • Filip Nikitovic's Avatar
23 May 2013 20:30 - 23 May 2013 20:31
Replied by Filip Nikitovic on topic K2 on multilanguage sites

K2 on multilanguage sites

Category: English K2 Community

This is where I inserted

$lang = JFactory::getLanguage();
$locale = $lang->getTag();
<?php /** * @version $Id: item.php 1812 2013-01-14 18:45:06Z lefteris.kavadas $ * @package K2 * @author JoomlaWorks https://www.joomlaworks.net * @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved. * @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html */ // no direct access defined('_JEXEC') or die; $lang = JFactory::getLanguage(); $locale = $lang->getTag(); ?>

Just as You did
  • Jordan Ramstad
  • Jordan Ramstad's Avatar
23 May 2013 19:34
Replied by Jordan Ramstad on topic Duplicate pages

Duplicate pages

Category: English K2 Community

So if my understanding is correct. It is a problem with Joomla's normal router?

So that seems to bring me back to square one, either use a "bug fix" plugin or just fix it myself. 301 redirects and canonical links are not really an option. I will however take a look at some of them and what they do before I make a final call on it.

If I manage to get a good way to fix this without interfering with base k2, i will try to package it in a plugin, That way everyone else experiencing this problem can have a way to resolve it.

I would say on the k2 side of things is to remake the tag view menu item type. Since multiple tags are used on one item, everything within tag view must direct the user to a specific page for the item and not be under the structure of tags.

If a menu item is set for category views it can use that as well, but an item not living under that category cannot be seen from that category.

I will check out Joomla 3.0 to see if the router works better with k2. Though it is still some ways off from being stable enough to be used on major projects.

The problem with mapping all content is the site(s) in question have over 15 thousand items. So you can see that if google see's those 15 thousand items having 20 duplicate pages....... goodbye page ranking. This site is a sports history database, so its page rank is vital.

If we use some sort of extension to automatically create menu's then we bloat the database far more then necessary. Leading to page speed issues.

Thank you for your helpful comments.
  • Jo
  • Jo's Avatar
23 May 2013 19:05 - 23 May 2013 19:07
Replied by Jo on topic K2 on multilanguage sites

K2 on multilanguage sites

Category: English K2 Community

WOOHOOO!

Finally got it to work. Thank you Yiota for pointing me in the right direction.

I hope this helps someone else.

NOTE: This is for a 4 language site with spanish being the default language and catalan, english and french as the other languages so you will have to alter language codes and remove the blocks that you don't want. the default language is in the last block after the <?php else: ?>

First I added

$lang = JFactory::getLanguage();
$locale = $lang->getTag();

Right under
defined('_JEXEC') or die;

near the top of item.php

Then find the code between

<div id="fb-root"></div>
and
<div class="fb-like" data-send="false" data-width="200" data-show-faces="true"></div>

at around line 320 and replace the code with this



<?php if ($locale=='es-ES'): ?>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/es_ES/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<?php endif; ?>
<?php if ($locale=='ca-ES'): ?>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/ca_ES/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<?php endif; ?>
<?php if ($locale=='fr-FR'): ?>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/fr_FR/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>

<?php else: ?>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<?php endif; ?>


I don't know if this is the correct way to do it but it works!
  • Jordan Ramstad
  • Jordan Ramstad's Avatar
23 May 2013 14:53
Replied by Jordan Ramstad on topic Duplicate pages

Duplicate pages

Category: English K2 Community

I have a feeling that I might of explained it incorrectly.

We have only tried sh404sef to try to fix the problem. The problem is not caused by how url's are handled in general but how they are rendered in the templates of k2.

so in the template in lets say tag.php links are created like this
<?php echo $item->link; ?>

However if it is the same item it can create an infinite amount if different links depending on what the tag is.

if the tag is 'k2' the link will be k2/item1
if the tag is 'sh404sef' the link will be sh404sef/item1

I feel there should never be a place that a CMS has multiple url's for one content page. The links I would usually have to force to be like so:
component/k2/item1

This however can create problems later on. But so far I have noticed i have had to do this on pretty much every site we have used k2.

This means that in every template I have to change where <?php echo $item->link; ?> is to <?php echo JURI::base()'/component/k2/'.$item->alias; ?>
(I may not have made that proper, but it is close enough to show my point)

I will look into plugins, but a plugin to fix something seems like an incorrect use of a plugin, it should be to add features. also 301 redirects would work, however you would need to add over 300 in some of our sites, and make sure to add another every time you update.

Thank you for your replies, I how what I have added here may clear up any confusion.
  • Yiota
  • Yiota's Avatar
23 May 2013 11:27
Replied by Yiota on topic K2 on multilanguage sites

K2 on multilanguage sites

Category: English K2 Community

Don't forget to make an if statement and check the language.
Try this:

$lang = JFactory::getLanguage();
$locale = $lang->getTag();

if ($locale=='de-DE'):
include the facebook button with the change I suggested for the script block;
else :
leave the default facebook button code.
endif;
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
23 May 2013 11:23
Replied by Krikor Boghossian on topic Duplicate pages

Duplicate pages

Category: English K2 Community

Hello to all,

Sh404 like many other SEO/SEF extensions use a forced 301 redirect to a specific url.
All the duplicate urls are from the Joomla! router.

You currently have two options. Either map all your content into menus and/or use K2's advanced SEF features and use a K2 plugin to generate the canonical tag which will resolve all the duplicate content issues.

Or you can use an extension like the aforementioned which will always redirect you to a specific path.

Google loves both ways, the canonical link and the 301 redirect.
  • Eric
  • Eric's Avatar
23 May 2013 07:59 - 23 May 2013 08:05
Replied by Eric on topic Add Article page directly from Menu

Add Article page directly from Menu

Category: English K2 Community

for the edit page first try to see if this link works:

/index.php?option=com_k2&view=item&task=add&tmpl=component

go to that page, if it shows the front end item edit form, then your setup for it, then we can do a bypass of sorts, to make it appear in your menu, if not, does the user or you have proper user, and group permissions setup within k2?

you can read this thread for someone with a similar issue: getk2.org/community/New-to-K2-Ask-here-first/172530-costumize-item-edit-form#174029

the tags part, it might be possible, but would probably require a good bit of code changes
  • Gioacchino Nigrelli
  • Gioacchino Nigrelli's Avatar
22 May 2013 23:56
Replied by Gioacchino Nigrelli on topic [SOLVED] K2 Tools Problem/Error

[SOLVED] K2 Tools Problem/Error

Category: English K2 Community

My only add to the .htacces was the RewriteEngino to On, I post you the htaccess just to let you see....