COMMUNITY FORUM
Search Results (Searched for: k2 Tag)
- Martha Moustaka
29 Feb 2012 11:16
Replied by Martha Moustaka on topic K2 tags in greek
K2 tags in greek
Category: English K2 Community
Hi diegito,
Are you using JoomFish? What version of K2 you are using?
Are you using JoomFish? What version of K2 you are using?
- Odin Mayland
29 Feb 2012 09:18 - 29 Feb 2012 09:20
Image Gallery in Tag Layout was created by Odin Mayland
Image Gallery in Tag Layout
Category: English K2 Community
I have some k2-items that do not have an k2-image. They only have images in the K2-item "Image Gallery" tab.
Is it possible to have the image gallery thumbnail displayed in the tag layout view and have the image gallery pop up in a modal window instead of linking to the k2-item?
I was able to accomplish this in the category view by added the code commented with "<!-- START: Display Image Gallery in category list-->"
Is it possible to have the image gallery thumbnail displayed in the tag layout view and have the image gallery pop up in a modal window instead of linking to the k2-item?
I was able to accomplish this in the category view by added the code commented with "<!-- START: Display Image Gallery in category list-->"
- nadav

28 Feb 2012 18:39 Can't setup views was created by nadav Can't setup views
Category: English K2 Community
Hi,
I'm new to K2 and didn't found any beginners guide.
I'm trying to change the different views under categories settings, the button settings and under K2 main preferences.
I'm unable to:
* remove "written by..." text from all views.
* remove date and time from all views.
* remove tags from all views but article view.
Please see my sample part of the site on www.bfreesport.com/sport-pedia.
I'll appreciate any assistant.
Thanks,
Nadav - Vladimir
27 Feb 2012 17:25
How to remove tags ("all" word) was created by Vladimir
How to remove tags ("all" word)
Category: English K2 Community
Hi,
I managed to remove all the tags using Categories -> Parameters.
Still on my page i can still see the word "all" where tags used to be. As I follow the code I can see that it belongs to
<div class="TagCloudBlock">
<div id="portfoliosorting">
<div class="sortbytype">
<a href="#" id="all" class="active_sort">All</a>
</div>
</div>
</div>
How do I remove that from Joomla/ K2 not from code ?
I managed to remove all the tags using Categories -> Parameters.
Still on my page i can still see the word "all" where tags used to be. As I follow the code I can see that it belongs to
<div class="TagCloudBlock">
<div id="portfoliosorting">
<div class="sortbytype">
<a href="#" id="all" class="active_sort">All</a>
</div>
</div>
</div>
How do I remove that from Joomla/ K2 not from code ?
- August Paschalidis
27 Feb 2012 07:28
K2 tags in greek was created by August Paschalidis
K2 tags in greek
Category: English K2 Community
Hello you.
I would like to ask if possible while the tags are in Greek, to appear in url a alternative title in English as in K2 items??
Thanks
I would like to ask if possible while the tags are in Greek, to appear in url a alternative title in English as in K2 items??
Thanks
- Ahtasham Rizvi
25 Feb 2012 15:52
Front end "Edit Item"-Page not loading completely was created by Ahtasham Rizvi
Front end "Edit Item"-Page not loading completely
Category: English K2 Community
Hi,
I am trying to "EDIT ITEM" from K2 Front End.. but the page sometimes opens completely and sometimes does not... when it does load completely it shows:
- images for SAVE and CANCEL button
- Can add tags
- Tabs for "Content", "Image", "Image Gallery", "Video" etc.
But when it does not get loaded completely, it shows a page similar to the one that is shown in the attached picture
I have tried clearing the cache, different browsers, signing-in and signing out several times, but all in vain...
I am using Rocket Theme (Solar Sentinel).
Please advise whats the issue?
Kind regards,
Ahtasham
I am trying to "EDIT ITEM" from K2 Front End.. but the page sometimes opens completely and sometimes does not... when it does load completely it shows:
- images for SAVE and CANCEL button
- Can add tags
- Tabs for "Content", "Image", "Image Gallery", "Video" etc.
But when it does not get loaded completely, it shows a page similar to the one that is shown in the attached picture
I have tried clearing the cache, different browsers, signing-in and signing out several times, but all in vain...
I am using Rocket Theme (Solar Sentinel).
Please advise whats the issue?
Kind regards,
Ahtasham
- Uldis
25 Feb 2012 15:34 - 25 Feb 2012 15:35
Replied by Uldis on topic Please help me figure out how to make this layout
Please help me figure out how to make this layout
Category: English K2 Community
I added first piece of code on line 21 and second on line 164.
<?php /** * @version $Id: category_item.php 1251 2011-10-19 17:50:13Z joomlaworks $ * @package K2 * @author JoomlaWorks http://www.joomlaworks.gr * @copyright Copyright (c) 2006 - 2011 JoomlaWorks Ltd. All rights reserved. * @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html */ // no direct access defined('_JEXEC') or die('Restricted access'); // Define default image size (do not change) K2HelperUtilities::setDefaultImage($this->item, 'itemlist', $this->params); ?> <!-- Start K2 Item Layout --> <div class="catItemView group<?php echo ucfirst($this->item->itemGroup); ?><?php echo ($this->item->featured) ? ' catItemIsFeatured' : ''; ?><?php if($this->item->params->get('pageclass_sfx')) echo ' '.$this->item->params->get('pageclass_sfx'); ?>"> <!-- Call to prepare extra field IDs --> <?php //convertArray to use ids as key $extrafieldsid = array(); foreach($this->item->extra_fields as $itemid) { $extrafieldsid[$itemid->id] = $itemid->value; } ?> <!-- Call to prepare extra field labels --> <?php //convertArray to use labels as key $extrafieldslabels = array(); foreach($this->item->extra_fields as $itemlabel) { $extrafieldslabels[$itemlabel->id] = $itemlabel->name; } ?> <!-- Plugins: BeforeDisplay --> <?php echo $this->item->event->BeforeDisplay; ?> <!-- K2 Plugins: K2BeforeDisplay --> <?php echo $this->item->event->K2BeforeDisplay; ?> <div class="catItemHeader"> <?php if($this->item->params->get('catItemDateCreated')): ?> <!-- Date created --> <span class="catItemDateCreated"> <?php echo JHTML::_('date', $this->item->created , JText::_('K2_DATE_FORMAT_LC2')); ?> </span> <?php endif; ?> <?php if($this->item->params->get('catItemTitle')): ?> <!-- Item title --> <h3 class="catItemTitle"> <?php if(isset($this->item->editLink)): ?> <!-- Item edit link --> <span class="catItemEditLink"> <a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->item->editLink; ?>"> <?php echo JText::_('K2_EDIT_ITEM'); ?> </a> </span> <?php endif; ?> <?php if ($this->item->params->get('catItemTitleLinked')): ?> <a href="<?php echo $this->item->link; ?>"> <?php echo $this->item->title; ?> </a> <?php else: ?> <?php echo $this->item->title; ?> <?php endif; ?> <?php if($this->item->params->get('catItemFeaturedNotice') && $this->item->featured): ?> <!-- Featured flag --> <span> <sup> <?php echo JText::_('K2_FEATURED'); ?> </sup> </span> <?php endif; ?> </h3> <?php endif; ?> <?php if($this->item->params->get('catItemAuthor')): ?> <!-- Item Author --> <span class="catItemAuthor"> <?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?> <a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a> </span> <?php endif; ?> </div> <!-- Plugins: AfterDisplayTitle --> <?php echo $this->item->event->AfterDisplayTitle; ?> <!-- K2 Plugins: K2AfterDisplayTitle --> <?php echo $this->item->event->K2AfterDisplayTitle; ?> <?php if($this->item->params->get('catItemRating')): ?> <!-- Item Rating --> <div class="catItemRatingBlock"> <span><?php echo JText::_('K2_RATE_THIS_ITEM'); ?></span> <div class="itemRatingForm"> <ul class="itemRatingList"> <li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->item->id; ?>" style="width:<?php echo $this->item->votingPercentage; ?>%;"></li> <li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_1_STAR_OUT_OF_5'); ?>" class="one-star">1</a></li> <li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_2_STARS_OUT_OF_5'); ?>" class="two-stars">2</a></li> <li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_3_STARS_OUT_OF_5'); ?>" class="three-stars">3</a></li> <li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_4_STARS_OUT_OF_5'); ?>" class="four-stars">4</a></li> <li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('K2_5_STARS_OUT_OF_5'); ?>" class="five-stars">5</a></li> </ul> <div id="itemRatingLog<?php echo $this->item->id; ?>" class="itemRatingLog"><?php echo $this->item->numOfvotes; ?></div> <div class="clr"></div> </div> <div class="clr"></div> </div> <?php endif; ?> <div class="catItemBody"> <!-- Plugins: BeforeDisplayContent --> <?php echo $this->item->event->BeforeDisplayContent; ?> <!-- K2 Plugins: K2BeforeDisplayContent --> <?php echo $this->item->event->K2BeforeDisplayContent; ?> <?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?> <!-- Item Image --> <div class="catItemImageBlock"> <span class="catItemImage"> <a href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>"> <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" /> </a> </span> <div class="clr"></div> </div> <?php endif; ?> <?php if($this->item->params->get('catItemIntroText')): ?> <!-- Item introtext --> <div class="catItemIntroText"> <?php echo $this->item->introtext; ?> </div> <?php endif; ?> <?php if($this->item->params->get('catItemExtraFields') && count($this->item->extra_fields)): ?> <!-- Item extra fields --> <div class="catItemExtraFields"> <h4><?php echo JText::_('K2_ADDITIONAL_INFO'); ?></h4> <ul> <?php foreach ($this->item->extra_fields as $key=>$extraField): ?> <?php if($extraField->value): ?> <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>"> <span class="catItemExtraFieldsLabel"><?php echo $extraField->name; ?></span> <span class="catItemExtraFieldsValue"><?php echo $extraField->value; ?></span> </li> <?php endif; ?> <?php endforeach; ?> </ul> <div class="clr"></div> </div> <?php endif; ?> <!-- Extra Fields --> <div class="extrafield"> <strong><?php echo $extrafieldslabels[1];?>: </strong><?php echo $extrafieldsid[1];?> </div> <div class="extrafield"> <strong><?php echo $extrafieldslabels[2];?>: </strong><?php echo $extrafieldsid[2];?> </div> <div class="clr"></div> <!-- End Extra Fields --> <!-- Plugins: AfterDisplayContent --> <?php echo $this->item->event->AfterDisplayContent; ?> <!-- K2 Plugins: K2AfterDisplayContent --> <?php echo $this->item->event->K2AfterDisplayContent; ?> <div class="clr"></div> </div> <?php if( $this->item->params->get('catItemHits') || $this->item->params->get('catItemCategory') || $this->item->params->get('catItemTags') || $this->item->params->get('catItemAttachments') ): ?> <div class="catItemLinks"> <?php if($this->item->params->get('catItemHits')): ?> <!-- Item Hits --> <div class="catItemHitsBlock"> <span class="catItemHits"> <?php echo JText::_('K2_READ'); ?> <b><?php echo $this->item->hits; ?></b> <?php echo JText::_('K2_TIMES'); ?> </span> </div> <?php endif; ?> <?php if($this->item->params->get('catItemCategory')): ?> <!-- Item category name --> <div class="catItemCategory"> <span><?php echo JText::_('K2_PUBLISHED_IN'); ?></span> <a href="<?php echo $this->item->category->link; ?>"><?php echo $this->item->category->name; ?></a> </div> <?php endif; ?> <?php if($this->item->params->get('catItemTags') && count($this->item->tags)): ?> <!-- Item tags --> <div class="catItemTagsBlock"> <span><?php echo JText::_('K2_TAGGED_UNDER'); ?></span> <ul class="catItemTags"> <?php foreach ($this->item->tags as $tag): ?> <li><a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a></li> <?php endforeach; ?> </ul> <div class="clr"></div> </div> <?php endif; ?> <?php if($this->item->params->get('catItemAttachments') && count($this->item->attachments)): ?> <!-- Item attachments --> <div class="catItemAttachmentsBlock"> <span><?php echo JText::_('K2_DOWNLOAD_ATTACHMENTS'); ?></span> <ul class="catItemAttachments"> <?php foreach ($this->item->attachments as $attachment): ?> <li> <a title="<?php echo K2HelperUtilities::cleanHtml($attachment->titleAttribute); ?>" href="<?php echo $attachment->link; ?>"> <?php echo $attachment->title ; ?> </a> <?php if($this->item->params->get('catItemAttachmentsCounter')): ?> <span>(<?php echo $attachment->hits; ?> <?php echo ($attachment->hits==1) ? JText::_('K2_DOWNLOAD') : JText::_('K2_DOWNLOADS'); ?>)</span> <?php endif; ?> </li> <?php endforeach; ?> </ul> </div> <?php endif; ?> <div class="clr"></div> </div> <?php endif; ?> <div class="clr"></div> <?php if($this->item->params->get('catItemVideo') && !empty($this->item->video)): ?> <!-- Item video --> <div class="catItemVideoBlock"> <h3><?php echo JText::_('K2_RELATED_VIDEO'); ?></h3> <?php if($this->item->videoType=='embedded'): ?> <div class="catItemVideoEmbedded"> <?php echo $this->item->video; ?> </div> <?php else: ?> <span class="catItemVideo"><?php echo $this->item->video; ?></span> <?php endif; ?> </div> <?php endif; ?> <?php if($this->item->params->get('catItemImageGallery') && !empty($this->item->gallery)): ?> <!-- Item image gallery --> <div class="catItemImageGallery"> <h4><?php echo JText::_('K2_IMAGE_GALLERY'); ?></h4> <?php echo $this->item->gallery; ?> </div> <?php endif; ?> <div class="clr"></div> <?php if($this->item->params->get('catItemCommentsAnchor') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?> <!-- Anchor link to comments below --> <div class="catItemCommentsLink"> <?php if(!empty($this->item->event->K2CommentsCounter)): ?> <!-- K2 Plugins: K2CommentsCounter --> <?php echo $this->item->event->K2CommentsCounter; ?> <?php else: ?> <?php if($this->item->numOfComments > 0): ?> <a href="<?php echo $this->item->link; ?>#itemCommentsAnchor"> <?php echo $this->item->numOfComments; ?> <?php echo ($this->item->numOfComments>1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?> </a> <?php else: ?> <a href="<?php echo $this->item->link; ?>#itemCommentsAnchor"> <?php echo JText::_('K2_BE_THE_FIRST_TO_COMMENT'); ?> </a> <?php endif; ?> <?php endif; ?> </div> <?php endif; ?> <?php if ($this->item->params->get('catItemReadMore')): ?> <!-- Item "read more..." link --> <div class="catItemReadMore"> <a class="k2ReadMore" href="<?php echo $this->item->link; ?>"> <?php echo JText::_('K2_READ_MORE'); ?> </a> </div> <?php endif; ?> <div class="clr"></div> <?php if($this->item->params->get('catItemDateModified')): ?> <!-- Item date modified --> <?php if($this->item->modified != $this->nullDate && $this->item->modified != $this->item->created ): ?> <span class="catItemDateModified"> <?php echo JText::_('K2_LAST_MODIFIED_ON'); ?> <?php echo JHTML::_('date', $this->item->modified, JText::_('K2_DATE_FORMAT_LC2')); ?> </span> <?php endif; ?> <?php endif; ?> <!-- Plugins: AfterDisplay --> <?php echo $this->item->event->AfterDisplay; ?> <!-- K2 Plugins: K2AfterDisplay --> <?php echo $this->item->event->K2AfterDisplay; ?> <div class="clr"></div> </div> <!-- End K2 Item Layout --> - Mayane
24 Feb 2012 21:48 - 25 Feb 2012 21:14
Module K2 Tools Tags selon le template catégorie was created by Mayane
Module K2 Tools Tags selon le template catégorie
Category: Communauté française K2
--- Message en français --
Bonsoir,
J'utilise pour mon site : Joomla 1.7 / K2 2.5.4
J'ai un site avec 2 parties différentes "news" et "blog", qui sont des catégories K2. Chaque partie a un template spécifique. La charte graphique des 2 templates sont complément différente.
nomdedomaine.com/news (template avec 3 colonnes - qui est défini comme template par défaut)
nomdedomaines.com/blog (template avec 2 colonnes)
Pour réaliser le template de chaque partie, il n'y a eu aucun souci.
Dans les catégories "news" et "blog", j'ai utilisé le module k2 tools pour afficher les tags avec filtrage sur la catégorie correspondante.
Mon souci est : Quand on clique sur un tag de la catégorie "Blog", la page s'affiche sous le template "news"
alors que cela devrait sous le template "blog".
C'est le même souci avec le module k2 tools avec l'affichage des archives ou la recherche.
J'ai oublié de dire que j'utilise sh404sef qui peut être à l'origine de certains soucis.
Quand je le désactive, le souci persiste.
Pouvez-vous m'aider s'il vous plaît ?
Merci d'avance.
---Message in english ---
Hello,
I use : Joomla 1.7 / K2 2.5.4
My website has 2 parts (created as K2 categories) : "news" and "blog". I have applied a template "news" for the category "news" and another template called "blog" for the category "blog". The webdesign of the templates are not similar.
nomdedomaine.com/news (template with 3 columns - as the default template)
nomdedomaines.com/blog (template with 2 columns)
In the categories "news" and "blog", I have used k2 tools to display tags with category filter.
My problem is : After clicking a tag in the category "blog", the page displays in the template "news" instead of the template "blog". I've got the same problem with the module "Archives" and "Search".
I used the component sh404sef which could intefere. I have desactivated it but the problem still be here.
Could you help me please ?
Thanks a lot.
Bonsoir,
J'utilise pour mon site : Joomla 1.7 / K2 2.5.4
J'ai un site avec 2 parties différentes "news" et "blog", qui sont des catégories K2. Chaque partie a un template spécifique. La charte graphique des 2 templates sont complément différente.
nomdedomaine.com/news (template avec 3 colonnes - qui est défini comme template par défaut)
nomdedomaines.com/blog (template avec 2 colonnes)
Pour réaliser le template de chaque partie, il n'y a eu aucun souci.
Dans les catégories "news" et "blog", j'ai utilisé le module k2 tools pour afficher les tags avec filtrage sur la catégorie correspondante.
Mon souci est : Quand on clique sur un tag de la catégorie "Blog", la page s'affiche sous le template "news"
alors que cela devrait sous le template "blog".
C'est le même souci avec le module k2 tools avec l'affichage des archives ou la recherche.
J'ai oublié de dire que j'utilise sh404sef qui peut être à l'origine de certains soucis.
Quand je le désactive, le souci persiste.
Pouvez-vous m'aider s'il vous plaît ?
Merci d'avance.
---Message in english ---
Hello,
I use : Joomla 1.7 / K2 2.5.4
My website has 2 parts (created as K2 categories) : "news" and "blog". I have applied a template "news" for the category "news" and another template called "blog" for the category "blog". The webdesign of the templates are not similar.
nomdedomaine.com/news (template with 3 columns - as the default template)
nomdedomaines.com/blog (template with 2 columns)
In the categories "news" and "blog", I have used k2 tools to display tags with category filter.
My problem is : After clicking a tag in the category "blog", the page displays in the template "news" instead of the template "blog". I've got the same problem with the module "Archives" and "Search".
I used the component sh404sef which could intefere. I have desactivated it but the problem still be here.
Could you help me please ?
Thanks a lot.
- Aaron
24 Feb 2012 16:24
Replied by Aaron on topic Make K2 Default
Make K2 Default
Category: English K2 Community
you need to do a couple things:
1. Create a new menu item for K2 depending on your need:
K2
Item
Item edit form
Categories
Tag
User page (blog)
Latest items from (one or more) users or categories
2. Make that menu item the default landing item for the website:
In the menu list, click the tick next to the new K@ menu item and click the HOME icon on top right.
then... what you do in K2 will be reflected with you main page. My page will not have ANY Joomla articles and this is how I am overcoming that.
Hope this helps!
1. Create a new menu item for K2 depending on your need:
K2
Item
Item edit form
Categories
Tag
User page (blog)
Latest items from (one or more) users or categories
2. Make that menu item the default landing item for the website:
In the menu list, click the tick next to the new K@ menu item and click the HOME icon on top right.
then... what you do in K2 will be reflected with you main page. My page will not have ANY Joomla articles and this is how I am overcoming that.
Hope this helps!
- effex100
23 Feb 2012 16:19
Controlling individual article page's modules was created by effex100
Controlling individual article page's modules
Category: English K2 Community
I'm setting up a site and I have the home page set up with a slideshow in the top module position.
I'm using a number of menu items that list articles based on their tag and the front page lists articles based on category.
In both cases when I click on a "read more" link to view the item by itself, K2 seems to use the default itemID. That means the front page slideshow shows up above the article. I don't want this! Is there a way to connect the individual K2 item view to a different menu itemID then the default/home page?
I'm using a number of menu items that list articles based on their tag and the front page lists articles based on category.
In both cases when I click on a "read more" link to view the item by itself, K2 seems to use the default itemID. That means the front page slideshow shows up above the article. I don't want this! Is there a way to connect the individual K2 item view to a different menu itemID then the default/home page?
- Greg
23 Feb 2012 01:23
Edit the <Head> in for K2 was created by Greg
Edit the <Head> in for K2
Category: English K2 Community
Hi there,
I'm using K2 as the content management system for Joomla and have an issue with the facebook like button. It comes up with an error because the Facebook FB_APPID isn't specified.
The problem is if view the source of the site in a web browser I can find exactly where its missing but can't find it in any of the files in K2. The tag where it's missing from is as follows which is in the <head> tag of the site
</script>
<meta property="og:email" content=""/>
<meta property="og:site_name" content=""/>
<meta property="og:description" content=" Urbanears headphones come in a wide range of colours ranging from bright bold colours to simple black and white.
The general design of the headphones is quite similar to your average pair of headphones only they look quite retro and quirky.
"/>
<meta property="og:title" content="Urbanears Plattan Review"/>
<meta property="og:type" content="website"/>
<meta property="og:image" content="/media/k2/items/cache/ffee2447b152494b43d9816faaea83c8_XL.jpg"/>
<meta property="og:url" content="www.motor-mouth.co.uk/index.php/reviews-k2/item/5-urbanears-plattan-review"/>
<meta property="fb:app_id" content="IT SHOULD GO HERE"/>
<script type="text/javascript">
If you want to take a took at the page for yourself then it's here www.motor-mouth.co.uk/index.php/ ... tan-review
Even if you have an idea of where to start looking would be great. I've looked in www/compenents/com_J2 so far but possibly not thoroughly enough. I could be in the complete wrong place though
Many many thanks in advance
Greg
I'm using K2 as the content management system for Joomla and have an issue with the facebook like button. It comes up with an error because the Facebook FB_APPID isn't specified.
The problem is if view the source of the site in a web browser I can find exactly where its missing but can't find it in any of the files in K2. The tag where it's missing from is as follows which is in the <head> tag of the site
</script>
<meta property="og:email" content=""/>
<meta property="og:site_name" content=""/>
<meta property="og:description" content=" Urbanears headphones come in a wide range of colours ranging from bright bold colours to simple black and white.
The general design of the headphones is quite similar to your average pair of headphones only they look quite retro and quirky.
"/>
<meta property="og:title" content="Urbanears Plattan Review"/>
<meta property="og:type" content="website"/>
<meta property="og:image" content="/media/k2/items/cache/ffee2447b152494b43d9816faaea83c8_XL.jpg"/>
<meta property="og:url" content="www.motor-mouth.co.uk/index.php/reviews-k2/item/5-urbanears-plattan-review"/>
<meta property="fb:app_id" content="IT SHOULD GO HERE"/>
<script type="text/javascript">
If you want to take a took at the page for yourself then it's here www.motor-mouth.co.uk/index.php/ ... tan-review
Even if you have an idea of where to start looking would be great. I've looked in www/compenents/com_J2 so far but possibly not thoroughly enough. I could be in the complete wrong place though
Many many thanks in advance
Greg
- k2liker
22 Feb 2012 15:52
Replied by k2liker on topic K2 RSS help
K2 RSS help
Category: English K2 Community
Thanks Nick for the reply,
i found view.html.php in components->com_k2->views->item i didn't find view.feed.html
and i found this code that brings the images Displaying 4521 - 4540 out of 6582 results.
i found view.html.php in components->com_k2->views->item i didn't find view.feed.html
and i found this code that brings the images
- ZANONI Jean-Claude

22 Feb 2012 12:38 Replied by ZANONI Jean-Claude on topic Champ personnalisé dans les articles des catégorie Champ personnalisé dans les articles des catégorie
Category: Communauté française K2
Bon je me répond à moi même :P
<?php $itemExtraFields = array(); foreach ($this->item->extra_fields as $extra_field): if($extra_field->name == "Sticker"): switch ($extra_field->value) { case "En Promo": $tag = "promo.png"; break; case "Fin de Série": $tag = "findeserie.png"; break; case "Limité": $tag = "limite.png"; break; case "Exclu": $tag = "exclu.png"; break; case "Soldé": $tag = "solde.png"; break; case "Nouveau": $tag = "nouveau.png"; break; default: $tag = ""; } $itemExtraFields[$extra_field->name] = $tag; else: $itemExtraFields[$extra_field->name] = $extra_field->value; endif; endforeach;
et du coup j'ffiche mes champs de cette manière:
<img src="<?php echo JURI::root(true); ?>/components/com_k2/images/system/<?php echo $itemExtraFields['Sticker']; ?>" />
- k2liker
22 Feb 2012 09:43
Replied by k2liker on topic K2 RSS help
K2 RSS help
Category: English K2 Community
WOW! before i post here in getk2.org/community they wrote "New to K2? Ask here first! " Whats the advantage if someone new post something and there is no support!
I don't think that this a complicated problem for k2 developers!
I don't think that this a complicated problem for k2 developers!
- Jack Sacre
22 Feb 2012 09:33
Replied by Jack Sacre on topic Can't Browse Server 'invalid backend response"
Can't Browse Server 'invalid backend response"
Category: English K2 Community
I am also having this issue with my site, its kind of a major bummer as it breaks alot of the functionality of K2, I am using K2 2.5.4 and Joomla 2.5.1
I have spoken to my host, but they cannot enable the items mentioned in previous posts, due to it being a shared service.
if someone from JW/K2 could give us an update on this issue and whether there is as fix or workaround available or in the pipeline, as otherwise I will end up having to go elsewhere (which I don't really want to do as K2 is otherwise great)
If joomla admin details are required I can provide.
Thank you in advance for your help.
Jack
Database Version 5.0.77-log
Database Collation utf8_general_ci
PHP Version 5.2.17
Web Server Apache
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 2.5.1 Stable [ Ember ] 2-Feb-2012 14:00 GMT
Joomla! Platform Version Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20100101 Firefox/10.0
Safe Mode Off
Open basedir /var/www/vhosts/jsacre.com/httpdocs:/tmp
Display Errors On
Short Open Tags On
File Uploads On
Magic Quotes Off
Register Globals Off
Output Buffering On
Session Save Path /tmp
Session Auto Start 0
XML Enabled Yes
Zlib Enabled Yes
Native ZIP Enabled Yes
Disabled Functions , dl , passthru , pcntl_exec , pfsockopen , posix_kill , posix_mkfifo , posix_setuid , proc_close , proc_open , proc_terminate , system , leak , posix_setpgid , posix_setsid , proc_get_status , proc_nice , show_source
Mbstring Enabled Yes
Iconv Available Yes
I have spoken to my host, but they cannot enable the items mentioned in previous posts, due to it being a shared service.
if someone from JW/K2 could give us an update on this issue and whether there is as fix or workaround available or in the pipeline, as otherwise I will end up having to go elsewhere (which I don't really want to do as K2 is otherwise great)
If joomla admin details are required I can provide.
Thank you in advance for your help.
Jack
Database Version 5.0.77-log
Database Collation utf8_general_ci
PHP Version 5.2.17
Web Server Apache
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 2.5.1 Stable [ Ember ] 2-Feb-2012 14:00 GMT
Joomla! Platform Version Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20100101 Firefox/10.0
Safe Mode Off
Open basedir /var/www/vhosts/jsacre.com/httpdocs:/tmp
Display Errors On
Short Open Tags On
File Uploads On
Magic Quotes Off
Register Globals Off
Output Buffering On
Session Save Path /tmp
Session Auto Start 0
XML Enabled Yes
Zlib Enabled Yes
Native ZIP Enabled Yes
Disabled Functions , dl , passthru , pcntl_exec , pfsockopen , posix_kill , posix_mkfifo , posix_setuid , proc_close , proc_open , proc_terminate , system , leak , posix_setpgid , posix_setsid , proc_get_status , proc_nice , show_source
Mbstring Enabled Yes
Iconv Available Yes
- william white
21 Feb 2012 23:37
Replied by william white on topic Similar Items by tags
Similar Items by tags
Category: English K2 Community
@renea Did you change the core or did you try to override the core by adding
YoursiteRoot/templates/YourTemplate/html/com_k2/models and place the file in there in some manner. I havent done this before but would be interested to know if it would work or not.
YoursiteRoot/templates/YourTemplate/html/com_k2/models and place the file in there in some manner. I havent done this before but would be interested to know if it would work or not.
- Greg
21 Feb 2012 23:01
Facebook like error was created by Greg
Facebook like error
Category: English K2 Community
Hi,
I've got a real problem with the facebook like button integrated into K2. It comes up with the error
"The page failed to provide a valid list of administrators. It needs to specify the administrators using either a "fb:app_id" meta tag, or using a "fb:admins" meta tag to specify a comma-delimited list of Facebook users."
I understand why this is because I've not specified the app ID but I can't find this anywhere in the parameters for K2. I've seen elsewhere on the forum that K2 doesn't have a 'like' button and is another module but I DON'T have any other modules installed to do this.
What I'd like help with is how to put the app ID into the K2 code to stop this error.
Many Thanks
Greg
I've got a real problem with the facebook like button integrated into K2. It comes up with the error
"The page failed to provide a valid list of administrators. It needs to specify the administrators using either a "fb:app_id" meta tag, or using a "fb:admins" meta tag to specify a comma-delimited list of Facebook users."
I understand why this is because I've not specified the app ID but I can't find this anywhere in the parameters for K2. I've seen elsewhere on the forum that K2 doesn't have a 'like' button and is another module but I DON'T have any other modules installed to do this.
What I'd like help with is how to put the app ID into the K2 code to stop this error.
Many Thanks
Greg
- Renea
21 Feb 2012 21:15
Replied by Renea on topic Similar Items by tags
Similar Items by tags
Category: English K2 Community
And I should note that this code hack was shared with K2 was on version 2.1 or 2.2.
I have 2.5 and its working just fine for me. I increased the number of tags from 1 to 3 in the HAVING COUNT line, which worked better for me.
Original post:
community.getk2.org/forum/topics/improve-the-ordering-of-your
I have 2.5 and its working just fine for me. I increased the number of tags from 1 to 3 in the HAVING COUNT line, which worked better for me.
Original post:
community.getk2.org/forum/topics/improve-the-ordering-of-your
- Renea
21 Feb 2012 21:10
Replied by Renea on topic Similar Items by tags
Similar Items by tags
Category: English K2 Community
From the old forums:
Improve the ordering of your Related Items
- there will be listed items with AT LEAST 2 tags in common
- the list will be ordered by the number of tags in common
You should look in components/com_k2/models/itemlist.php for function:
in this function, look for code:and replace it with this code:
If you don't need to hide the items with only 1 tag in common just remove the "HAVING COUNT" row.
IF you think you need/like to show the number of tags in common in the template, like this example:
- the adventure og my angry dog [4 tags in common]
- the lying dog [3 tags in common]
etc.etc
You have to edit your template file [item.php] at row 439 [this file is placed in the component template dir or in you template dir if you use a custom template]:
Improve the ordering of your Related Items
- there will be listed items with AT LEAST 2 tags in common
- the list will be ordered by the number of tags in common
You should look in components/com_k2/models/itemlist.php for function:
function getRelatedItems($itemID, $tags, $limit) {in this function, look for code:
$query = "SELECT DISTINCT itemID FROM #__k2_tags_xref WHERE tagID IN ({$sql}) AND itemID!={$itemID}";$query = "SELECT i.*, c.alias as categoryalias, count(tags_xref.itemID) as quanti FROM #__k2_items as i". " LEFT JOIN #__k2_categories c ON c.id = i.catid"." LEFT JOIN #__k2_tags_xref tags_xref ON tags_xref.itemID = i.id"." WHERE i.id != {$itemID}". " AND i.published = 1"." AND ( i.publish_up = ".$db->Quote($nullDate)." OR i.publish_up <= ".$db->Quote($now)." )". " AND ( i.publish_down = ".$db->Quote($nullDate)." OR i.publish_down >= ".$db->Quote($now)." )". " AND i.access <= {$aid}"." AND i.trash = 0"." AND c.published = 1"." AND c.access <= {$aid}"." AND c.trash = 0"." AND (tags_xref.tagID) IN ({$sql})". " GROUP BY i.id". " HAVING COUNT(tags_xref.itemID)>1". " ORDER BY quanti DESC";If you don't need to hide the items with only 1 tag in common just remove the "HAVING COUNT" row.
IF you think you need/like to show the number of tags in common in the template, like this example:
- the adventure og my angry dog [4 tags in common]
- the lying dog [3 tags in common]
etc.etc
You have to edit your template file [item.php] at row 439 [this file is placed in the component template dir or in you template dir if you use a custom template]:
< a href="< ?php echo $item-> link ?> "> < ?php echo $item-> title; ?> < /a> < !--(< ?php echo $item-> quanti; ?> tags in common)- ZANONI Jean-Claude
21 Feb 2012 15:32
Replied by ZANONI Jean-Claude on topic Champ personnalisé dans les articles des catégorie
Champ personnalisé dans les articles des catégorie
Category: Communauté française K2
Bonjour,
J'essai d'appliquer ce code pourla mise en place de mes champs supplémentaire, mais n'étant pas un crack en class PHP j'aurai besoin de votre aide,
en fait j'ai un champ sup qui me permet de choisir le status d'un article (En promo, Fin de série ...)
en fonction de ce status j'affiche une image ou une autre (stickers)
voici mon code:
et plus loin je met :
Mais ça ne fonctionne pas, dans mon code source généré j'ai bien '<img src="components/com_k2/images/system/" /></img> mais le nom de l'image n'y est pas :(
je pense que mon souci est au niveau de mon 'switch' merci de votre aide.
Cdlt
JC
J'essai d'appliquer ce code pourla mise en place de mes champs supplémentaire, mais n'étant pas un crack en class PHP j'aurai besoin de votre aide,
en fait j'ai un champ sup qui me permet de choisir le status d'un article (En promo, Fin de série ...)
en fonction de ce status j'affiche une image ou une autre (stickers)
voici mon code:
$itemExtraFields = array(); foreach ($this->item->extra_fields as $extra_field) { if($extra_field->name == "Sticker"): switch ($extra_field) { case "En Promo": $tag = "promo.png"; break; case "Fin de Série": $tag = "findeserie.png"; break; case "Limité": $tag = "limite.png"; break; case "Exclu": $tag = "exclu.png"; break; case "Soldé": $tag = "solde.png"; break; case "Nouveau": $tag = "nouveau.png"; break; default: $tag = ""; } $itemExtraFields[$extra_field->name] = $tag; else: $itemExtraFields[$extra_field->name] = $extra_field; endif; } et plus loin je met :
<img src="<?php echo JURI::root(true); ?>/components/com_k2/images/system/<?php echo $itemExtraFields['Sticker']->value; ?>" /></img>Mais ça ne fonctionne pas, dans mon code source généré j'ai bien '<img src="components/com_k2/images/system/" /></img> mais le nom de l'image n'y est pas :(
je pense que mon souci est au niveau de mon 'switch' merci de votre aide.
Cdlt
JC