Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Jaime Villegas
  • Jaime Villegas's Avatar
08 Jul 2018 18:49
SQL Sentence to select items by Tag was created by Jaime Villegas

SQL Sentence to select items by Tag

Category: English K2 Community

Hello Guys,
I need to create reports of the hits for each article of our sponsors. I am using the component Alter Reports to create the report using SQL sentences.

So we associate every sponsor with a K2 tag, for example articles published of BOSCH are tagged with the K2 tag BOSCH.
The K2 tags are not included in the k2_items table, so it is more difficult to select those articles.

May you help me with the SQL sentence to select items using tags?

Thanks!
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
06 Jul 2018 21:46
Replied by Krikor Boghossian on topic Hide some tags in K2 Tools module

Hide some tags in K2 Tools module

Category: English K2 Community

First of all, congrats on your progress.
This is OR :) You the && operators php.net/manual/en/language.operators.logical.php
PS. You can also use in_array php.net/manual/en/function.in-array.php
  • STEPHAN HERBY
  • STEPHAN HERBY's Avatar
05 Jul 2018 21:16 - 05 Jul 2018 21:17
Replied by STEPHAN HERBY on topic Hide some tags in K2 Tools module

Hide some tags in K2 Tools module

Category: English K2 Community

Hi Krikor,
I agree, but does not the syntax
!empty($tag->tag) || ($tag->id !== 539)
exactly correspond to your suggestion?
Sorry for that newbies question, i learn php on forum :-)
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
05 Jul 2018 20:31
Replied by Krikor Boghossian on topic Hide some tags in K2 Tools module

Hide some tags in K2 Tools module

Category: English K2 Community

I think you missed a spot, I missed it too.
The id should not be 5xx AND the tag should not be empty :)
  • STEPHAN HERBY
  • STEPHAN HERBY's Avatar
05 Jul 2018 01:45
Replied by STEPHAN HERBY on topic Hide some tags in K2 Tools module

Hide some tags in K2 Tools module

Category: English K2 Community

Hi Krikor,
Thanks for your suggestion.
Actually you were right by testing $tag->id.
When i changed :
<?php echo $tag->tag; ?>
with
<?php echo $tag->id; ?>
Nothing is printed. The page work but i get nothing is printed...
Actually I'm using that in a K2 item because i want this tag to be hidden on items, and it works there.
But here on the module iut does not.
Any suggestion to make it work in the module ?
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
04 Jul 2018 20:28
Replied by Krikor Boghossian on topic Hide some tags in K2 Tools module

Hide some tags in K2 Tools module

Category: English K2 Community

Hello,

Just pointing out the obvious as a first solution,
Try clearing both Joomla!'s and the module's cache (set it to 0)
Also try printing directly the $tag->id just to make sure.
  • STEPHAN HERBY
  • STEPHAN HERBY's Avatar
03 Jul 2018 18:03
Hide some tags in K2 Tools module was created by STEPHAN HERBY

Hide some tags in K2 Tools module

Category: English K2 Community

Hi, I'm trying to hide some tags I don't want to be shown in the K2 Tools module. I took the tags.php file and made an override. Then i took the original code :
<div id="k2ModuleBox<?php echo $module->id; ?>" class="k2TagCloudBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>"> <?php foreach ($tags as $tag): ?> <?php if(!empty($tag->tag)): ?> <a href="<?php echo $tag->link; ?>" style="font-size:<?php echo $tag->size; ?>%" title="<?php echo $tag->count.' '.JText::_('K2_ITEMS_TAGGED_WITH').' '.K2HelperUtilities::cleanHtml($tag->tag); ?>"> <?php echo $tag->tag; ?> </a> <?php endif; ?> <?php endforeach; ?> <div class="clr"></div> </div>
And change it to :
<div id="k2ModuleBox<?php echo $module->id; ?>" class="k2TagCloudBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>"> <?php foreach ($tags as $tag): ?> <?php if(!empty($tag->tag) || ($tag->id !== 539) || ($tag->id !== 540) || ($tag->id !== 541) || ($tag->id !== 542)) { ?> <a href="<?php echo $tag->link; ?>" style="text-transform: uppercase;" title="<?php echo $tag->count.' '.JText::_('K2_ITEMS_TAGGED_WITH').' '.K2HelperUtilities::cleanHtml($tag->tag); ?>"> <?php echo $tag->tag; ?>&nbsp;(<?php echo $tag->count ?>) - </a> <?php } else {} ?> <?php endforeach; ?> <div class="clr"></div> </div>
But tags are still shown in the module. Does anybody have an advice to help me hiding this 4 tags from the cloud tag ?
Thanks in advance...
  • Manuel
  • Manuel's Avatar
27 Jun 2018 12:27
New position K2 Slideshow was created by Manuel

New position K2 Slideshow

Category: English K2 Community

I'm new to Joomla and have no clue how/where to do this.
I made a slideshow with K2, but with all the position possibilities that are already on the website I can get it on the right place.
The slideshow should be under the main title of the page. I added a new position named 'position-slideshow' in the settings page of my slideshow. But where and what do I have to do to make sure this position = under the main title (which is a h1 tag).
  • jasim
  • jasim's Avatar
21 Jun 2018 21:01
Email, Print button not appearing was created by jasim

Email, Print button not appearing

Category: English K2 Community

HI All!
Since last many hour i am trying but not finding any solution so here for your help. Actually my K2 Component has alot of problem like no button for rating disappeared font button i fixed it but now the problem is that i am not able fix the print and email social share etc button.

You can view here!

www.vjcyber.com/k2-test/item/6-next-generation-home-building

If any one would help will be highly thankful. The option in the catagery option is enable and also checked menu and parameter all look fine but no buttons.

please support
  • Marco Cevoli
  • Marco Cevoli's Avatar
06 Jun 2018 23:42
Replied by Marco Cevoli on topic How to edit tag.php page title

How to edit tag.php page title

Category: English K2 Community

Thanks a lot. Yes, I'm using the overrides. I'm not changing core K2 files, but the copies inside my template folder.

Regarding str_replace, if I set the function with the site name, but later change the unwanted part (that is, the site name), then I need to change this code again, don't I?
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
06 Jun 2018 23:37
Replied by Krikor Boghossian on topic How to edit tag.php page title

How to edit tag.php page title

Category: English K2 Community

Hello Marco,
You can use str_replace to remove the unwanted part -> php.net/manual/en/function.str-replace.php
PS. Do not forget to use overrides -> getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
03 Jun 2018 23:10
Replied by Krikor Boghossian on topic Error when trying to click and open K2 tag links

Error when trying to click and open K2 tag links

Category: English K2 Community

Hello,

These are issues related to the template you are using.
You need to address this issue to the template's developer.
  • Thomas
  • Thomas's Avatar
01 Jun 2018 04:24

Error when trying to click and open K2 tag links

Category: English K2 Community

Hi, I am getting this error when trying to click and open K2 tag links.

PHP 7.0
K2 2.8.0
Joomla 3.8.8


Call to undefined method ElementParser::userGetName()

Then if I look in my php error log.

[01-Jun-2018 10:05:29] WARNING: [pool www] child 18359 said into stderr: "NOTICE: PHP message: PHP Notice: Undefined variable: postType in /var/www/name/templates/envor/html/com_k2/templates/default/tag_item.php on line 35"

[01-Jun-2018 10:05:29] WARNING: [pool www] child 18359 said into stderr: "NOTICE: PHP message: PHP Notice: Undefined variable: postType in /var/www/name/templates/envor/html/com_k2/templates/default/tag_item.php on line 50"

Line 35:
<?php if($postType === '6'):?>

Line 50:
<?php elseif($postType === '7') :?>


Thank you for your time.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
16 May 2018 21:40
Replied by Krikor Boghossian on topic limit of words intro in menu TAG

limit of words intro in menu TAG

Category: English K2 Community

Hello,

You can override the tag.php file and manually set a limit -> getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

Change
<?php echo $item->introtext; ?>
to:
<?php echo K2HelperUtilities::wordLimit($item->introtext, 15); ?>
with 15 being the new limit
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
16 May 2018 20:22
Replied by Krikor Boghossian on topic K2 Teacher Profile Section Display Issue

K2 Teacher Profile Section Display Issue

Category: English K2 Community

Hello,

The issue is related to unclosed HTML tags.
You can use the HTML validator to locate the issue.
Also if you are using a commercial extension, then you need to address this issue to the template's developer.
  • Daniel Gomez
  • Daniel Gomez's Avatar
14 May 2018 21:53
limit of words intro in menu TAG was created by Daniel Gomez

limit of words intro in menu TAG

Category: English K2 Community

Community,

My problem is that when I create a K2 TAG menu, the results in this menu show the complete text of the item, it does not cut the limit of introduction words.

I have searched the general and category options of K2, without getting the text "cut" when you reach the limit of words intro of the category.

Is there any way to make this possible? or should the code be interfered with and if so, what would it be?
  • Fábio Jordan
  • Fábio Jordan's Avatar
07 May 2018 17:23
Replied by Fábio Jordan on topic K2 image not openning on popup

K2 image not openning on popup

Category: English K2 Community

Hi. Thanks for your reply, Krikor.

I disabled the sharing extension, the related items plugin and the module with related items by tag. None of them changed this behavior. Is there any way that a cache plugin cause this?

Thanks again.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
30 Apr 2018 16:36
Replied by Krikor Boghossian on topic Meta Tag Title k2 2.8.0

Meta Tag Title k2 2.8.0

Category: English K2 Community

Hello,

You can use extrafields and have them as og or meta tags.
This will require some overriding, getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
Some examples can be found here: github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L176-L191
  • fabio
  • fabio's Avatar
27 Apr 2018 01:08
Replied by fabio on topic Meta Tag Title k2 2.8.0

Meta Tag Title k2 2.8.0

Category: English K2 Community

Sorry any news? :)
Best regards
Displaying 661 - 680 out of 6582 results.

Powered by Kunena Forum