Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
16 May 2016 13:10
Replied by Krikor Boghossian on topic Version 2.7.0 Admin View Tags Display Problem

Version 2.7.0 Admin View Tags Display Problem

Category: English K2 Community

Hello Mike and thank you for sharing this,

Actually this has already been corrected:
github.com/getk2/k2/commit/3fccc7ae2574ef622583e513d1b6e013dd75f0c2
  • Al[bert] L[ouis] Rossi
  • Al[bert] L[ouis] Rossi's Avatar
16 May 2016 01:21
Replied by Al[bert] L[ouis] Rossi on topic URL rewriting

URL rewriting

Category: English K2 Community

Hi Krikor,

Creating the menus for the categories worked like a dream.

I also discovered you can get rid of the "item" sub-path and item id using the Advanced SEF Settings.

However, I am still seeing component/k2 for two things: clicking on a tag from the tag cloud K2 Tools module, and clicking on a user from the home page. If I click the tags or users attached to the item page, or to some other SP page, all is well.

Any suggestions as to how to fix this?

Thanks again, Al
  • Mike Herring Productions Inc
  • Mike Herring Productions Inc's Avatar
15 May 2016 19:31
Replied by Mike Herring Productions Inc on topic Version 2.7.0 Admin View Tags Display Problem

Version 2.7.0 Admin View Tags Display Problem

Category: English K2 Community

If anybody needs a quick fix, I made this change to the file /media/k2/assets/css/k2.css
about line 464 change to

ul.tags li {border-radius:3px;background:#d1e8fc;color:#0f4776;line-height:14px;list-style:none;float:left;clear:none;padding:0;margin:2px 2px 2px 0;font-size:14px;font-weight:bold;font-family:"Lucida Grande";vertical-align:middle;}

basically changed the padding to 0 so all the tags are quite small but readable and for me I never had more than three lines of tags.. Could have done more (border radius etc.) but works for me.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
13 May 2016 13:56
Replied by Krikor Boghossian on topic Problems with URL author / tag

Problems with URL author / tag

Category: English K2 Community

Create a new empty K2 Categories menu item (leave the category selection) empty and call it eg: content,

All the orphan tags will be rendered through that menu item.

Alternatively you can use K2's advanced SEF settings or an SEO extension which supports K2.
  • dark
  • dark's Avatar
13 May 2016 00:26
Problems with URL author / tag was created by dark

Problems with URL author / tag

Category: English K2 Community

Dear all, hello!

The problem is that not true of the author and a link is formed tag
Links are as follows
for author ---> http://domain/category/subcategory/itemlist/user/nameuser for tag ----> http://domain/category/subcategory/itemlist/tag/nametag
Сategory and subcategory - does not change, the same for all

How to correct this problem?
K2 v2.6.9 | Joomla! 2.5.28

Thank you very much in advance!
  • Will Bierre
  • Will Bierre's Avatar
12 May 2016 15:07
Replied by Will Bierre on topic Last major visual changes

Last major visual changes

Category: English K2 Community

Where can I edit these tags please?

div#k2Container.itemView.itemIsFeatured
div.itemToolbar
div.itemAuthorBlock
div.itemComments

And I checked with the documentation on the template, it doesn't have any native support for K2.
  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
11 May 2016 15:46 - 11 May 2016 15:47
Replied by JoomlaWorks Support Team on topic SOLVED --- Comparing tags with item title (dash-problem)

SOLVED --- Comparing tags with item title (dash-problem)

Category: English K2 Community

You can use the mysql REPLACE function to replace the dashes

dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_replace

Below I provide an example with your database query
SELECT c.`id`, c.`name`, ca.`id`, ca.`title`, ca.`introtext`, ca.`extra_fields`, ca.`alias` FROM #__k2_items AS ca, #__k2_tags AS c WHERE (c.`id` = 5) AND (c.`name` = REPLACE(ca.`title`, '-', ' '))
  • karlo
  • karlo's Avatar
11 May 2016 10:18 - 11 May 2016 10:20

How to publish two specific tags to another position

Category: English K2 Community

How to publish two specific tags to another position in the article
 <?php if($this->item->params->get('itemTags') && count($this->item->tags)): ?> <!-- Item tags --> <div class="itemTagsBlock"> <span><?php echo JText::_('K2_TAGGED_UNDER'); ?></span> <ul class="itemTags"> <?php foreach ($this->item->tags as $tag): ?> <li><a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a></li> <?php endforeach; ?> </ul>
  • Bam Bam
  • Bam Bam's Avatar
09 May 2016 23:25 - 11 May 2016 16:30

SOLVED --- Comparing tags with item title (dash-problem)

Category: English K2 Community

Hey everybody,

I have another little problem and hope you can help me to solve this.
I'd like to compare the tags setted in an article with the item title of another article. E.g. article1 has tag firm1, this article should show up under the article with the title "firm1". In my override it works - except there is a dash in the item title. K2 strips out the dash in the tags. Right now I'm using a mySQL-query and I don't know how I can strip the dash in the item title out. My code looks as follows:
$db->setQuery("SELECT c.`id`, c.`name`, ca.`id`, ca.`title`, ca.`introtext`, ca.`extra_fields`, ca.`alias` FROM #__k2_items AS ca, #__k2_tags AS c WHERE (c.`id` = '$tag_item->id') AND (c.`name` = ca.`title`)" );
As you can see I get the id of the tag and compare the name with the item title --- but the dashes...?! :(
Any suggestions?

Kind regards
Matthew.
  • Bam Bam
  • Bam Bam's Avatar
09 May 2016 23:09
Replied by Bam Bam on topic SOLVED --- Showing tagged items in item view?

SOLVED --- Showing tagged items in item view?

Category: English K2 Community

Thanks for the hint. Overrides are one reason I like to work with K2: you can simply display all the things you want in the order you want with custom overrides... ;) Top! :)
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
09 May 2016 13:28
Replied by Krikor Boghossian on topic REcommended URL settings

REcommended URL settings

Category: English K2 Community

What I personally do is this:

Map each and every category into a menu item separately.
This will give you clean url of the /menu-item-alias/item/id-item-alias pattern. Item does not really bother me.

Create an empty K2 categories menu (leave the category selection empty) and call it eg: content, to handle all orphan users and tags.
  • David N
  • David N's Avatar
04 May 2016 21:06
[sp video] shortcode instead of video was created by David N

[sp video] shortcode instead of video

Category: English K2 Community

Hi
www.versionedemo.eu/blog/index.php
If you click on emoticons menu on the right position the articles that are filtered by this k2 tag menu shows the code and not the video.
Also the date of the article is wrong because the month is SP_APRILE instead of simply APRILE.

Thank you very much for your help
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
04 May 2016 16:09
Replied by Krikor Boghossian on topic Menu item and introtext

Menu item and introtext

Category: English K2 Community

Sure thing.

The reply I mentioned in my earlier post is located here: www.joomlaworks.net/forum/k2-en/45430-auto-introtext-and-tag-stripping#153711
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
04 May 2016 16:08
Replied by Krikor Boghossian on topic SOLVED --- Showing tagged items in item view?

SOLVED --- Showing tagged items in item view?

Category: English K2 Community

Kudos Matthew,

Seems like a nice solution. Remember to use overrides instead of applying this directly to core files.

getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
  • Bam Bam
  • Bam Bam's Avatar
04 May 2016 00:39 - 04 May 2016 00:46
Replied by Bam Bam on topic SOLVED --- Showing tagged items in item view?

SOLVED --- Showing tagged items in item view?

Category: English K2 Community

Found out a solution on my own. If anyone ist interested I used this code:
<?php $tag_title = $this->item->title; $db_abfrage=JFactory::getDBO(); $db_abfrage->setQuery("SELECT c.`tagID`, c.`itemID`, ca.`name`, ca.`id`, cb.`id`, cb.`title`, cb.`introtext` FROM #__k2_tags AS ca, #__k2_tags_xref AS c, #__k2_items AS cb WHERE ca.`name` = '$tag_title' AND ca.`id` = c.`tagID` AND c.`itemID` = cb.`id`"); $db_abfrage_result = $db_abfrage->loadObjectList(); foreach($db_abfrage_result as $db_tags) { echo '<h3>'.$db_tags->title.'</h3><br />'; echo '<img src="media/k2/items/cache/'.md5('Image'.$db_tags->id).'_S.jpg" /><br />'; echo $db_tags->introtext.'<br />'; } ?>
I just wanted to show all articles tagged with the item title, listed under the content of the active article / item with the same title.
Background was a listing of different firms. When getting the infos of the firm in item view there should be all articles tagged with the firm name shown under the main info of the firm.

Sorry for my bad explanation. Maybe anyone can use this, too.

Matthew.
  • Bam Bam
  • Bam Bam's Avatar
03 May 2016 20:07 - 04 May 2016 00:46

SOLVED --- Showing tagged items in item view?

Category: English K2 Community

Hello everybody,

I hope you can help me. I'd like to view all tagged items with a special tag (the whole article) in an item view under the the content without a module. E.g. all articles with "tag1" under the content of "item1", all articles with "tag2" under the content of "item2" ... and so on.
I tried to do this with a mySQL - Query but I can't find the setted tags in the k2_items table anywhere.

Has anyone a idea how to do this?

Kind regards Matthew.
  • Thomas Thrane
  • Thomas Thrane's Avatar
03 May 2016 15:08 - 03 May 2016 15:11

[SOLVED] syntax error, unexpected '$this' (T_VARIABLE), expecting fun

Category: English K2 Community

UPDATE 2:

Seems like K2 is adding some wrong tags in the files mentione above when the page is accessed
In /components/com_k2/views/itemlist/view.html.php I found out that the code below is changing and the /**jk is added to the beginning and *7 is further down causing the page to fail.


/**jk// Set Facebook meta data
if($params->get('facebookMetatags', '1'))
{
$document = JFactory::getDocument();
$uri = JURI::getInstance();
$document->setMetaData('og:url', $uri->toString());
$document->setMetaData('og:title', (K2_JVERSION == '15') ? htmlspecialchars($document->getTitle(), ENT_QUOTES, 'UTF-8') : $document->getTitle());
$document->setMetaData('og:type', 'website');
if ($task == 'category' && $this->category->image && strpos($this->category->image, 'placeholder/category.png') === false)
{
$image = substr(JURI::root(), 0, -1).str_replace(JURI::root(true), '', $this->category->image);
$document->setMetaData('og:image', $image);
$document->setMetaData('image', $image);
}

$document->setMetaData('og:description', strip_tags($document->getDescription()));*/
}



If I remove the part with Facebook, the pages are fine?
  • Wire Creative
  • Wire Creative's Avatar
28 Apr 2016 22:35
Replied by Wire Creative on topic All Items missing after 2.7 update

All Items missing after 2.7 update

Category: English K2 Community

I've tried repairing both through Joomla's database tools and cpanel's to no success. Even though I can see all that data in the k2 tables in the database, nothing will show up in the K2 Items or Categories screens.Users and user groups seem to work fine. I don't have any tags or extra fields, so I can't tell whether those parts are affected.
  • Abdulaziz Mierza
  • Abdulaziz Mierza's Avatar
28 Apr 2016 16:48 - 28 Apr 2016 16:56

[Fixed] Google reCAPTCHA v2 bug on reload & Support Language

Category: English K2 Community

Hi Everyboy,
This Topis for improve our beautiful K2 :
1-bug in reCAPTCHA v2 on release version of K2 which is :
After accept comment & reload page >> reCAPTCHA not will shown
2-Add Suuport Joomla Language > for example if you using Germany language for joomla , its will show reCAPTCHA Germany from Google

PLease Replace these code in (Note this example only for comments, you can replace for other) :
[your joomla folder]/components/com_k2/views/item/view.html.php

FIND :
if($params->get('recaptchaV2')) { $document->addScript('https://www.google.com/recaptcha/api.js?onload=onK2RecaptchaLoaded&render=explicit'); $js = 'function onK2RecaptchaLoaded(){grecaptcha.render("recaptcha", {"sitekey" : "'.$item->params->get('recaptcha_public_key').'"});}'; $document->addScriptDeclaration($js); $this->recaptchaClass = 'k2-recaptcha-v2'; }

REPLACE WITH :
if($params->get('recaptchaV2')) { $document->addScript('https://www.google.com/recaptcha/api.js?hl=' . JFactory::getLanguage() ->getTag() . '&onload=onK2RecaptchaLoaded&render=explicit'); $js = 'function onK2RecaptchaLoaded(){grecaptcha.render("recaptcha", {"sitekey" : "'.$item->params->get('recaptcha_public_key').'"});} $K2(window).load(function() { onK2RecaptchaLoaded(); }); '; $document->addScriptDeclaration($js); $this->recaptchaClass = 'k2-recaptcha-v2'; }

NOTE :
YOU CAN USED FOR ANOTHER FILE LIKE : [your joomla folder]/plugins/system/k2/k2.php


You can download the PHP file from link (ONLY FOR [your joomla folder]/components/com_k2/views/item/view.html.php):
www.dropbox.com/s/etao09vvx2cb5cl/view.html.php?dl=0
  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
Displaying 1261 - 1280 out of 6582 results.

Powered by Kunena Forum