Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
17 Jun 2013 15:54
Replied by Krikor Boghossian on topic Tag page 404s with sh404sef

Tag page 404s with sh404sef

Category: English K2 Community

Gianluca,

Using sh404sef and the hidden menu and advanced SEF methods are two distinct and different methods.

Indeed your URLs look like old Joomla! SEF I have to agree on this one.

I cannot figure the problem but I think I can help you.
Using sh404sef means you are bypassing the Joomla! router alltogether, therefore there is no need to use K2's hidden menus method. I think that particular menu structure and the sh404sef router might be causing these issues.

Try disabling these menus and stick with the sh404sef router (in order to keep all your URLs intact) or use only K2's advanced SEF features (thus using the standard Joomla! router).

jimie is correct on search engine caching, that might also be the issue. Try one the two methods, give it a couple of days and see if you still have new 404 errors.

Hope that helps.
  • Gianluca
  • Gianluca's Avatar
17 Jun 2013 15:23
Replied by Gianluca on topic Tag page 404s with sh404sef

Tag page 404s with sh404sef

Category: English K2 Community

Hello,
yes of course it was my first idea because I tought that the problem was not by the K2 component. Their answer was very very very bad.
You can find the thread here:

anything-digital.com/forum/extension/sh404sef/7477-k2-.sef-and-a-lot-of-404-pages.html?p=2

Basically they say that the component records all the url in 404 format and it is not their problem but mine. I solve the problem around the 404 iussue and I try to put also the "hidden menu" as suggested in your K2 V.2.6.5 released file and now (after change by hand more than 2000 404) I'm quite desperate because in two days more than 500 404 shows up again!

Plase help me to find a solution


Gianluca
  • Elmer Balbin
  • Elmer Balbin's Avatar
17 Jun 2013 05:17
Replied by Elmer Balbin on topic RE: K2 Facebook Comment Box

RE: K2 Facebook Comment Box

Category: English K2 Community

Nevermind, I got it! :D For those who are looking for the same thing here's what I done. I simply changed the value of data-href to a php function that retrieves the current address.

Here is the updated code:


<?php if($this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2')) && empty($this->item->event->K2CommentsBlock)): ?>

<!-- Item comments -->

<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-comments" data-href="<?php $url="http://".$_SERVER.$_SERVER; echo $url; ?>" data-width="500" data-num-posts="10"></div>

<?php endif; ?>
  • Elmer Balbin
  • Elmer Balbin's Avatar
17 Jun 2013 03:45 - 17 Jun 2013 03:47
RE: K2 Facebook Comment Box was created by Elmer Balbin

RE: K2 Facebook Comment Box

Category: English K2 Community

Greetings K2,

I have recently went around the community forums and found a solution to my problem regarding how to implement the Facebook comment box replacing the standard K2 comment box of items.

Now my only problem is on how to display the comments of PER item. What I mean is to display comments only for the specific item and not all comments from a single site. Below is the attached code. If I understand the code correctly, it only displays the comments from the 'data-href'. In this case, www.example.com/blog/item-1.

How can I make comments for each item since this is a global overide of all the Items? Any help would be appreciated!



<?php if($this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2')) && empty($this->item->event->K2CommentsBlock)): ?>

<!-- Item comments -->

<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-comments" data-href="www.example.com/blog/item-1" data-width="500" data-num-posts="10">


<?php endif; ?>
  • mridul
  • mridul's Avatar
15 Jun 2013 21:41
Enter script ads in k2 item was created by mridul

Enter script ads in k2 item

Category: English K2 Community

Hi

i want to add ads(starts with <script> tag) in k2 item.Adverts will be mixing with item texts.Problem is that k2 article not taking code starting with script tag like "<script>ad code</script>" !! plz help and suggest alternatives.

Thanks in advance
  • Guillermo Bravo
  • Guillermo Bravo's Avatar
15 Jun 2013 21:09
Replied by Guillermo Bravo on topic Item de menu "Tag" no funciona

Item de menu "Tag" no funciona

Category: Comunidad hispana oficial de K2

Hola Carlos!

Efectivamente al parecer hay una incompatibilidad entre la última versión de Joomla! y la última versión de K2 en este tema en lo particular. A la espera que el tema sea solucionado y tengamos una nueva versión estable de K2 que solucione el problema, puedes darle una solución temporal, pero ojo, que esta solución temporal requiere que te metas a la Base de Datos. Si te sientes cómodo trabajando con la base de datos, entonces no hay problema y te explico de inmediato como hacerlo.

Debes ingresar a tu base de datos y editar la tabla _menu. Una vez dentro de la tabla _menu, debes buscar el Ítem de Menú que creaste para la etiqueta, una vez localizado debes abrirlo para que puedas editarlo.

Una vez dentro, verás que en la Columna "Link" tienes el valor: "index.php?option=com_k2&view=itemlist&layout=tag&task=tag", lo único que debes hacer es agregar el nombre de tu etiqueta a esa dirección, agregando "&tag=tu_etiqueta", con eso la URL completa te quedaría:
index.php?option=com_k2&view=itemlist&layout=tag&task=tag&tag=tu_etiqueta

Guardas los cambios, recargas tu sitio y verás que el ítem de menú está funcionando perfectamente bien y ligado a la etiqueta que deseas.

Espero la ayuda te sirva. Recibe un cordial saludo y un fraternal abrazo.

Guillermo Bravo.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
14 Jun 2013 17:00 - 14 Jun 2013 17:02
Replied by Krikor Boghossian on topic [SOLVED] Is it Me or is ia a bug (K2 Tag)

[SOLVED] Is it Me or is ia a bug (K2 Tag)

Category: English K2 Community

I have already answered this on a couple of other posts but I somehow missed this. Sorry for this,

This has been fixed in the SVN version.

You can grab a copy from getk2.org/assets/svn/

The fix will be included in the next release as well of course.
  • robo
  • robo's Avatar
14 Jun 2013 15:18

[SOLVED] Is it Me or is ia a bug (K2 Tag)

Category: English K2 Community

I ran in to this too. Here is a temporary fix. Go ahead and create your menu item without the tag option selected.

Then go to your database by way of cpanel phpmyadmin and look for your joomladatabaseprefix_menu

Locate your new menu item and edit the link column for that menu item

My tag for my menu item is "education" See the example link below:

index.php?option=com_k2&view=itemlist&layout=tag&tag=education&task=tag
  • marzamemi
  • marzamemi's Avatar
14 Jun 2013 12:05
Replied by marzamemi on topic Categorize Tags like Places, People, Topics

Categorize Tags like Places, People, Topics

Category: English K2 Community

Hello Yiota,
thanks for the reply.

This is the method I'm currently using, but this way I can't display tags categories sorted by groups with their own labels in item view like: "Places: NY", "People: "Obama, Letterman", etc.

A possible solution, though very imperfect, would be putting k2 tags normally in item creation for "topics" and create in advance for each "place" or "person" a specific tag in K2 tags management.
Then I can use "text area" Extrafields "Places" and "People" to enter for example "Obama" and linking the word to its K2 tag menu item using the editor.

But I think it's a too complicated way to site editors, so I'm looking for a better and easier one.

Thanks for help.
  • Yiota
  • Yiota's Avatar
14 Jun 2013 10:53

Categorize Tags like Places, People, Topics

Category: English K2 Community

What if you put the specific words as tags for these items and then create a menu item with type K2 Tag for each tag. Then the menu would bring the items tagged with each word so it would be like actually categorizing them.
  • marzamemi
  • marzamemi's Avatar
14 Jun 2013 10:33 - 14 Jun 2013 11:00

Categorize Tags like Places, People, Topics

Category: English K2 Community

Is there a way to categorize Tags?

I need to "categorize" each "news" k2 item by places, people involved, subjects.

Then I need to create specific menu items to display places list, people list, topics list so the url must be like "mydomain/places".

I also need single listing by tag pages url being like "mydomain/people/obama".

Take a look at this page for an example of what I want to achieve:
www.cam.ac.uk/research/news/cambridge-named-academic-centre-of-excellence-in-cybersecurity-research

I tried to use searchable extrafields, but I can't create a menu item to avoid reaching the "search" view and the related url.

I also tried to sue Additional Categories for K2, but i can't create modules displaying item secondary categories sorted by places, people, etc. in item view (I use K2 BNR Content to display item tags in a module position) like in the above example.

Thanks for help.
  • Lisa D'Arcy
  • Lisa D'Arcy's Avatar
13 Jun 2013 16:24
Replied by Lisa D'Arcy on topic smart search

smart search

Category: English K2 Community

Im Also looking for a solution for this.

I need something that will search through my selected K2 categories, including extrafields and tags, and sort the results by relevance. I feel like this should be fairly straight forward, but I am unable to find a solution/extension with these capabilities anywhere!

K2 extensions work, but don't sort by relevance, and Joomla Smart Search works, but doesnt search extrafields or tags.

Anyone have any direction?

TIA!
  • Michael
  • Michael's Avatar
13 Jun 2013 11:32 - 13 Jun 2013 11:40

[HOW TO]: Captcha other than recaptcha

Category: English K2 Community

Hi
My clients and I hate recaptcha! It is simply not user friendly.
I like EasyCalcCheck Plus or Are you human (PlayThru Captcha)!

Find them on joomla extensions.

Now, to implement them on K2:

See: www.fabbricabinaria.it/en/component/kunena/playthru-captcha/151-playthru-and-k2-login#.UbmgA-tkI1c

It works beautifully: Here is the post by Fritz:


Actually, it's not so difficult. If you happen to use a custom template, you can do it in a template override. Here is a short description (for K2's registration form, tested in Joomla 2.5.9):

Step 1:
In your custom template folder, create a sub-folder hierarchy named html/com_k2. E.g. If your curstom template is in templates/bos/, then the new folders path is templates/bos/html/com_k2

Step 2:
Copy K2's original registration form from components/com_k2/templates/register.php to the previously created folder. E.g: in the example above, that would be templates/bos/html/com_k2/register.php

Step 3:
Edit the copied file and find the single line that contains the closing table tag:

</table>



Step 4: Insert the following code snippet above that line:

<?php
if (!($this->K2Params->get('recaptchaOnRegistration') && $this->K2Params->get('recaptcha_public_key'))) {
$configured_captcha = JFactory::getApplication()->getParams()->get('captcha', JFactory::getConfig()->get('captcha'));
if (!empty($configured_captcha)) {
$jcaptcha = JCaptcha::getInstance($configured_captcha, array('namespace' => 'com_users.registration'));
if (!is_null($jcaptcha)) {
JRequest::setVar('session_secret', uniqid()); // Required by playthru captcha plugin
$ccode = $jcaptcha->display("jcaptcha", "jcaptcha", "required");
echo '<tr>' . "\n";
echo '<td class="key">' . JText::_('TPL_BOS_PLAYTHRU_CAPTCHA_LABEL') . "</td>\n";
echo "<td>" . $ccode . "</td>\n";
echo "<td> * </td>\n";
echo '</tr>' . "\n";
}
}
}
?>



Remarks:
In the code snippet above, there's a translation key TPL_BOS_PLAYTHRU_CAPTCHA_LABEL which represents the descriptive text left of the playthru captcha. In order to show desired text, you must create a file named language/overrides/en-GB.override.ini and put the following line into it:
TPL_BOS_PLAYTHRU_CAPTCHA_LABEL="Whatever text you like"


The code snippet is not specific to the playthru capcha. In fact, it simply uses whatever captcha plugin is configured globally in the backend.

In order to enable it, you have to disable K2's recaptcha option in the backend.

Hope this helps...
-Fritz

Note: on a joomlart T3 site with a template from joomlart, look under your template/html/com_k2 and look for the file register.php
Replace the code for the recaptcha with the code snippet from Fritz:

replace this code with the code snippet from Fritz:
<?php if($this->K2Params->get('recaptchaOnRegistration') && $this->K2Params->get('recaptcha_public_key')): ?>
<label class="formRecaptcha"><?php echo JText::_('K2_ENTER_THE_TWO_WORDS_YOU_SEE_BELOW'); ?></label>
<div id="recaptcha"></div>
<?php endif; ?>

See our site: www.illuminatenatmed.com
  • Franz Wohlkönig
  • Franz Wohlkönig's Avatar
12 Jun 2013 18:42
Replied by Franz Wohlkönig on topic How to map content in menus?

How to map content in menus?

Category: English K2 Community

Hy,

first i was not amused bout k2 using only 1 category each article. Thinking bout Menus having more Categorys, but a klick bring you to 1menu-1catgory solves problem duplicated content.

As said, on tags, profiles i set other preferences. google give tips, no orders. at least its all about "what needs users".

Greetings
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
12 Jun 2013 10:27
Replied by Krikor Boghossian on topic Add class to image based on tag

Add class to image based on tag

Category: English K2 Community

Hello Ari,

You can use a different K2 Template for your front page and remove the tags loops. That way even if you enable the tags the output will never render.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
12 Jun 2013 10:19
Replied by Krikor Boghossian on topic [Problem] K2 component / item list in item error

[Problem] K2 component / item list in item error

Category: English K2 Community

Insert the variables $option and $view at line 29 approx. and before the closing ?> tag.


Seems you forgot that part.
  • Franz Wohlkönig
  • Franz Wohlkönig's Avatar
12 Jun 2013 06:25
Replied by Franz Wohlkönig on topic How to map content in menus?

How to map content in menus?

Category: English K2 Community

Hy,

my solution: I map every category to ist own menu > no duplicate url. But tags, profiles i use no menus, cause ist importent for users to stay in navigation; my point of view. so i live with duplicated url, check google webmaster for 404-crawls, ...

impotent is a readable url. here my settings: getk2.org/community/New-to-K2-Ask-here-first/178100-url-rewriting-K2-266#178154

Greetings
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
11 Jun 2013 17:26
Replied by Krikor Boghossian on topic [Problem] K2 component / item list in item error

[Problem] K2 component / item list in item error

Category: English K2 Community

Insert the variables $option and $view at line 29 approx. and before the closing ?> tag.

Then go to the module position you want (user 2 in this case) and change
 
  • Lalo Putelli
  • Lalo Putelli's Avatar
11 Jun 2013 15:53 - 11 Jun 2013 16:02
dos problemas was created by Lalo Putelli

dos problemas

Category: Comunidad hispana oficial de K2

el primero es, selecciono la categoria en el editor de texto de k2 voy a la pestaña de campos extras y me sale este mensaje
Aviso
Por favor, selecciona una categoría primero para recuperar sus 'Campos Extra' relacionados...

dicha categoria tiene su grupo de campos extra puesto asi que eso no es ademas en forma local los dos problemas funcinan bien.

el otro es que cuando pongo los tag me refresca la pagina y por ende no me deja ponerlos.

alguna idea?

ami se me hace que tiene que ver con algun js o algo de eso


PD: me olvidaba cuando preciono el boton leer mas, me sale un cartel que me pregunta si quiero abandonar la pagina
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
11 Jun 2013 15:15
Replied by Krikor Boghossian on topic Tag page 404s with sh404sef

Tag page 404s with sh404sef

Category: English K2 Community

Hello Nelson,

It's possible that the tag pages are acting as their own menus. If that's the case, how do I stop it?

If I am not mistaken with the components router (not K2 router) they are all rendered with a fixed URL structure (domain.com/tagname).

Also, since navigation works fine and the URLs aren't in my sitemap, so how is Google picking them up?


Btw dont you mean /tag-name/index.php/category/article ?
I don't remember sh404 adding any additional info.

Check your tag pages and tag items and also check your items for any links (maybe you where missing an http:// or a relative link causes this).
Displaying 3381 - 3400 out of 6582 results.