Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Peter Young
  • Peter Young's Avatar
18 Aug 2016 03:08
Replied by Peter Young on topic Tags and extra fields stopped working after upgrade

Tags and extra fields stopped working after upgrade

Category: English K2 Community

Hello,
Have installed latest version of K2, (k2-2.7.1), but still get same strict standards message and tags/extrafields JS problem

I have checked browser console for JS errors which returned following...

JQMIGRATE: Migrate is installed, version 1.4.1
k2storejqui.js:16 Uncaught TypeError: this.element.uniqueId is not a function(…)
jquery.min.js:2 Uncaught Error: Syntax error, unrecognized expression: [href=#metadata](…)
jquery.min.js:2 Uncaught Error: Syntax error, unrecognized expression: [href=#itemViewOptions](…)
k2storejqui.js:16 Uncaught TypeError: Cannot read property 'element' of undefined(…)
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
17 Aug 2016 19:30
Replied by Krikor Boghossian on topic Tags and extra fields stopped working after upgrade

Tags and extra fields stopped working after upgrade

Category: English K2 Community

Hello, please update to 2.7.1 ( or 2.7.2 - github.com/getk2/k2 )

Also check the console tab of your browser's developers for any potential JS errors and report them here.

Finally in production websites you should disable error reporting in your site's global configuration.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
17 Aug 2016 18:22
Replied by Krikor Boghossian on topic K2 Category view not showing iframe with YouTube embed

K2 Category view not showing iframe with YouTube embed

Category: AllVideos

If you are using a word limit, then all HTML tags are being stripped.
You can try using AllVideos and setting the item's media to be shown in the category's settings.
  • Peter Young
  • Peter Young's Avatar
17 Aug 2016 04:25

Tags and extra fields stopped working after upgrade

Category: English K2 Community

Hello, i have fresh install of k2 version 2.7.0
And updated Joomla to version 3.6.2
My problem is that I cannot add tags or extra fields to articles as the javascript which gives options does not work.
In the extra fields selection the form field doesn't display at all.

I have the message at the top of the article:
Strict Standards: Only variables should be assigned by reference in /home/xxxxxxxxx/public_html/plugins/k2/extrafieldtab/elements/extrafields.php on line 31.

and this message at the top of 'Item view options in category listings'
Strict Standards: Declaration of K2Element::render() should be compatible with JFormField::render($layoutId, $data = Array) in /home/xxxxxxxxx/public_html/administrator/components/com_k2/elements/base.php on line 25

Could you please assist as there are many, many articles created in the K2 component all using tags and extra fields. This issue inhibits site functionality completely.
  • Vladislav
  • Vladislav's Avatar
10 Aug 2016 15:25
Replied by Vladislav on topic Can't work search

Can't work search

Category: English K2 Community

Fixed search in other sections:

Categories

Replace 31 and 153-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\models\categories.php"

Replace 36-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\views\categories\view.html.php"

insert code
$db = JFactory::getDBO();
after 24-line
$view = JRequest::getCmd('view');

result
$view = JRequest::getCmd('view'); $db = JFactory::getDBO();

Tags

Replace 34 and 79-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\models\tags.php"

Replace 32-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\views\tags\view.html.php"

insert code
$db = JFactory::getDBO();
after 23-line
$view = JRequest::getCmd('view');

result
$view = JRequest::getCmd('view'); $db = JFactory::getDBO();

Comments

Replace 34 and 78-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\models\comments.php"

Replace 34-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\views\comments\view.html.php"

insert code
$db = JFactory::getDBO();
after 24-line
$view = JRequest::getCmd('view');

result
$view = JRequest::getCmd('view'); $db = JFactory::getDBO();

Users

Replace 36 and 142-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\models\users.php"

Replace 36-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\views\users\view.html.php"

Extra Fields

Replace 34 and 92-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\models\extrafields.php"

Replace 33-line at
$search = $db->escape(trim($search), true);
in file "site\administrator\components\com_k2\views\extrafields\view.html.php"

insert code
$db = JFactory::getDBO();
after 24-line
$view = JRequest::getCmd('view');

result
$view = JRequest::getCmd('view'); $db = JFactory::getDBO();
  • razen
  • razen's Avatar
10 Aug 2016 05:08
Replied by razen on topic Search in Tags, Category and Title only

Search in Tags, Category and Title only

Category: English K2 Community

Hello,

sorry for the grave-diggin.
I wasn't around for a long while and I really wonder why I cant contact anybody via pm or cant create new threads in the english K2-community (german community works, but... welll not much around there). Do I have to pay to be able to create new threads now!?

Thanks a lot and bye
  • Donovan Edye
  • Donovan Edye's Avatar
09 Aug 2016 10:46 - 09 Aug 2016 10:49
Web Services API? was created by Donovan Edye

Web Services API?

Category: English K2 Community

Hi,

Is there a REST API available to interact with a K2 install under Joomla? I realise there is a start here but was hoping this had advanced a little.

I need to manage (CRUD - Create Read Update Delete) K2 categories, items and tags. I have a C# application that needs to make these changes. Although I could do this directly into mySQL I am looking for an alternate (better) solution.
  • Giannis
  • Giannis's Avatar
09 Aug 2016 09:42
K2 Search was created by Giannis

K2 Search

Category: English K2 Community

Hello!

I would like to have a search engine in my website that i could have my extra fields plus 3 fields (1. search in title, 2. search in text, 3.search with tags-keywords).

I have already the ja k2 filter component but unfortunately i cannot succeed in my purpose.

Do you have any idea or thought about that?

Thanks in advance!!!
  • carlostegs
  • carlostegs's Avatar
04 Aug 2016 17:59 - 07 Aug 2016 19:29
Error K2 v2.71 - Frontend after update was created by carlostegs

Error K2 v2.71 - Frontend after update

Category: English K2 Community

Request a help as after upgrading to version v2.71 k2 with Joomla 3.62 now has an error. Correct permissions for Joomla! sites are 755 for folders and 644 for files.

- 1: ERROR with the user interface to post a Frontend article to save gives the following error message:
"The image was not loaded. Please make sure that you used a valid image file and upload the file is configured according to your server"

Only in Frontend appears this error, apostagem was text only, not selected any image, even so, still looks the above error message.
Selecting the item that was saved when entering the back-end, the text is usually there, but this error appears in the frontend to the user that posting article.

Can someone help me
I look
thank you so much
Success
  • Marc de Jong
  • Marc de Jong's Avatar
03 Aug 2016 10:52
Replied by Marc de Jong on topic Deprecated

Deprecated

Category: English K2 Community

Update on this issue. I have contacted the provider and they assure me all error reporting is set the right way. Strange thing that al error reporting is off on server level and in joomla But still the k2 message is showing.

www.de-plantage.nl/portfolio/huisstijl-en-website-heinz-autoservice
  • Chad Criswell
  • Chad Criswell's Avatar
29 Jul 2016 19:45 - 29 Jul 2016 20:22

[SOLVED] Where to turn off adding # to tags in K2 articles?

Category: English K2 Community

I was banging my head into the wall on this trying to figure out why it wasn't working after I copied the css file, moved the copy to /templates/rt_dominion/css/k2.css and removed that line from the file.

Finally I realized that the tag that had been referenced in the above replies is not the one that has to be changed in my particular case. There is also one like this that has to be changed:

div.catItemTagsBlock ul.catItemTags li a:before {content:"#";}

If you want to remove all of the # tags from your K2 tags you need to remove both lines.
  • Joe Campbell
  • Joe Campbell's Avatar
29 Jul 2016 11:21 - 29 Jul 2016 11:24
Replied by Joe Campbell on topic Exclude Certain Tags from Tag Cloud

Exclude Certain Tags from Tag Cloud

Category: English K2 Community

With some help from Ramesh of K2Store/J2Store, I was able to figure it out:
<?php foreach ($tags as $tag): ?> <?php if(strpos($tag->tag, ':') !== false OR strpos($tag->tag, '_') !== false ): ?><?php else: ?> <?php if(!empty($tag->tag)): ?> <li><a href="<?php echo $tag->link; ?>"> <?php echo $tag->tag; ?><span class="tagcount"> (<?php echo $tag->count; ?>)</span> </a></li> <?php endif; ?> <?php endif; ?> <?php endforeach; ?>

Thanks @Ramesh
  • Beni
  • Beni's Avatar
29 Jul 2016 11:06

Alternate relation / hreflang not working for categories

Category: English K2 Community

Hi,
...i'm trying to optimize hreflang tags for a customers site. And maybe i found a bug.

When using a k2 category as menu type, an alternate relation code is added to the site, but just for the main language not in other languages.
(But it seems to work with k2 single articles as menu type....)

Working.:
<base href="www.mydomain.com/">
<link href="www.mydomain.com/fr/" rel="alternate" hreflang="fr-FR">

Not-Working:
<base href="www.mydomain.com/fr/">
MIssing: <link href="www.mydomain.com/" rel="alternate" hreflang="en-EN">


Can anyone confirm this or am i wrong? Does anyone know a quikfix?!
  • Joe Campbell
  • Joe Campbell's Avatar
29 Jul 2016 05:04 - 29 Jul 2016 05:07
Exclude Certain Tags from Tag Cloud was created by Joe Campbell

Exclude Certain Tags from Tag Cloud

Category: English K2 Community

I modified the K2 Tag Cloud and would like to exclude all tags that start with an underscore "_" or a colon ":"

Here's the code for my modified tag cloud:

<?php foreach ($tags as $tag): ?>
<?php if(!empty($tag->tag)): ?>
<li><a href="<?php echo $tag->link; ?>">
<?php echo $tag->tag; ?><span class="tagcount"> (<?php echo $tag->count; ?>)</span>
</a></li>
<?php endif; ?>
<?php endforeach; ?>
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
28 Jul 2016 18:14
Replied by Krikor Boghossian on topic Metadescription and special characters

Metadescription and special characters

Category: English K2 Community

The default way of Joomla! of handling meta tags would be to strip all illegal characters.

I would not recommned hacking the extension since it can lead to unexpected results.

Instead I would suggest reading this post
www.joomlaworks.net/forum/k2-en/40022-my-meta-name-and-meta-description-are-totally-broken

This one
www.joomlaworks.net/forum/k2-en/40912-meta-description-original-will-not-appear-in-the-google

And the ;TLDR
www.joomlaworks.net/forum/k2-en/40022-my-meta-name-and-meta-description-are-totally-broken#140600
  • Yuriy Boev
  • Yuriy Boev's Avatar
28 Jul 2016 15:51
The plugin could not locate the folder was created by Yuriy Boev

The plugin could not locate the folder

Category: Simple Image Gallery PRO

Hello,

I have found similar topics but none seems to fix my issue.

In K2 edit item or on frontend I get this error:

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/


In SIG Pro component I am able to see and browse the gallery, but not on the frontend.

Thank you for any suggestions.
  • praveen
  • praveen's Avatar
28 Jul 2016 07:39
Replied by praveen on topic issue with k2 after update

issue with k2 after update

Category: English K2 Community

i am updated K2 in my site after update ,tag cloud is not working ,it tag are displayed just List , cloud effect is not occur
please help to fix
  • Joe Campbell
  • Joe Campbell's Avatar
27 Jul 2016 17:00

K2 Power Tip: Use PHP Includes to Render Override Files

Category: English K2 Community

WOW - I never realized this...

You can also decide which elements your sub-templates have in common, whether this is the category (category.php), tag (tag.php), user (user.php) or item page (item.php) with the default and include only the different file(s) in your sub-template.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
27 Jul 2016 16:16
Replied by Krikor Boghossian on topic issue with k2 after update

issue with k2 after update

Category: English K2 Community

JUser: :_load: Unable to load user with ID: 42

Is not a K2 issue, it means that the user with the ID 42 has been deleted.
You need to assign the user to a different author.

As for the tag cloud, make sure that K2's css file is being loaded. You need to check the extension's settings.
  • praveen
  • praveen's Avatar
27 Jul 2016 14:12
Replied by praveen on topic issue with k2 after update

issue with k2 after update

Category: English K2 Community

i got 2 issues

issue 1 : Popular tags (Tag cloud) is not working it just displayed like list of text
issue 2: got below error on webpage
JUser: :_load: Unable to load user with ID: 42
Displaying 1141 - 1160 out of 6582 results.

Powered by Kunena Forum