Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Novalee
  • Novalee's Avatar
01 May 2012 09:54
Item by tag - adjust result page was created by Novalee

Item by tag - adjust result page

Category: English K2 Community

Hi,
I want to adjust the result page which you see as you have the "item by tag" K2 site.
At my site there are 10 articles on each page and they are not sorted alphabetically.
I want to display a lot more (or have the pagination above) and sort them by alphabet or category.
In which file do I have to adjust these settings, and how can I do this?
Thanks in advance,
Stefanie
  • Neil Boddie
  • Neil Boddie's Avatar
01 May 2012 00:05
Replied by Neil Boddie on topic Zip install

Zip install

Category: Simple Image Gallery PRO

yes plug in enabled, I am using a sub-template for this site. It works if I use the {gallery} inside the item but not when I use the zip install this is what I get

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/43
  • jamie
  • jamie's Avatar
30 Apr 2012 03:36
Replied by jamie on topic Need help! K2 dissapears when logged out.

Need help! K2 dissapears when logged out.

Category: English K2 Community

Done it, i had the catagory access level set to special. thanks for your help an the quick response :)
  • matthew turner
  • matthew turner's Avatar
28 Apr 2012 17:17 - 28 Apr 2012 17:20
Replied by matthew turner on topic extra fields in related items by tag

extra fields in related items by tag

Category: English K2 Community

Hi,
I recently needed to do this for a clients website.
They needed the related items to be from another single category only, and needed a way to display the related items in a specific order.... (and not in the category list order, date order, alphabetical or item id or the reverse order of any of these!)
I only went as far as retrieving this specific extrafield from the array but the following might help you out, as it is all done in a template over ride - (so updates to K2 do not wipe out your changes) :


<?php if($this->item->params->get('itemRelated') && isset($this->relatedItems)): ?>

<?php //var_dump($this->relatedItems);
// Sort the data with volume descending, edition ascending["ordering"]
// Add $data as the last parameter, to sort by the common key
//$mynewOrder = array_multisort($item->id, SORT_ASC, $this->relatedItems);
//$mynewOrder = asort($this->relatedItems->item->id);
//$mynewOrder = array_multisort($item->id, SORT_ASC, $this->relatedItems);
//array_multisort($this->relatedItems,SORT_DESC );

?>
<?php
foreach ($this->relatedItems as $val)
{
$sortArrayRank[] = $val->ordering;
$MYvalobj[] = $val->extra_fields;
}

array_multisort(array_values($MYvalobj), $this->relatedItems);
?>

<!-- Related items by tag -->
<div class="itemRelated">
<h2>Testimonials</h2>
<ul>
<?php foreach($this->relatedItems as $key=>$item): ?>
<?php // if item not from category 4 check routine start ?>
<?php if($item->catid == 4): ?>
<li class="<?php echo ($key%2) ? "odd" : "even"; ?>">


<?php
$MYobj = $item->extra_fields;
$obj = json_decode($MYobj);

echo "<h1> ";
echo $obj[0]->value;
echo "</h1><br />";

?>
</li>
<li> ....</li>
etc....
<?php endif;// if item not from category 4 check end ?>
</ul>

Hope this helps point you in the right direction - I will be doing further work with this method and will post other changes.....
Regards
Mat
  • Aaron
  • Aaron's Avatar
28 Apr 2012 17:02

Please help me figure out how to make this layout

Category: English K2 Community

Sorry I had not seen your post before today (I wish this site would use a forum application that notifies users...).. I have been struggling with the same error since upgrading my staging site to J!2.5.4 and K2v2.5.6. Did you find an answer to the error?
  • Aaron
  • Aaron's Avatar
28 Apr 2012 01:43 - 29 Apr 2012 00:29

[solved] Extra Field array broken in new version?

Category: English K2 Community

I am trying to troubleshoot but I have run into a brick wall...

Below is the code that DOES work in the previous version of K2 but 2.5.6 doesn't like it :(
"Warning: Invalid argument supplied for foreach() in /xxxxxxxxxxx/html/components/com_k2/templates/xxxxxx/category_item.php on line 21

Warning: Invalid argument supplied for foreach() in /xxxxxxxxxxx/html/components/com_k2/templates/xxxxxx/category_item.php on line 30"


Line 21 is:
foreach($this->item->extra_fields as $itemid)
Line 30 is:
foreach($this->item->extra_fields as $itemlabel)


Any help would be appreciated? Did the db names change?
  • Matthew Gray
  • Matthew Gray's Avatar
27 Apr 2012 11:43
Replied by Matthew Gray on topic Open Graph protocol tags in templates articles K2

Open Graph protocol tags in templates articles K2

Category: English K2 Community

Thanks for that!!

Just a quick one...how can it be changed so that I can choose the 'S' or 'M' sized image instead of the document image?

Cheers,
Matt
  • promobit
  • promobit's Avatar
27 Apr 2012 11:28 - 27 Apr 2012 11:28
Replied by promobit on topic Dual Sorting

Dual Sorting

Category: English K2 Community

William White wrote: Just a stab at this one.
The offending (in your case) query is

SELECT i.*, c.name as categoryname,c.id as categoryid, c.alias as categoryalias, c.params as categoryparams FROM dtgku_k2_items as i LEFT JOIN dtgku_k2_categories AS c ON c.id = i.catid WHERE i.published = 1 AND i.access IN(1,1) AND i.trash = 0 AND c.published = 1 AND c.access IN(1,1) AND c.trash = 0 AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2012-01-27 05:17:28' ) AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2012-01-27 05:17:28' ) AND c.id IN (1) ORDER BY i.featured DESC, i.created[b] DESC[/b] LIMIT 0, 14
The desc tag in the second order needs to be changed
just a starting point



In which file?
  • Manoj Goel
  • Manoj Goel's Avatar
27 Apr 2012 09:13

How to add New module position inside K2 template?

Category: English K2 Community

Hi,
Do you know how to insert a new module position inside K2 component template so that we can place any module between the item Title and item body?

Actually by using ModuleAnywhere does not solve my problem It allow to Insert the tag in article body but I can't insert the Tag in each article body as articles are submitted by public, so ModuleAnyehere is useless here. And also I want to place different module at different categories, so I need a module position between Title and Body of articles.

It is actually creating a new Module Position between the item Title and item body.

Any help will be highly appreciated.
BTW I am using Joomla 1.5 with K2.

Thanks
BK Manoj Goel
  • Anthony Cunningham
  • Anthony Cunningham's Avatar
26 Apr 2012 17:05
Replied by Anthony Cunningham on topic Adding info to generic.php and enancing search

Adding info to generic.php and enancing search

Category: English K2 Community

I have the same exact issue and have searched and searched but cannot find any solution. Looking at the task-related parameters in the back-end there is no option for Author et al so there is no a way to achieve this off-the-shelf without some mod to the code.

Here's what I found while scratching the surface of the same issue:
When displaying items in a category I show the Title, Date Modified, Author, Categories, Social buttons and Tags. Perfect - looks exactly as it should for my design. However when I try to get the same output when displaying items by tag - Author is not an option and neither is Tags. I've tried to customize the tag.php file by referencing category_item.php but its clear that when displaying by Tag, K2 isn't calling that particular data - so none is output.

I think its a matter of having a better understanding of how K2 is structured (which I dont have) then modify the data call when displaying by tag. Then we can output Author etc. in the customized tag.php and generic.php. Can anyone point to a reference or whitepaper on this and/or point us at the remedy?
  • Mark
  • Mark 's Avatar
25 Apr 2012 20:45

Adding info to generic.php and enancing search

Category: English K2 Community

I have searched and searched for these answers and while it seems like they may have been answered in the old forums I can't find them here. I have two questions.

1. I want my search page results page and my display items by tag page to display more information than it currently has. I want the author's name and the list of tags to be on each of those pages. I have tried editing the .php files many times but cannot figure out exactly what needs to be there. Currently I can make it say "Written By" but no author name comes up. Any ideas?

2. I'm hoping there is some way to enhance the K2 search engine to order posts on relevance based on tags or item titles instead of just date (which is what it seems to be doing now, am I wrong?). Anybody have any suggestions.

Here is a link to the site if you need it

[url=http://]www.lc2.ca/[/url]
  • Alessandro Nilo
  • Alessandro Nilo's Avatar
25 Apr 2012 17:59
Replied by Alessandro Nilo on topic [Solved] Cannot get Flickr set to display

[Solved] Cannot get Flickr set to display

Category: Simple Image Gallery PRO

I have the same issue, as many others I found on the net. I have the Flicker API, I set up the Flicker SET inside the IMAGE GALLERY sheet of JCE editor that display correctly in the preview all the pictures. But when saving the post in K2 I've got:

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:

No folder is signalled. Anyway in the plugin (activated) the folder is "images" without slashes (default), and exist regulary.

I put in the K2's article the link that should be correct:

{gallery}www.flickr.com/photos/setipiacipiaci/sets/72157629897067087/{/gallery}

What else can i Do ?

How to look for that tags ?
  • Stefan Orth
  • Stefan Orth's Avatar
25 Apr 2012 15:17
Zeitversatz im Kalender (K2 Tools) was created by Stefan Orth

Zeitversatz im Kalender (K2 Tools)

Category: Offizielle deutsche Gemeinschaft

Hallo,

Beim Kalender im K2 Tools Modul stimmt die Veröffentlichungszeit nicht mit der aus K2 komponente und Joomla überein. Dort gibt es einen Zeitversatz von -2 Stunden. Wenn ich einen Artikel um 1 Uhr morgens erstelle wird im Kalender der falsche Tag angezeigt. ( ein Tag vorher). Ein Bug?
  • Martijn Verschoor
  • Martijn Verschoor's Avatar
25 Apr 2012 15:11
K2 Catagory thumbnail blanc was created by Martijn Verschoor

K2 Catagory thumbnail blanc

Category: English K2 Community

Hello,

My images are not showing in the catagory view. Is this a a known issue?
Hope someone can help me out.

See example:

www.campingdeeenhoorn.nl/index.php/occasions/item/47-stacaravan-op-camping-de-eenhoorn
  • Anna Maria Stranieri
  • Anna Maria Stranieri's Avatar
25 Apr 2012 13:44
Replied by Anna Maria Stranieri on topic K2 SEO issue - Can it be fixed?

K2 SEO issue - Can it be fixed?

Category: English K2 Community

Hi everbody,
we managed to solve our problems so:
1) migrate all content to K2
2) Unpublish and archive all old Joomla content
3) Change menus so that they refer to K2
4) set in all k2-items SEF-urls in the alias
5) then we installed sh404SEF (commercial extension). This took all the category and id reference out of the URLs
6) always in sh404SEF I manually entered the old Joomla-URLs as alias of the new ones (I had issues a sitemap of the old content beforehand)
7) install K2 extension to Xmap (non commercial) and generate a new sitemap and set it in the Google Webmaster Tools
I left the tag menus out of the sitemap in order to avoid double index.

So we now have SEF-urls and nice K2 content display. If the system is creating some double pages, then sh404SEF takes care of them. K2 does not create as many double pages as Joomla does. At the beginning I did not unpublish and archive the old Joomla articles and got only a mess out of it. As soon as only K2 and sh404SEF worked together, I got it all fixed up. You can have a look at the outcome at www.familothek.de .
There was no way around buying the licence for sh404SEF or another K2-compatible SEF-Extension (they are all commercial), though.
Good luck :)
  • DINALVA ROMANCINI
  • DINALVA ROMANCINI's Avatar
25 Apr 2012 01:08 - 25 Apr 2012 01:10
Contenido y meta duplicados K2 (Problema SEO SEF) was created by DINALVA ROMANCINI

Contenido y meta duplicados K2 (Problema SEO SEF)

Category: Comunidad hispana oficial de K2

Hola comunidad hispana K2!

Realmente K2 es una herramienta muy buena a la hora de facilitar la creación de artículos con datos extras, y con diseños bonitos y atrayentes, siempre de forma rápida y flexible.

Pero quiero compartir mi situación con ustedes, aver si podrían al menos aclararme un poco la situación, porque la verdad es que en el foro en inglés no han respondido ninguna de mis preguntas hasta ahora (después de varios meses y de amable insistencia).

Tengo un sitio web de turismo en 4 idiomas: www.infoiguassu.com

Hago uso intensivo de todas las herramientas que K2 ofrece: menus, tags, categorías, plugins, TODO.

La funcionalidad del sitio es correcta, rápida y de muy buena apariencia.

Pero algo esta realmente molestándome hace meses... la duplicación de Metadescripciones y Etiquetas de títulos. Esto básicamente destruye todo concepto de SEO. No se si me explico, por ejemplo: Tengo un artículo que habla de un Wine Store en inglés. La ruta correcta sería: www.infoiguassu.com/en/where-to-shop/wine-store/item/51-oda-wine-store

Pero K2 crea estas otras en cualquier otra categoria (nada que ver):
/en/attractions/item/51-oda-wine-store
/en/where-to-eat/cafe/item/51-oda-wine-store
/en/where-to-eat/steak-house/item/51-oda-wine-store
/en/where-to-shop/wine-store/item/51-oda-wine-store

Como ven, con solo agregar "item/" y el id del item, se puede crear una página nueva con las mismas características que la anterior indexable por google, y DUPLICADA. A los buscadores no les gusta nada esto.

Otras formas en que aparecen los duplicados son así:
/pt/onde-comer/internacional/itemlist/category/35-servicos
/pt/onde-comer/internacional/itemlist/tag/Alojamento Cidade do Leste
/pt/onde-comer/internacional/itemlist/tag/Alojamento Foz do Iguaçu
/pt/onde-comer/internacional/itemlist/tag/Alojamento Porto Iguaçu
/pt/onde-comer/internacional/itemlist/tag/Compras Porto Iguaçu
/pt/onde-comer/internacional/itemlist/tag/Foz do Iguaçu Brasil
/pt/onde-comer/internacional/itemlist/tag/Gastronomia Porto Iguaçu
/pt/onde-comer/internacional/itemlist/tag/Porto Iguaçu Argentina
/pt/onde-comer/internacional/itemlist/tag/Serviços Cidade do Leste
/pt/onde-comer/internacional/itemlist/user/43-giutaekim
/pt/onde-comer/internacional/itemlist/user/45-jaihankim?limitstart=0
/pt/onde-comer/internacional/itemlist/user/45-jaihankim?start=30

Como ven: por itemlist/category, itemlist/tag, itemlist/user, que corresponden a un listado de categorias, etiquetas y usuarios, también se crean páginas indexadas por google...

Además de eso, las páginas 404 brillan por su ausencia (si, eso... las extraño). Pues al agregar cualquier cosa en la URL de cualquier artículo de tipo item, me sigue cargando la página como si K2 aceptara toda URL. Miren esto:
getk2.org/blog/item/724-k2-v256-released
getk2.org/blog/item/724-k2-v256-releasedILOVEDONUTS
getk2.org/blog/item/724-k2-v256-releasedHAILTOTHEKING
getk2.org/blog/item/724-k2-v256-releasedBERCELONATHEBEST
getk2.org/blog/item/724-k2-v256-releasedMESSI10

Los items duplicados se convirtieron realmente en una endemoniada plaga: aparecen por todo el sitio. Y peor estoy perdiendo posiciones, así como visitas...

Si alguien más tiene este problema (que creo que si, pues hasta la página oficial tiene este problema), por favor me ayuden a aclarar mi problema.

Saludos!
  • DINALVA ROMANCINI
  • DINALVA ROMANCINI's Avatar
25 Apr 2012 01:02
Replied by DINALVA ROMANCINI on topic K2 SEO issue - Can it be fixed?

K2 SEO issue - Can it be fixed?

Category: English K2 Community

Hi William, thanks to answer

Sad to heard that, but anyway I don't want for a FIX, I only wanna to know If this is a real problem of K2?

K2 is creating URLS like...

..../itemlist/tag/....
..../itemlist/user/....
..../itemlist/category/....
..../item/id/....

...and google is indexing this pages like duplicated meta

Regards!
  • Red Deer
  • Red Deer's Avatar
25 Apr 2012 00:30

Blank User Groups, Extra Fields, Extra Groups

Category: English K2 Community

Hi,

What would prevent the K2 User Groups, Extra Fields, and Extra Field Groups pages from loading properly?

Details:

  • Using demo content from JoomlaBamboo Rasa template (new installation)
  • Using LDAP to authenticate (maybe a red herring)

I get a blank screen when I access User Groups, Extra Fields, or Extra Field Groups from the Joomla 2.5 back end. No error message, even with Joomla debugging display enabled. All Super User parameter permissions are enabled.

The following K2 selections are accessible:

  • Items
  • Categories (works fine -- I added some categories)
  • Tags
  • Comments
  • Users (users from Joomla groups show up fine; no K2 users are listed if either registered or Site Owner is selected from the -- Select joomla! Group-- pull-down menu)
  • Media Manager
  • Information (all installed and writable)


The following K2 selections cause a blank page (not even an error) to be displayed:
  • User Groups
  • Extra Fields
  • Extra Field Groups


Thanks!
  • Farid
  • Farid's Avatar
24 Apr 2012 16:47

There was a problem rendering your image gallery.

Category: English K2 Community

I'm having the same issue. I have done all the things that other people said but it's not working.
Every time I upload a gallery or when I open an item in admin I get this error:

The was a problem converting the source image.
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/26


I have a zip file containing 7 jpeg files with total size of 969KB, my PHP upload-size limit is 2MB.
There are no spaces or any unusual characters in images names or zip file-name.

The funny part is that I can see my images in "media/k2/galleries/26" but in front-end or back-end I have {gallery}26{/gallery} .

My server configuration:
Ubuntu Server 11.10
PHP 5.3.8
Media folder has 777 access
I'm using Joomla 2.5.4 with K2 2.5.6 and SIG Pro 2.5.3

Please Help me!
  • Ed Deyzel
  • Ed Deyzel's Avatar
24 Apr 2012 11:00 - 24 Apr 2012 11:01
Validating image and attachments fields. was created by Ed Deyzel

Validating image and attachments fields.

Category: English K2 Community

Hi,

I'm trying to validate the Image and Attachment fields to make sure the user has selected the respected items before saving from the frontend.

I'm using the