Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • John Wicks
  • John Wicks's Avatar
21 Jan 2010 02:03
Replied by John Wicks on topic Tag sorting

Tag sorting

Category: English K2 Community

Also...

John Wicks said:Suggest changing the com_k2/models/item.php file around line 690 for v2.2.Add an Order By clause to the SQL in the getItemTags function...$query="SELECT * FROM #__k2_tags as tags WHERE tags.published=1 AND tags.id IN (SELECT tagID FROM #__k2_tags_xref WHERE itemID={$itemID}) order by `name`";


In the models/index.php change the following code...
function getAvailableTags($itemID = NULL) {

$db = &JFactory::getDBO();
$query = "SELECT * FROM #__k2_tags as tags";
if (!is_null($itemID))
$query .= " WHERE tags.id NOT IN (SELECT tagID FROM #__k2_tags_xref WHERE itemID={$itemID})";
$query .= " ORDER BY `name`";
$db->setQuery($query);
$rows = $db->loadObjectList();
return $rows;
}

function getCurrentTags($itemID) {

$db = &JFactory::getDBO();
$query = "SELECT * FROM #__k2_tags as tags WHERE tags.id IN (SELECT tagID FROM #__k2_tags_xref WHERE itemID={$itemID}) ORDER BY `name`";
$db->setQuery($query);
$rows = $db->loadObjectList();
return $rows;
}

Jw
  • Kailey Lampert
  • Kailey Lampert's Avatar
21 Jan 2010 00:46
Replied by Kailey Lampert on topic sh404SEF plugin for K2 2.0

sh404SEF plugin for K2 2.0

Category: English K2 Community

Hey, sorry I never responded - I'm not always on top of these things....
For you, or anyone else who's interested: projects.trepmal.com/joomla/tags.php.txt

scott said:Hi Kailey, could you give me an example line of how to do the str_replace, ive tried str_replace on the array and also in the echo but neither seem to have any affect
  • John Wicks
  • John Wicks's Avatar
20 Jan 2010 01:40

K2 v2.2x Item Display Tags list is ordered by ID not alphabetically

Category: English K2 Community

Hello All,

 

In K2 Item display the tags list is displayed by id rather than Alphabetically. Not sure if this is a "bug" but the SQL code in models/item.php getItemTags, line 694, should be:

 

$query="SELECT `id`, `name` FROM #__k2_tags as tags WHERE tags.published=1 AND tags.id IN (SELECT `tagID` FROM #__k2_tags_xref WHERE `itemID`={$itemID}) order by `name`";

 

Also in the administration area change the following functions in models/item.php...

 

    function getAvailableTags($itemID = NULL) {

        $db = &JFactory::getDBO();        $query = "SELECT * FROM #__k2_tags as tags";        if (!is_null($itemID))            $query .= " WHERE tags.id NOT IN (SELECT tagID FROM #__k2_tags_xref WHERE itemID={$itemID})";  $query .= " ORDER BY `name`";        $db->setQuery($query);        $rows = $db->loadObjectList();        return $rows;    }

    function getCurrentTags($itemID) {

        $db = &JFactory::getDBO();        $query = "SELECT * FROM #__k2_tags as tags WHERE tags.id IN (SELECT tagID FROM #__k2_tags_xref WHERE itemID={$itemID}) ORDER BY `name`";        $db->setQuery($query);        $rows = $db->loadObjectList();        return $rows;    }

 

Jw
  • John Wicks
  • John Wicks's Avatar
20 Jan 2010 00:53
Replied by John Wicks on topic Tag sorting

Tag sorting

Category: English K2 Community

Suggest changing the com_k2/models/item.php file around line 690 for v2.2.

Add an Order By clause to the SQL in the getItemTags function...

$query="SELECT * FROM #__k2_tags as tags WHERE tags.published=1 AND tags.id IN (SELECT tagID FROM #__k2_tags_xref WHERE itemID={$itemID}) order by `name`";
  • jfreeze
  • jfreeze's Avatar
19 Jan 2010 22:07
Bug with pagination? was created by jfreeze

Bug with pagination?

Category: English K2 Community

I noticed today when working with k2.2.2 that the pagination was not working as expected.

Specifically I expected that if Pagination was set to "auto" for a category that means that thediv would only display if pagination was needed. However that was not the case. It was showing even when pagination was not needed (it was empty between the div tags).

A look at the code shows that it is doing a IF statement checking for the the results of count($this->pagination->getPagesLinks()).

Apparently the "count" was 1 or higher because even when there was no pagination needed it was returning true on this IF statement and generating the DIV.

To fix this, and get it working the way I expected, I simply removed the count() function from the IF statement, leaving me this:

if($this->pagination->getPagesLinks()) :

This only returned TRUE if there was pagination needed and returned FALSE when none was needed, producing the results I expected.

So either this is a bug, or my expectations were wrong.

Hope this helps someone and gets fixed if its a bug.

James
  • Lefteris
  • Lefteris's Avatar
19 Jan 2010 12:53
Replied by Lefteris on topic K2 v2.2.x Add Tag in new Item not Saving

K2 v2.2.x Add Tag in new Item not Saving

Category: English K2 Community

Hi. You are completely right. Fixed for the next release. Thanks for reporting this issue to us.
  • bkemler
  • bkemler's Avatar
18 Jan 2010 18:09

V 2.2 SH404SEF still has bug for linking to tags with spaces

Category: English K2 Community

This problem was originally discussed about v. 2.0 at community.getk2.org/forum/topics/tags-sef-problem-for-word

In v. 2.2, on an item page, links to tags that have spaces in them are still not working properly for me so I had to go back and do the original fix. In components\com_k2\sef_ext\com_k2.php, on line 129, replace

case 'tag':
$title[] = 'tag';
$title[] = str_replace('%20','-',$tag);
break

with

case 'tag':
$tag=str_replace('%20','-',$tag);
$tag=str_replace('+','-',$tag);
$title[] = 'tag';
$title[] = $tag;
break;
  • Chris Gilloch
  • Chris Gilloch's Avatar
18 Jan 2010 17:40
Gallery and video doesn't show was created by Chris Gilloch

Gallery and video doesn't show

Category: English K2 Community

Hi guys, A few questions.

I have setup everything correctly (i think) but the image gallery and video doesn't work - I have the plugins installed and working but the I just end up with the tags: {gallery}1802{/gallery}

So some reason my joomla hates these tags and gives me a lot of grief in the past with such things - I have a test link below to show you what I mean:

www.sanctuary4gamers.com/index.php?option=com_k2&view=item&id=1802:thisisatest

Also one other thing, if you choose the blog option it really messes up the style of my review(in Jreviews) is there anyway to mot force a style on a certain category?

Thanks,
Chris
  • Violeta Matei
  • Violeta Matei's Avatar
18 Jan 2010 16:06
Replied by Violeta Matei on topic K2 v2.2.x Add Tag in new Item not Saving

K2 v2.2.x Add Tag in new Item not Saving

Category: English K2 Community

I'm also seeing it. I managed to add the newly created tags by re-opening the item and adding the tags again.
  • Anar Guliev
  • Anar Guliev's Avatar
18 Jan 2010 08:52

Enable frontend editing (disabled always if Joom!Fish is installed and enabled)

Category: English K2 Community

no, Dirk, it is impossible - only tags/categories can be translated then
but in my site i needed user's to post and edit their blogs more, than possibility of translating blog-publications

Dirk said:But are you still able to translate it in the backend then??
Anar Guliev said:guys, frontend editing/saving worked in my k2 2.1 on joomla with joomfish just after removing k2-items contentelement from joomfish
(i also edited slightly permissions.php in K2 - there seems to be a bug with permissions setting/checking)
  • bkemler
  • bkemler's Avatar
18 Jan 2010 06:15

Display Tag List in Edit Form Alphabetically

Category: English K2 Community

It's been driving me nuts that the tags in the list of available tags on the form to edit an item aren't in alphabetical order. I assumed this would be fixed for v. 2.2 but it wasn't. So I would really like to see this changed for the next release.

But if anyone else wants to fix this, here's how I finally fixed it (this is in V. 2.2)

Go to /administrator/components/com_k2/models/item.php

After line 757 (in function getAvailableTags) add

$query .=" order by name ASC";
  • Flavia Silveira
  • Flavia Silveira's Avatar
17 Jan 2010 19:04
HTML stripped from introtext was created by Flavia Silveira

HTML stripped from introtext

Category: English K2 Community

I have the K2 Content Cleanup Settings set to NO for both intro text and fulltext but thetags are still being stripped from introtext only. I checked the parameters for the category and subcategory as well. All are set to NO. Full text on article page view is fine.

Interestingly enough the issue showed up after upgrading from RC to the new stable version.

Any tips on how to fix this?

I also checked JCE and the settings are disabled for html cleanup as well. I even disabled JCE completely just to make sure it was not the culprit. I checked the core parameters and set the access permissions properly.

I am not sure what else to look for to fix this problem. Any tip, help, advice, pointer is very appreciated,



Thanks,

Flavia
  • olsen
  • olsen's Avatar
17 Jan 2010 03:26
Missing language strings on v2.2 was created by olsen

Missing language strings on v2.2

Category: English K2 Community

Hi,
I found some missing/wrong strings on the language file while i did spanish translation.

Here you have:

***** Missing admin en-GB.com_k2.ini *****

WRITE A TAG AND PRESS "RETURN" OR "COMMA" TO ADD IT.
NOTICE: PLEASE INSTALL JOOMLAWORKS SIMPLE IMAGE GALLERY (FREE/PRO) PLUGIN IF YOU WANT TO USE THE IMAGE GALLERY FEATURES OF K2!
NOTICE: PLEASE INSTALL JOOMLAWORKS ALLVIDEOS PLUGIN IF YOU WANT TO USE THE VIDEO FEATURES OF K2!

***** Wrong admin en-GB.com_k2.ini *****
CHECK THIS BOX TO DELETE CURRENT VIDEO OR USE THE FORM ABOVE TO REPLACE THE EXISTING ONE
CORRECT:USE THE FORM ABOVE TO REPLACE THE EXISTING VIDEO OR CHECK THIS BOX TO DELETE CURRENT VIDEO

***** Missing site en-GB.com_k2.ini *****

WRITE A TAG AND PRESS "RETURN" OR "COMMA" TO ADD IT.
NOTICE: PLEASE INSTALL THE SIMPLE IMAGE GALLERY (FREE/PRO) PLUGIN IF YOU WANT TO USE THE IMAGE GALLERY FEATURES OF K2!
NOTICE: PLEASE INSTALL THE ALLVIDEOS PLUGIN IF YOU WANT TO USE THE VIDEO FEATURES OF K2!
NO ONE HAS COMMENTED ON YOUR PUBLISHED ITEMS SO FAR.


Rgds
  • Gobezu Sewu
  • Gobezu Sewu's Avatar
16 Jan 2010 08:05
Replied by Gobezu Sewu on topic K2 v2.2.x Add Tag in new Item not Saving

K2 v2.2.x Add Tag in new Item not Saving

Category: English K2 Community

i too confirm the bug
but the error is not there for the "Free tagging (with auto complete)" way of tagging which i personally prefer
  • John Wicks
  • John Wicks's Avatar
16 Jan 2010 04:51
K2 v2.2.x Add Tag in new Item not Saving was created by John Wicks

K2 v2.2.x Add Tag in new Item not Saving

Category: English K2 Community

Hello All,

When adding a new Item in K2 v2.2 if you use the new Add a Tag feature and then select that tag and associate it with the new item and save, the tags are not kept.

Steps to recreate...
1. Open the K2 Item tab
2. Select new to create a new item
3. Add a tag using the new button to the available tags
4. Select the tag you just created from the available tags list and add it from the selected tags list for the item
5. Save
6. Reopen the Item

Note the tag is missing in the selected tags list

Anyone else seeing this???

Jw
  • John Wicks
  • John Wicks's Avatar
16 Jan 2010 01:40
Replied by John Wicks on topic How to remove Feed link in the head-tag?

How to remove Feed link in the head-tag?

Category: English K2 Community

Umm can't you just go into the K2 Category the item is displaying in and click the "Category view options" and set the RSS feed link to Hide.

Just double check the "Inherit parameter options from category" property. If it's set in the category your changing then you'll have to set that property in the Parent.

Jw
  • Vasil Enchev
  • Vasil Enchev's Avatar
15 Jan 2010 14:05
Replied by Vasil Enchev on topic How to remove Feed link in the head-tag?

How to remove Feed link in the head-tag?

Category: English K2 Community

hmm go to your components/k2/template/default/generic.php delete lines 26 to 31
  • mihha
  • mihha's Avatar
15 Jan 2010 10:22
Leading space in tags was created by mihha

Leading space in tags

Category: English K2 Community

Hi,

when you (by accident) add a leading space to a tag, on the K2 Tools module showing tags, clicking on the tag itself doesn't get you to the article in which this tag is defined. It just takes you to the page that lists articles by the selected tag but this page is empty
  • Manny Santos
  • Manny Santos's Avatar
14 Jan 2010 17:07
Replied by Manny Santos on topic Content Module Filter by Tag Addition

Content Module Filter by Tag Addition

Category: English K2 Community

This module is awesome. Thank you very, very much. I have been anxiously waiting for k2 2.2 hoping that this would be included but I don't have to wait anymore, thanks to your module.

This feature is greatly needed so thank you again
Displaying 6261 - 6280 out of 6582 results.

Powered by Kunena Forum