Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • sterling
  • sterling's Avatar
29 Oct 2013 01:32

k2 ratings/rich snippets vote crashing google bot

Category: English K2 Community

It appears that the K2 rating module is causing a crash when front page is loaded by Google Bot:

17:40:06 write(3, ".\0\0\0\3SELECT * FROM bzgoi_k2_rating WHERE itemID=60", 50) = 50
17:40:06 read(3, "\1\0\0\1\4L\0\0\2\3def\ftagdesig_new\17bzgoi_k2_rating\17bzgoi_k2_rating\6itemID\6itemID\f?\0\v\0\0\0\3\3@\0\0\0T\0\0\3\3def\ftagdesig_new\17bzgoi_k2_rating\17bzgoi_k2_rating\nrating_sum\nrating_sum\f?\0\v\0\0\0\3!\0\0\0\0X\0\0\4\3def\ftagdesig_new\17bzgoi_k2_rating\17bzgoi_k2_rating\frating_count\frating_count\f?\0\v\0\0\0\3!\0\0\0\0L\0\0\5\3def\ftagdesig_new\17bzgoi_k2_rating\17bzgoi_k2_rating\6lastip\6lastip\f!\0\226\0\0\0\375\1\0\0\0\0\5\0\0\6\376\0\0\2\0\24\0\0\7\00260\0015\0011\f50.92.52.163\5\0\0\10\376\0\0\2\0", 16384) = 387
17:40:06 --- SIGSEGV (Segmentation fault) @ 0 (0)

The output shows that the crash is happening when the module is handling the results from a query.

This happens only when I try to publish rich snippets vote

Please help!
  • karlo
  • karlo's Avatar
28 Oct 2013 20:24 - 28 Oct 2013 20:25

how to convert k2 items to default joomla articles

Category: English K2 Community

Thank you, Davor!!!
I'll try what you offer. I think I understand. I moved articles, categories and tags using MYSQL. I could only picture and synchronizing tags with articles.

That's how I moved tags, but I changed the table structure jos_k2_tags

TAGS
INSERT INTO `DBNAME_news`.`jos_tags` (`id`, `parent_id`, `lft`, `rgt`, `level`, `path`, `title`, `alias`, `published`, `access`, `language`) SELECT `id`, `parent_id`, `lft`, `rgt`, `level`, `path`, `title`, `alias`, `published`, `access`, `language` FROM `DBNAME_news`.`jos_k2_tags`
  • Davor
  • Davor's Avatar
28 Oct 2013 19:44

how to convert k2 items to default joomla articles

Category: English K2 Community

I don't know about tags, I didn't move them but I moved images this way:

1. Found out URL of K2 images, e.g. /media/k2/items/cache/319a6b58175c8348e5b537a311344d30_S.jpg

2. Put any image into Joomla article to see structure in database. And I saw the structure is like this:
{"image_intro":"images\/some_folder\/e0a70f72bdae9885bfc32d7cd19a26a1_S.jpg","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}
Notice that link is images \ / some_folder \ / (without empty spaces, so backslash and slash)

3. Copied all images from old website from old folder /media/k2/items/cache/ to my new website and new folder /images/some_folder/

4. I than open xxx_content (where xxx is db prefix) table in my database and put that code from #2 inside all articles (450) but without url of image, so I put it like this:
{"image_intro":"images\/some_folder\/_S.jpg","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}
Notice that there isn't url of image, structure is images \ / some_folder \ / _S.jpg

5. And than I opened 2 tabs (or explorer windows) and
a) opened first K2 item, copy url
b) opened database of new website and paste name of that picture inside xxx_content, not the whole url, just the image name (if url is /media/k2/items/cache/319a6b58175c8348e5b537a311344d30_S.jpg I copied just 319a6b58175c8348e5b537a311344d30 without _S.jpg and rest of the url) along with images field structure in #4
c) and now inside database the whole structure of images field of that first article is:
{"image_intro":"images\/some_folder\/319a6b58175c8348e5b537a311344d30_S.jpg","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}

6. Again paste that structure in images filed in database of new website and copy-paste image name in url.

It's a bit complicated but it will took you just 30 sec when you know what are you doing. Do this or let cms2cms do this for you for 200-300 $ (price depends on how many articles you have). OR when you have all your articles migrated from K2 to joomla, using method I posted above, you can open every article and upload image. You see how this will be hard to do? It's simpler to follow my steps
  • karlo
  • karlo's Avatar
28 Oct 2013 19:11

how to convert k2 items to default joomla articles

Category: English K2 Community

How can you move images, and tags from K2 into Joomla articles? I have 3000 articles with pictures... :(
  • Joseph Rebele
  • Joseph Rebele's Avatar
28 Oct 2013 17:40
Extra Fields Use Case was created by Joseph Rebele

Extra Fields Use Case

Category: English K2 Community

Folks,

I am using K2 to build a document repository for public health communications. I was hoping I could get some guidance on how to "classify" documents. Here is what I have so far:

1. Category - This is being used to organized the documents by disease/illness
2. Tags - Using to define common terms for quick searches
3. Extra Fields - These are being used to "classify" the documents.
a. Audience - Health Professionals, Public, etc.
b. Resource Type - Checklists, News Release, PSA, Reports, etc.

The issue I am having is with the Resource Type. Within the Resource Type, there are a number of types that have sub-types. For example, Print has children types like Ads, Posters, Billboards, etc. Can I configure K2 in a way that will let me have nested Multi-Select Lists in Extra Fields?

If not, can you provide some guidance on how you would satisfy this requirement of my application? Thanks in advance for all your help!

Regards,
Joe
  • Jamie
  • Jamie's Avatar
28 Oct 2013 17:23

[SOLVED] Common search/tag results page for all categories?

Category: English K2 Community

Hi,

I'm developing my first site - thank you for all the useful information on here that I've made use of so far. I have encountered some problems though with combining category-specific layouts with a common layout for search/tag cloud results - I'm hoping someone can point me in the right direction....

For two K2 tools modules (search box, tag cloud), I have used the layout settings in K2 Parameters and modified the generic.php and tag.php files in my K2 sub-template to style the results as needed. So far, so good.

The issue I'm having however is that the search/tag results pages themselves seem to inherit their layout from the page from where the search was initiated, or where the tag cloud was clicked.

For example, for one category I'd like the pages to appear in two columns - item content to the left; another module position to the right (custom HTML, or K2 split content). I've successfully managed to get this to appear OK through both:

a. Publishing the additional module to the same position as the component and then styling to display in two columns; or
b. Publishing the additional module to a collapsible position, specified within the joomla index.php.

Regardless of which of the above approach I use though, if I perform a search or click on a tag within the tag cloud from this differently styled page (category), the search/tag results are just generated in the left-hand column only - and the additional module remains visible to the right.

Ideally, I'd like the additional, category-specific modules published to the right to disappear and the search results to be generated across the full page. The search/tag results would therefore appear consistently throughout the site.

Is this possible, or does anyone know of a better way to approach category-specific page layouts that would allow me to do this?

Grateful for any guidance!
  • zoschel71
  • zoschel71's Avatar
27 Oct 2013 13:24 - 27 Oct 2013 13:24
K2 post Artikel per Mail was created by zoschel71

K2 post Artikel per Mail

Category: Offizielle deutsche Gemeinschaft

Hallo zusammen,

Ich hab das I-Net jetzt schon zwei Tage nach einer Lösung um Artikel via Mail Online zu stellen durchsucht, hab da auch was gefunden, RSBlog, das soll wohl K2 unterstützen aber keine Bilder mit einbinden, PowerMail 4 Joomla gibt es auch, aber das unterstütz nur Joomla Categorieen, also auch nicht brauchbar. XMLRPC kenne ich, ist aber zu umständlich.

Hat jemand da einen Tip? soll ganz einfach sein, festgelegte E-Mail für Artikel, kommt ne E-Mail an wird sie dann automatisch in den Artikel gepostet.

Vielen Dank schon mal!
  • George Nasis
  • George Nasis's Avatar
25 Oct 2013 23:05
Related items but from category was created by George Nasis

Related items but from category

Category: English K2 Community

Hallo there!
I use the attribute described in the item.php to show the related items with a scroll bar..But it retrieves the items by tags..can i change it to retrieve by category?
I know that there is a relative extension mod_k2_related_content but it doesn`t provide the scroll effect unfortunately.. :/

Any solution and help???
Thank you very much!
  • Samuel Paul Lyons
  • Samuel Paul Lyons's Avatar
25 Oct 2013 16:01
K2 Tag Cloud Links not working was created by Samuel Paul Lyons

K2 Tag Cloud Links not working

Category: English K2 Community

Hi,

I just installed the K2 Tag Cloud in the footer of my website - kcrarea.com - and the tags all appear okay. The problem is they done link anywhere.

Any suggestions?

All the best,

Sam
  • chris brice
  • chris brice's Avatar
24 Oct 2013 16:39
Replied by chris brice on topic Pictrure shadow space

Pictrure shadow space

Category: Commercial Joomla Templates

hi Krikor
Thankyou excellent that has worked .

one last thing

on the pictures again same as before

but the one for tag results

so the code as below but for tag results

div#item ? span.catItemImage, i guess (tag)


www.motorcarhistory.com/index.php/component/k2/itemlist/tag/Sunbeam
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
24 Oct 2013 12:53
Replied by Krikor Boghossian on topic [SOLVED] image upload and extra fields required

[SOLVED] image upload and extra fields required

Category: English K2 Community

$document = & JFactory::getDocument(); $document->addScriptDeclaration(" Joomla.submitbutton = function(pressbutton){ if (pressbutton == 'cancel') { submitform( pressbutton ); return; } if (\$K2.trim(\$K2('#title').val()) == '') { alert( '".JText::_('K2_ITEM_MUST_HAVE_A_TITLE', true)."' ); } else if (\$K2.trim(\$K2('#catid').val()) == '0') { alert( '".JText::_('K2_PLEASE_SELECT_A_CATEGORY', true)."' ); } else if( \$K2('.fileUpload').val() == '') { alert('No image selected'); return false; } else { syncExtraFieldsEditor(); \$K2('#selectedTags option').attr('selected', 'selected'); submitform( pressbutton ); } } ");

This forces the user to upload a new item each time. tested it and works.
$document = & JFactory::getDocument(); $document->addScriptDeclaration(" Joomla.submitbutton = function(pressbutton){ if (pressbutton == 'cancel') { submitform( pressbutton ); return; } if (\$K2.trim(\$K2('#title').val()) == '') { alert( '".JText::_('K2_ITEM_MUST_HAVE_A_TITLE', true)."' ); } else if (\$K2.trim(\$K2('#catid').val()) == '0') { alert( '".JText::_('K2_PLEASE_SELECT_A_CATEGORY', true)."' ); } else if( \$K2('.fileUpload').val() == '' && \$K2('#existingImageValue').val() == '' ) { alert('No image selected'); return false; } else { syncExtraFieldsEditor(); \$K2('#selectedTags option').attr('selected', 'selected'); submitform( pressbutton ); } } "); 

This will check both the new AND existing image fields.

Please note this ONLY for adding new item, You should make a case where the default code is used when the $task is editing.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
24 Oct 2013 12:33
Replied by Krikor Boghossian on topic k2 generating duplicate content & hampering SERP

k2 generating duplicate content & hampering SERP

Category: English K2 Community

I wouldn't disallow tag listings in your position and I would only block the ?tmpl=component urls. I think the second and third lines are not necessary if you use this snippet.
  • Josh
  • Josh's Avatar
24 Oct 2013 12:29 - 24 Oct 2013 12:31

[SOLVED] image upload and extra fields required

Category: English K2 Community

Hi Krikor

My apologies for the delay - been a bit swamped so this had to take the backburner for a few days.

Thanks a stack for the code above - I tried it however it still allows me to save and doesnt prompt me to add an image before being allowed to save.

I tried this..


/**
* @version $Id: itemform.php 1279 2011-10-27 16:52:58Z joomlaworks $
* @package K2
* @author JoomlaWorks www.joomlaworks.gr
* @copyright Copyright (c) 2006 - 2011 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: www.gnu.org/copyleft/gpl.html
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

$document = & JFactory::getDocument();
$document->addScriptDeclaration("
Joomla.submitbutton = function(pressbutton){
if (pressbutton == 'cancel') {
submitform( pressbutton );
return;
}
if (\$K2.trim(\$K2('#title').val()) == '') {
alert( '".JText::_('K2_ITEM_MUST_HAVE_A_TITLE', true)."' );
}
else if (\$K2.trim(\$K2('#catid').val()) == '0') {
alert( '".JText::_('K2_PLEASE_SELECT_A_CATEGORY', true)."' );
}

var files = \$K2('.fileUpload').val();

if(files=='')
{
alert('No image selected');
return false;
}

else {
syncExtraFieldsEditor();
\$K2('#selectedTags option').attr('selected', 'selected');
submitform( pressbutton );
}
}
");


Thanks a stack mate - scripting isnt really my strongpoint :)
  • Soumendra Jena
  • Soumendra Jena's Avatar
24 Oct 2013 12:25
Replied by Soumendra Jena on topic k2 generating duplicate content & hampering SERP

k2 generating duplicate content & hampering SERP

Category: English K2 Community

Ok I added this to robots.txt

Disallow */itemlist/tag/*
Disallow: /*/item/*.html?tmpl=component&print=1
Disallow: /?tmpl=component&type=raw
Disallow: /*?print=
  • Samantha Prinsloo
  • Samantha Prinsloo's Avatar
23 Oct 2013 20:04
Replied by Samantha Prinsloo on topic [SOLVED] Category Description

[SOLVED] Category Description

Category: English K2 Community

Thank you for your response. Could you tell me the path to this category.php file?
I did a search within the website files for category.php and managed to find 5 that were linked with K2.
I then did a search for an H1 tag within any of these fles, but none of them had any H1 tag, so it clearly isn't one of these 5.

Thanks
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
23 Oct 2013 18:04
Replied by Krikor Boghossian on topic How to make custom k2 tag page?

How to make custom k2 tag page?

Category: English K2 Community

By default tags are rendered in the tag.php file. If you want different modules per tag you need to assign these tags to a menu item (K2 Tag Menu item).

If you want to have a different template per tag/ menu item you can create a new K2 template and c/p tag.php in that folder. Finally you need to select that template from the menu item's settings.
  • leito
  • leito's Avatar
23 Oct 2013 17:07
How to make custom k2 tag page? was created by leito

How to make custom k2 tag page?

Category: English K2 Community

Hi. How to make custom k2 tag page with modules and custom content. How to display items by tag anywhere in this page? Can this be implemented? Thx in advance!
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
23 Oct 2013 16:19 - 23 Oct 2013 16:20
Replied by Krikor Boghossian on topic Tags order portfolio

Tags order portfolio

Category: English K2 Community

Actually this is custom functionality developed for the specific template to add AJAX sorting.

You should address this issue to the template developer. There is a ordering parameter missing probably from the query.

If you have the required PHP skills it is located on your /hmtl/com_k2_/K2 TEMPLATE/category.php file.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
23 Oct 2013 12:59
Replied by Krikor Boghossian on topic Limit Shown Tags in Tag Cloud in K2 Tools Module

Limit Shown Tags in Tag Cloud in K2 Tools Module

Category: English K2 Community

You can only specify the number of tags and set the categories.

By default the module will render the x most popular tags from the specified categories, there is no option to exclude certain tags.
  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
23 Oct 2013 12:36
Replied by Mohamed Abdelaziz on topic New to K2 - not seeing my articles on the site...

New to K2 - not seeing my articles on the site...

Category: English K2 Community

Hi Bruce,

1) To see the K2 articles (items), you need to create a K2 menu item, either categories or latest items menu for example.

2) You can trash the old articles and categories after getting K2 works well, as long as you don't need them any more, backup the website before trashing them anyway.
Trashing them from Joomla article manager will not affect K2 items at all.

3) I don't know where to find a complete guide for the parameters setup, but you can find good information in the documentation and the forums.

4) From my point of view, main features that makes K2 useful are: custom templates, extra fields and tags.
Displaying 3101 - 3120 out of 6582 results.

Powered by Kunena Forum