Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • william white
  • william white's Avatar
21 Aug 2017 14:06
Replied by william white on topic k2 H1 Did not clear html, php tags

k2 H1 Did not clear html, php tags

Category: English K2 Community

I dont think that is the proper place to put the tag.
I would create and override and place the tag in the proper file of the override ie: item.php etc
  • Aziz
  • Aziz's Avatar
21 Aug 2017 12:18
Replied by Aziz on topic k2 H1 Did not clear html, php tags

k2 H1 Did not clear html, php tags

Category: English K2 Community

I HAVE
<span class="my_class">TITLE</span>
24.kz/doc/photo.jpg
  • william white
  • william white's Avatar
17 Aug 2017 18:21
Replied by william white on topic k2 H1 Did not clear html, php tags

k2 H1 Did not clear html, php tags

Category: English K2 Community

Please send more info and a link if you have one?
  • Aziz
  • Aziz's Avatar
17 Aug 2017 16:04

k2 H1 Did not clear html, php tags

Category: English K2 Community

Hello!
How to make k2 did not clear html, php tags in H1 (k2TitleBox)???
<span></span>
<br></br>
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
14 Aug 2017 19:35
Replied by Krikor Boghossian on topic adding tag to article messsed up tye date

adding tag to article messsed up tye date

Category: English K2 Community

NEVER uninstall K2. You will lose all of your data and there is no going back unless you have a backup.

Install through Joomla!'s extension's manager like any other extension.
  • Jo
  • Jo's Avatar
11 Aug 2017 20:08 - 11 Aug 2017 20:10
Open Graph Tags was created by Jo

Open Graph Tags

Category: English K2 Community

I am so confused I could cry!

So, Facebook is showing the wrong og tags for an article that's in K2.
As you can see from the script below, some tags are correct, but the important ones: image, title, description.. are wrong.
I don't know if this problem is with K2, Joomla, Facebook, me or .... who?/what?

Can anyone please offer some insights.

I don't even know what questions to ask to find an answer! I feel like an absolute newbie all over again!

*********
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="utf-8" />
<base href="workingtheweb.co.uk/wtw-blog/item/120-working-with-roberto-and-bernice-at-j-kutzie-could-end-up-costing-me-a-fortune" /> (THIS IS THE CORRECT URL)
<meta property="og:title" content="Blogging for Business" /> (WRONG TITLE)
<meta property="og:type" content="article" />
<meta property="og:url" content="workingtheweb.co.uk/wtw-blog/item/120-working-with-roberto-and-bernice-at-j-kutzie-could-end-up-costing-me-a-fortune" /> (THIS IS THE CORRECT URL)
<meta name="og:site_name" content="workingtheweb.co.uk" />
<meta property="og:description" content="Blogging on your small business website, offers many advantages to your positioning in search engines, and your businesses profile" /> (THIS IS THE WRONG DESCRIPTION)
<meta name="title" content="Working with Roberto and Bernice at j.kutzie could end up costing me a fortune." /> (CORRECT)
<meta name="author" content="Jo Dehaney" />
<meta property="og:image" content="workingtheweb.co.uk/images/item-images/gabby.jpg" /> (WRONG IMAGE)
<meta name="image" content="workingtheweb.co.uk/media/k2/items/cache/0c758c944f0062609b2677e28107bc5e_M.jpg" />
<meta name="description" content="For a while there, I wanted to don one of his sexy, long linen, jackets, find the hottest pair of boots I could, and paint London red." /> (CORRECT)
<meta name="generator" content="Joomla! - Open Source Content Management" />
<title>Working with Roberto and Bernice at j.kutzie could end up costing me a fortune.</title> (CORRECT)
********
So, looking at this after posting above, it seems to be that the meta property elements are wrong, while the meta name elements are correct.

With the exception of meta property="og:url" which is showing the CORRECT url

Can anyone give me any info that might nudge me in the right direction?

Many thanks
Jo
  • william white
  • william white's Avatar
11 Aug 2017 14:52
Replied by william white on topic adding tag to article messsed up tye date

adding tag to article messsed up tye date

Category: English K2 Community

Try the Green Button that says Clone or Download. Click it and select download. Install the downloaded file just as you would the k2.zip you get from getk2.org
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
10 Aug 2017 22:34
Replied by Krikor Boghossian on topic adding tag to article messsed up tye date

adding tag to article messsed up tye date

Category: English K2 Community

Hello there,

Can you try backing up and installing the DEV version?
You can get it from github.com/getk2/k2
  • Ronny Van Der Borght
  • Ronny Van Der Borght's Avatar
08 Aug 2017 13:11 - 08 Aug 2017 13:16
Replied by Ronny Van Der Borght on topic Second author for one blog entry

Second author for one blog entry

Category: English K2 Community

I guess you could even use the K2 tags for this. I used it once like this:
1. Add the Authors as tags (John Doe, Peter Sellars, Peter Falk, etc...)
2. Add a new K2 category named 'Authors'
3. Add a K2 item for every author, use extra fields for the specifics
4. Attach the corresponding tag to the k2 item (The k2 item for 'John Doe' gets the tag 'John Doe')
5. Finally: Link all the other articles with the authors k2 tags

Now change your k2 templates. Work with the 'related items by tag' options.
Example for item.php (always work with overrides!!!):
change: <span><?php echo JText::_('K2_TAGGED_UNDER'); ?></span> into <span>Authors:</span>
and
change <h3><?php echo JText::_("K2_RELATED_ITEMS_BY_TAG"); ?></h3> into <h3>Other articles by this author</h3>
You could even change tags.php.



Tip for advanced k2 users: If you don't want the k2 item for the authors itself (from the k2 category 'Authors') to show up in the list for the articles you could add an exeption to the foreach loop like this:

Change:
<?php foreach($this->relatedItems as $key=>$item): ?>
<!-- author block -->
<?php endforeach; ?>
Into:
<?php foreach($this->relatedItems as $key=>$item): ?>
<?php if($item->category->name !=="Authors"): ?>
<!-- author block -->
<?php endif ;?>
<?php endforeach; ?>

Using this concept you could have 2 related items blocks: one that pulls the author(s) info and one that pulls the articles.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
07 Aug 2017 13:03
Replied by Krikor Boghossian on topic SQL queries to create new K2 item

SQL queries to create new K2 item

Category: English K2 Community

It is not that simple. You will need to update the references to categories, tags, users. I think K2 Import should be preferred.
  • Reaction
  • Reaction's Avatar
04 Aug 2017 02:57

Use of undefined constant K2_JVERSION - assumed 'K2_JVERSION

Category: English K2 Community

After updating a Joomla site to 3.7.4, K2 started throwing the following errors:
Notice: Use of undefined constant K2_JVERSION - assumed 'K2_JVERSION' in /home/public_html/_staging/modules/mod_k2_content/mod_k2_content.php on line 13 Notice: Use of undefined constant K2_JVERSION - assumed 'K2_JVERSION' in /home/public_html/_staging/modules/mod_k2_content/mod_k2_content.php on line 33 Notice: Use of undefined constant K2_JVERSION - assumed 'K2_JVERSION' in /home/public_html/_staging/modules/mod_k2_content/helper.php on line 35 Notice: Use of undefined constant K2_JVERSION - assumed 'K2_JVERSION' in /home/public_html/_staging/modules/mod_k2_content/helper.php on line 125 Fatal error: Class 'K2Model' not found in /home/public_html/_staging/modules/mod_k2_content/helper.php on line 145

If I disable the K2 Content module, these errors go away, but then obviously K2 won't be working on the site.

Any advice or direction is greatly appreciated.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
02 Aug 2017 15:17
Replied by Krikor Boghossian on topic About k2 Item Sharing on Social Media

About k2 Item Sharing on Social Media

Category: English K2 Community

Twitter is using og tags as well. Since the extension is printing duplicate tags this will cause an issue.

Furthermore the second set of og:tags is not correct (relative paths).

So, you need to ask the extension's developers how to disable this extension in K2 items.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
02 Aug 2017 15:12
Replied by Krikor Boghossian on topic [SOLVED] Ordering K2 tags alphabetically

[SOLVED] Ordering K2 tags alphabetically

Category: English K2 Community

This is useful Drazen.
Thank you :)
  • siamnaulak
  • siamnaulak's Avatar
02 Aug 2017 14:48
Tag List into 3 column was created by siamnaulak

Tag List into 3 column

Category: English K2 Community

Hi Friends,

I have two questions which I could not find the solution...

1. How do I make Tag List into 3 column (or 2 column), the default is 1 column. Here's my site where I wanted to have 3 column www.eimitribes.com/component/k2/itemlist/tag/Ginza%20Vualzong.html

2. Meta description & og description in Item page is from K2 content (article), is there a way I can change to Joomla default's Global Configuration description? Because my site item content is photos and I didn't have text/description - www.eimitribes.com/eimi-photography/item/87-ginza-vualzong.html (Screenshot - imgur.com/a/LV0tR)

Regards
Siam
  • razen
  • razen's Avatar
01 Aug 2017 23:23 - 01 Aug 2017 23:24
Replied by razen on topic [SOLVED] Ordering K2 tags alphabetically

[SOLVED] Ordering K2 tags alphabetically

Category: English K2 Community

I hope this wont count as gravedigging - I just want to help persons with that problem since I had it, too.

This here is the original code in the item.php:
<?php foreach ($this->item->tags as $tag): ?> <a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a>, <?php endforeach; ?>

Replace it with this:
<?php foreach($this->item->tags as $key=>$value ) { $sort[$value->name]=array($value->name,$value->link); } ksort($sort) ; foreach ($sort as $tag) { echo '<a href="' . $tag[1] . '">' . $tag[0] . ',</a> '; } ?>

It works for me and I hope I could help some people ...
  • Tripples
  • Tripples's Avatar
31 Jul 2017 13:06 - 31 Jul 2017 13:07
Replied by Tripples on topic About k2 Item Sharing on Social Media

About k2 Item Sharing on Social Media

Category: English K2 Community

Thank you very much for the reply.

Its bowthemes.com/joomla-extensions/bt-social-share-plugin.html from Bowthemes. Works very well with Joomla Article. Also I check with Sharethis tools shows same problem.

Can you please tell me how to remove double og:tags.

thanks a lot.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
31 Jul 2017 12:55
Replied by Krikor Boghossian on topic About k2 Item Sharing on Social Media

About k2 Item Sharing on Social Media

Category: English K2 Community

There are double og:tags in the link you sent us.
Are you using a social extension or plugin?
  • popper
  • popper's Avatar
28 Jul 2017 18:32

SOLVED WITH HACK - Using Extra Field Image for og:image

Category: English K2 Community

Yeah I know it's a hack, which is considered bad form, but I did figure out the problem, just by more hacking. So if anyone else wants to use this very ill advised solution here it is
// Set Facebook meta data if($params->get('facebookMetatags', '1')) { $document = JFactory::getDocument(); $uri = JURI::getInstance(); $document->setMetaData('og:url', $uri->toString()); if ($item->extra_fields[1]->value !== '') { $item->title = html_entity_decode($item->extra_fields[1]->value.' '.$item->title); } else { $item->title = html_entity_decode($item->title); } $item->title = $this->escape($item->title); $document->setMetaData('og:title', $item->title); $document->setMetaData('og:type', 'article'); //$facebookImage = 'image'.$params->get('facebookImage', 'Small'); $altText = $item->extra_fields[0]->value; $altText = str_replace("k2","k2-og",$altText); $altText = str_replace('<img src=',"",$altText); $altText = str_replace(" alt=","",$altText); $altText = str_replace(" />","",$altText); $altText = str_replace("Image","",$altText); $altText = str_replace('"',"",$altText); $image = $altText; $document->setMetaData('og:image', 'http://mysite.net'.$image); $document->setMetaData('image', $image); $document->setMetaData('og:description', htmlspecialchars(strip_tags($document->getDescription()), ENT_QUOTES, 'UTF-8')); }
  • popper
  • popper's Avatar
26 Jul 2017 18:44 - 28 Jul 2017 18:33

SOLVED WITH HACK - Using Extra Field Image for og:image

Category: English K2 Community

In file www\components\com_k2\views\item\view.html.php I replaced
// 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', 'article'); $facebookImage = 'image'.$params->get('facebookImage', 'Small'); if ($item->$facebookImage) { $basename = basename($item->$facebookImage); if(strpos($basename, '?t=')!==false) { $tmpBasename = explode('?t=', $basename); $basenameWithNoTimestamp = $tmpBasename[0]; } else { $basenameWithNoTimestamp = $basename; } if (JFile::exists(JPATH_SITE.'/media/k2/items/cache/'.$basenameWithNoTimestamp)) { $image = JURI::root().'media/k2/items/cache/'.$basename; $document->setMetaData('og:image', $image); $document->setMetaData('image', $image); } } $document->setMetaData('og:description', strip_tags($document->getDescription())); }

with
// Set Facebook meta data if($params->get('facebookMetatags', '1')) { $document = JFactory::getDocument(); $uri = JURI::getInstance(); $document->setMetaData('og:url', $uri->toString()); if ($item->extra_fields[1]->value !== '') { $item->title = html_entity_decode($item->extra_fields[1]->value.' '.$item->title); } else { $item->title = html_entity_decode($item->title); } $item->title = $this->escape($item->title); $document->setMetaData('og:title', $item->title); $document->setMetaData('og:type', 'article'); $facebookImage = 'image'.$params->get('facebookImage', 'Small'); $altText = $item->extra_fields[0]->value; $altText = str_replace("k2","k2-og",$altText); $document->setMetaData('og:image', $altText); $document->setMetaData('og:description', htmlspecialchars(strip_tags($document->getDescription()), ENT_QUOTES, 'UTF-8')); }

It's pulling the correct extra field but in the actual page is showing
<meta property="og:title" content="Series and Chapters Title" /> <meta property="og:type" content="article" /> <meta property="og:image" content="&lt;img src=&quot;/images/k2-og/faceApprPic.jpg&quot; alt=&quot;Image&quot; /&gt;" />

instead of
<meta property="og:image" content="< img src="/images/k2-og/faceApprPic.jpg" alt="Image" />" />
[/code]

I have tried
$document->setMetaData('og:image', html_entity_decode($altText, ENT_QUOTES));
but this doesn't work
when I try
$document->setMetaData('og:image', htmlentities($altText));
I get result
<meta property="og:image" content="&amp;lt;img src=&amp;quot;/images/k2-og/faceApprPic.jpg&amp;quot; alt=&amp;quot;Image&amp;quot; /&amp;gt;" />
  • Omar
  • Omar's Avatar
25 Jul 2017 21:04

Tool for importing / exporting items to / from K2

Category: English K2 Community

Hello,
I need some help on using the tool.
I have to move k2 from joomla 2.5 to 3.7.x. I'm trying to import the .csv file that I have exported from the old site but I got some errors.
- some items disappeared or without title
- publish state is wrong on many
- tags have no name

I really don't know what I am doing wrong, maybe it's because I do not have any idea on how to set "associate the fields"? Something wrong in .csv file?

Thanks in advance
Omar
Displaying 881 - 900 out of 6582 results.

Powered by Kunena Forum