Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Paolo
  • Paolo's Avatar
12 Sep 2013 14:51
Insert Tag in multiple article was created by Paolo

Insert Tag in multiple article

Category: English K2 Community

Hello to everyone
i've wrote the same question to Italian community in this forum, i apologize at first for this duplication!

does anyone know a way to insert a tag on all items of a specific category?
example:
I have a category "dogs" with 150 items, for each item I want us to be a tag "canids".
Is there a way to avoid opening them one by one and insert the tag or avoid going to the database to insert tag from there?

there is something like a component / plugin / hack for K2?

Thanks in advance!

Paolo
  • Paolo
  • Paolo's Avatar
12 Sep 2013 13:16
Inserimento tag in articoli K2 was created by Paolo

Inserimento tag in articoli K2

Category: Comunità italiana K2

Ciao a tutti

qualcuno conosce un sistema per inserire in blocco un tag su tutti gli articoli di una specifica categoria?
Esempio:
ho una categoria "Cani" con 150 articoli, per ogni articolo voglio che ci sia un tag "canidi".
C'è un modo per evitare di aprirli uno ad uno e inserire il tag :blink: o evitare di andare in base dati per inserirli da lì? :huh:

ergo un componente/plugin/hack di K2?

Grazie in anticipo!

Paolo
  • Massimo Di Primio
  • Massimo Di Primio's Avatar
11 Sep 2013 17:29
Replied by Massimo Di Primio on topic [SOLVED] No fulltext in "latest item from category"

[SOLVED] No fulltext in "latest item from category"

Category: English K2 Community

Alright Yiota, it looks I've found the source of the problem, I'll explain on behalf of all the readers of this useful forum.

The trick is that I'm using the template JSN_BOOT_PRO (by joomlashine) which has a css kinda weird. Infact at line 266 of file templates/jsn_boot_pro/ext/k2/jsn_ext_k2.css there is a block which screws up the k2 article (if it contains some image). The css block is like the following:

div.groupLeading div.itemBody img,
div.groupLeading div.userItemList img,
div.groupLeading div.catItemBody img,
div.groupLeading div.tagItemBody img,
div.groupPrimary div.itemBody img,
div.groupPrimary div.userItemList img,
div.groupPrimary div.catItemBody img,
div.groupPrimary div.tagItemBody img,
div.groupSecondary div.itemBody img,
div.groupSecondary div.userItemList img,
div.groupSecondary div.catItemBody img,
div.groupSecondary div.tagItemBody img,
div.latestItemBody img {
width: 92%;
}

Simply commenting out that piece of css everything looks beautiful (as expected).

Thank you very much for your great support. Without your suggestion and direction I wouldn't be certainly able to find the problem.
Best regards
  • Andrew Gaskell
  • Andrew Gaskell's Avatar
11 Sep 2013 12:57 - 11 Sep 2013 12:57
Replied by Andrew Gaskell on topic Bulk Tag Feature

Bulk Tag Feature

Category: English K2 Community

On the bulk tagging, I added some notes on a solution to another post, see...

getk2.org/community/New-to-K2-Ask-here-first/152155-Add-tags-to-articles-en-mass-in-a-bulk-job#182225
  • Andrew Gaskell
  • Andrew Gaskell's Avatar
11 Sep 2013 12:52
Replied by Andrew Gaskell on topic Add tags to articles en-mass in a bulk job?

Add tags to articles en-mass in a bulk job?

Category: English K2 Community

I know this is an old topic, but a Google search for this got me here, so might do for others too.

So, I had a look at this, as I needed to bulk tag items, and decided to do it via MySQL. I though it'd maybe be handy to share the code. Table prefixes always vary, I know, but mine is "vh4z6" in this instance, which you'll see here, so you'd have to change that to whatever your table prefix is.

So I wanted to tag all my articles as "Aberdeen". I looked in the "vh4z6_k2_tags" table, and found the ID of the "Aberdeen" tag, which was "218".

Some items were already tagged as "Aberdeen", so I wanted to purge them, I did...
 
  • David Willox
  • David Willox's Avatar
11 Sep 2013 07:52
Replied by David Willox on topic Item Title h2 to h1

Item Title h2 to h1

Category: English K2 Community

Chandan Kumar wrote: You can use Header Tags Plugin and that will do your job. You don't have to modify any code.

I tested with Joomla and K2 articles, it works great.

www.chandank.com/cms/joomla/change-title-header-to-h1


Chandan - This plugin should be incorporated into K2!

Well done for finding it and thank you for posting it!
  • gangadhar
  • gangadhar's Avatar
09 Sep 2013 22:50

Image gallery with fields displaying for each imag

Category: English K2 Community

Hi Guys,

I am new to k2,i have one requirement like i have lot of images with data tagged to them in fields.so i need to display these images in a galley and on clicking each image should display the data tagged to them in fields ,for the images every time i used to place them at the back-end which should pick up and show.for the gallery i am using "Simple gallery plugin" to which k2 will support,so can u guys guide how to create fields and tag data to them then on clicking showing individual data for the images. :huh: :huh: :huh:
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
09 Sep 2013 19:29
Replied by Krikor Boghossian on topic Remove Tag from K2 Item/Article

Remove Tag from K2 Item/Article

Category: English K2 Community

Just tested it with Joomla! 2.5.14 and 3.1.5. Make sure you are using K2's and Joomla!'s latest version.
  • Michael Yaeger
  • Michael Yaeger's Avatar
09 Sep 2013 16:46
Replied by Michael Yaeger on topic Display Modules on Specific Article Pages

Display Modules on Specific Article Pages

Category: English K2 Community

Those looking for the answer should turn here:
www.nonumber.nl/extensions/advancedmodulemanager

The Advanced Module Manager (PRO version) will let you add modules to any position based on K2 article name/category/tag/etc. It has worked great for our needs.
  • Michael Yaeger
  • Michael Yaeger's Avatar
09 Sep 2013 16:26
Replied by Michael Yaeger on topic Remove Tag from K2 Item/Article

Remove Tag from K2 Item/Article

Category: English K2 Community

OK, I guess this K2 component isn't being actively developed anymore. Here is the correct fix for those needing it:

File = administrator/components/com_k2/views/item/tmpl/default.php
At line 108, add new attribute onclick="$K2(this).parent().remove();" to the span.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
09 Sep 2013 15:10
Replied by Krikor Boghossian on topic Why K2 real URL can be index in google ?

Why K2 real URL can be index in google ?

Category: English K2 Community

If you are using proper canonical links then 301 (for a 1000 articles) sound to me like an overkill.

If you are using canonical tags and even if multiple URLs are indexed you won't get penalised for double content.

As for the hackable part this is how it work so when you use canonical links that won't be an issue.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
09 Sep 2013 14:00
Replied by Krikor Boghossian on topic Why K2 real URL can be index in google ?

Why K2 real URL can be index in google ?

Category: English K2 Community

Hello,

As I have told you multiple times in the past you either need to use an SEO Extenion and some 301 redirects for your URLs or use a canonical link plugin which offers K2 integration.

And to answer this question every CMS's permalinks are hackable which means URLs can be accessed in multiple ways. So using a canonical tag will solve this issue.
  • jokrasa
  • jokrasa's Avatar
09 Sep 2013 12:31 - 09 Sep 2013 12:32

There was a problem rendering your image gallery.

Category: Simple Image Gallery PRO

Do not enter manually tag 
{gallery}pfarrervsimame{/gallery}
  in the content K2

This tag must be only in sigplus ! not sigpro.

Add photos using one of the tabs when editing the article.(before upload the pictures, put pictures in the archive)
Make sure the sigpro plugin is enabled.
  • gaker
  • gaker's Avatar
09 Sep 2013 12:19

anchors to specific modules using K2 content modul

Category: English K2 Community

Yiota Ziaggou wrote: What if you used the Description text at the top (optional) field? This would be right under the title. Maybe with some CSS you could move it close to the heading of each module.


Wow! It works !

But where this text is published ? Only in code? I have put only the html tag: <a name="name">.

Thank you :))
  • efe
  • efe's Avatar
08 Sep 2013 14:49

Siyah Tema Katagori ve fotograf sorunu

Category: Türkçe K2 Topluluğu

arkadaslar benim siyah bir template var. ben k2 bileseni ile dowbload sitesi tarzinda bir site dusundum amma temam siyah oldugu icin resimlerde beyaz kenarlik ve katagorulerdede beyaz kenar oluyor e genis bir kenarlik.. bunu nasil kaybedebiliriz. tesekkurler..
  • WinniePooh
  • WinniePooh's Avatar
08 Sep 2013 11:51 - 08 Sep 2013 11:51
Replied by WinniePooh on topic Following layout possible?

Following layout possible?

Category: English K2 Community

It's only the latest_item.php where I've to put a div. Here an example what I've done on the latest_item.php.
 
  • Max
  • Max's Avatar
08 Sep 2013 10:48
Replied by Max on topic K2 Comments maxlength?

K2 Comments maxlength?

Category: English K2 Community

for those who intrested I've did it in such way:
1. in the file \components\com_k2\models\item.php you need to find "function comment'. In this function you need to find string
$row->commentText = JRequest::getString('commentText', '', 'default');
now we can with mb_substr cut odd symbols adding right after the mentioned string new one:
$row->commentText = mb_substr($row->commentText, 0, 600);
as you can guess number 600 is the number of symbols which will leave in the $row->commentText, all other symbols will be cut. You can change this number to any you'd like.
2. then you can just add to the commentary description information about max symbols limitation in the comment, but we can do it in the more convinient for the end user way. depending on your template the necessary file could be in /templates/YOURJOOMLATEMPLATE/html/com_k2/item_comments_form.php if such folder exists. If not, then look for in /components/com_k2/templates/item_comments_form.php.
In this file we look for string
<form action="<?php echo JRoute::_('index.php'); ?>" method="post" id="comment-form" class="form-validate">
and insert in front of it
<script type="text/javascript"> function textCounter( field, countfield, maxlimit ) { if ( field.value.length > maxlimit ) { field.value = field.value.substring( 0, maxlimit ); document.getElementById("message-text-counter").innerHTML = "Commentary cannot longer then 600 symbols"; return false; } else { document.getElementById("message-text-counter").innerHTML = '<div id="message-text-counter"><span id="text-counter"></span> symbols left</div>'; document.getElementById(countfield).innerHTML = maxlimit - field.value.length; } } </script>
you must change number 600 to the number of your choice
then the string
<textarea rows="20" cols="10" class="inputbox" onblur="if(this.value=='') this.value='<?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?>';" onfocus="if(this.value=='<?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?>') this.value='';" name="commentText" id="commentText"><?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?></textarea>
you change to
<textarea rows="20" cols="10" class="inputbox" onblur="if(this.value=='') this.value='<?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?>';" onfocus="if(this.value=='<?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?>') this.value='';" onkeyup="textCounter(this,'text-counter',600)" name="commentText" id="commentText"><?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?></textarea>
You see we added here
onkeyup="textCounter(this,'text-counter',600)"
here again you must change 600 to the number of symbols you have chosen in mb_substr function.
and as final stroke after
<div class="cform-item2"> <label class="formComment" for="commentText"><?php echo JText::_('K2_MESSAGE'); ?> *</label> <textarea rows="20" cols="10" class="inputbox" onblur="if(this.value=='') this.value='<?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?>';" onfocus="if(this.value=='<?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?>') this.value='';" onkeyup="textCounter(this,'text-counter',600)" name="commentText" id="commentText"><?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?></textarea> </div>
you add
<div class="cform-item2" id="message-text-counter"> <span id='text-counter'>600</span> symbols left</ br> </div>
here the same you must change 600 to your number.

Now user will see real-time symbols counter below comment textarea and this script will prevent user from enetering more then in my case 600 symbols even if user will copypaste ready text into the textarea. Even if user deactivate JavaScript and craete comment more then 600 symbols in my case, on the stage of processing comment the php script will cut off odd symbols in the text

IMPORTANT NOTICE
some attributes e.g. class can (and for sure WILL!!) be different depending on your template! So applying described changes you MUST change them to the values of your own template if you have any
  • gaker
  • gaker's Avatar
06 Sep 2013 21:58

full html in category listing? show articles nicel

Category: English K2 Community

Krikor Boghossian wrote: Are you sure you aren't using cleanup functions in your template or just stripping specific tags?


If you are asking about my K2 settings - yes - I have turned off in this place.
I would like to point, that bolded text is displayed properly, links also.
I have checked that my html tags ends before "read more" line.

Also is the Enter which HTML tag attributes to strip in introtext value is set to blank?


Sorry, did you asking me about breaking lines in html tags? Sorry, I did not understand your question?
  • aymettim
  • aymettim's Avatar
06 Sep 2013 16:13

There was a problem rendering your image gallery.

Category: Simple Image Gallery PRO

Hi JW Team,

I bought the simple image gallery pro several days ago, installed it local before using it remote. Everything works fine, no troubles. So I installed it on our server and suddenly the following failure message occurs:

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:

Here is the exact link to the site: islamvoice.de/islamvoiceweb/index.php/islamvoice-bildergallerie/item/187-pfarrer-vs-imame

I even read several threads with the same issue, but not anyone helps me out. The folders were set to 777.

Here are our system informations, if it helps :

PHP erstellt für Linux h1602741 2.6.25.18-0.2-default #1 SMP 2008-10-21 16:30:26 +0200 x86_64
Datenbankversion 5.0.51a
Datenbankzeichensatz utf8_general_ci
PHP-Version 5.2.9
Webserver Apache
PHP-Interface für den Webserver apache2handler
Joomla!-Version Joomla! 2.5.11 Stable [ Ember ] 26-April-2013 14:00 GMT
Joomla!-Plattform-Version Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
Browsererkennung Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36


I hope you can help me as quick as possible, because we want to go online soon and we dont want miss this component, we like the functionality and the cowork with the cck k2.

Thank you guys! Best regards from Berlin
  • Giuseppe Mangano
  • Giuseppe Mangano's Avatar
03 Sep 2013 18:24
Extra fileds Joomfish formatting problem was created by Giuseppe Mangano

Extra fileds Joomfish formatting problem

Category: English K2 Community

Hello,
is there any way to facilitate the translation of k2 extra fields in Joomfish? My point is to avoid character like "{, html tag, \r, \n" and so on and to have input fileds for each extra fields without this special characters.
Thanks in advance,
Giuseppe.
Displaying 3201 - 3220 out of 6582 results.