COMMUNITY FORUM
Search Results (Searched for: k2 Tag)
- Silence G
Create category that displays certain tag results
Category: English K2 Community
To do this, create an new menu item in Menu Manager and select K2 Tag as Menu Item Type and then use the filter category option in Basic Options.
- Silence G
Show Author in Tag listing
Category: English K2 Community
<?php if(empty($this->item->created_by_alias)): ?>
<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
<?php else: ?>
<?php echo $item->authorName; ?>
<?php endif; ?>
But its not printing the author.
- Silence G
Tag list limits
Category: English K2 Community
Select Menu Item Type > K2 TAG
Select tag in Required Settings
Click on Basic Options > Filter categories
Hope that helps
- william white
relation between types of content
Category: English K2 Community
- Nikolas Tichy
Frontend änderungen
Category: Offizielle deutsche Gemeinschaft
Hab noch 3 Probleme ohne die meine Seite nicht läuft:
1. Ich benutze das "Mini K2" Modul zum anzeigen der Artikel. Ich möchte, dass meine Artikel aber auch auf der "User Page", "Item Category List" und "Tag View" mit Mini K2 angezeigt wird. Ich weiss nicht welchen code ich für die K2 Templates benutzen soll.
2. Ich möchte einen "Delete" button neben dem "Cancel" und "Close" buttons im Add/Edit Item bereic haben. Habe diesen Code gefunden /administrator/components/com_k2/models/items.php - Zeile 703 welche benutzt wird um Items im Backend zu löschen.
3. Ich möchte die "Published: NO YES" radiobutton im frontend "edit/add" item nicht sichtbar machen. das Item soll immer "published" werden. welcher code gehört ins "itemform.php in /components/com_k2/templates/default/"
Ich hoffe mir kann jemand helfen.
danke,
nik
- Kannan Naidu Venugopal
Articles
Category: English K2 Community
You need to separate your article with a readmore hr tag, use the readmore button in your editor to split the contents.
Alternate way is to set the Use one editor window for introtext & fulltext to NO in K2 Parameters -> Advanced tab
- Business Antidote
probleme de favicon sur page item
Category: Communauté française K2
j'ai remarqué que je n'avais pas de favicon sur mes pages d'éléments alors que j'en ai sur toutes les autres.
(last item, catégory...)
j'ai aussi remarqué que ce favicon pouvez réapparaître sous 2 conditions:
- Si je désactive dans les options d'affichage de l'élément 'Bouton social' comme ShareThis, AddThis etc.
- Ou si je remplace le code "Sharethis" par un code "Addthis" dans les parametres "social" de K2
Donc par déduction le problème vient certainement de "ShareThis" mais cela m'ennuie de le remplacer par "Addthis" car ce service ne me propose pas autant de réseaux sociaux en mode "partage".
Voici mon site www.the-videoclip-maker.fr (qui n'est pas officielement ouvert)
Avez-vous une idée ?
Merci
- Peter Grube
Displaying certain Extra Fields on Category Item
Category: English K2 Community
Strange it's not working for you, it works on both my localhost / wamp server & on my Live site. Here's my cat_item.php overide code the Extra Field Alias is Price.
- Pim Rozendaal

19 Dec 2012 13:31 Replied by Pim Rozendaal on topic Make a alphabetical list with k2 articles Make a alphabetical list with k2 articles
Category: English K2 Community
Okay,
But this is not what I mean.
I wanted the articles in a alpabetical list, not the catagory's.
Is there a option for this? - Peter Grube
User choose K2 User Group during registration
Category: English K2 Community
The only way I could achieve this functionality was by using Community Builder to handle both the Registration & Profile but although the CB is free you need to purchase either their Conditionals plugin or alternately get the third party Community Builder Profile Pro which is able to create different profile types & Registration forms.
The only drawback is that although you can select different user types during registration, & K2 adds them to your list of users, it doesn't automatically add them to your K2 User Groups. So they cannot add items until you add them manually. Which in my case is ok, because I need to approve the users anyway.
While I am at it I thought I would ask for some feedback from the Admins here, this link mentions the same problem about syncing CB & K2 but it's over 2 yrs old, I am hoping I am missing something.
One last thing in the CB Forum has suggested work around for this but my PHP skills are limited & I am getting the dreaded white screen of death.
It says around line 957 begins the function "function saveRegistration( $option )", at the end of this function, before the "}" sign insert this code (it must be a part of the function) ...
Could someone point out where exactly is the end of this function.
- cloacker

18 Dec 2012 10:14 K2 plugins in layout view options for tag listings was created by cloacker K2 plugins in layout view options for tag listings
Category: English K2 Community
Hello! Today i was quite surprised when i looked into K2 parameters and under Layout & view options for tag listings there was no display plugins option. Why is that? I am working on a project with joomla 1.5, k2 and k2mart. And i want k2mart plugin or any other plugin to be displayed in tag listings for chosen items.
I've been poking around tag.php file, where i tried to insert the code below (didn't work):
- Nikolas Tichy

16 Dec 2012 22:22 User must add an Image!! was created by Nikolas Tichy User must add an Image!!
Category: English K2 Community
Hi, I want that user must add an Image (With the "Image Tab" from the Editor). Does somebody know what code I have to put in there? herese the section from the itemform.php document
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 {
syncExtraFieldsEditor();
\$K2('#selectedTags option').attr('selected', 'selected');
submitform( pressbutton );
}
}
- Bryce Stock

16 Dec 2012 20:47 - 17 Dec 2012 20:35 Add default text to Item Editor? was created by Bryce Stock Add default text to Item Editor?
Category: English K2 Community
See bottom post for expatiation.
I am new to K2 but I've managed to get almost everything up and running for a site I'm making on a wamp server. There are only two things left to set up. Unfortunately I'm not sure how to set up either of them. So I'm hoping you guys in the k2 community can help!
1. For the front end editor, I need to set specific template files to specific catagories.
2. I also need to set up example content in the front end editor that's different for each category. This will give the users adding content to the site via front end directions and well as a template of sorts to get them started.
How might I best accomplish these two things? - jarod159

15 Dec 2012 13:44 show all articles by clicking on my extra field... was created by jarod159 show all articles by clicking on my extra field...
Category: English K2 Community
Hi at all,
i'm working on a new site for a magazine.
I'm using k2 with extra fields and i need an information...
i have two extra fields: name - surname of the author of content.
Attention, he isn't a Joomla user or editor ...
Now i need to find a solution to show all articles written by the same author by clicking on the surname extra field.
for example:
I'm reading article 1 written by john doe...
if i click on "doe" the system show me all articles written by john doe
may be it's similar to k2 tags ... but i don't want use tags... :(
Please help !!!!
thanks a lot ... - Oleg

15 Dec 2012 13:37 Replied by Oleg on topic K2 Tools > Tag Cloud Not Working? K2 Tools > Tag Cloud Not Working?
Category: English K2 Community
Sorry for my english, but I also have a problem with the tags. K2-TOOLS module can filter the tag cloud on the material categories. Ie as I understand, displays the selected tag of only those categories that I will point out. On your demo site, it seems like a mistake. Look tag Apple.
floomby.ru/s1/EJP3u
Tooltip shows that should open only 4 material, and you'll see two pages of 10 materials for each, from different (all) categories.
The second question. How to customize the display of material handling for the tag? Feel like that was the standard form, which is apparently the user when he walks into categories.
In advance, thank you very much. - marieta

14 Dec 2012 18:04 Replied by marieta on topic Error message 403 - K2_ALERTNOTAUTH Error message 403 - K2_ALERTNOTAUTH
Category: English K2 Community
Arvind Ragunathan wrote: You can try this:
I am using Joomla v2.5.6 and K2 v2.5.7
If your K2 category is set to registered and you have assigned a menu item to the registered category then you will receive "403 - You are not authorized to view this resource"
To resolve this issue we need to manually change the code on the backend.
1) Go To [SITE ROOT]\components\com_k2\views\itemlist\view.html.php
2) Find the code "JError::raiseError(403, JText::_('K2_ALERTNOTAUTH'));" which is contained in
$user = &JFactory::getUser();
if(K2_JVERSION=='16'){
if (!in_array($category->access, $user->authorisedLevels())) {
JError::raiseError(403, JText::_('K2_ALERTNOTAUTH'));
}
$languageFilter = $mainframe->getLanguageFilter();
$languageTag = JFactory::getLanguage()->getTag();
if($languageFilter && $category->language!=$languageTag && $category->language!='*') {
return;
}
}
3) Replace the code "JError::raiseError(403, JText::_('K2_ALERTNOTAUTH'));" with:
if ($this->error->code = '403') {
$return = $_SERVER;
$return = base64_encode($return);
$uri = JRoute::_("index.php?option=com_users&view=login&return=$return");
header('Location:'.$uri); die();
}
4) Final code should look like:
$user = &JFactory::getUser();
if(K2_JVERSION=='16'){
if (!in_array($category->access, $user->authorisedLevels())) {
/*JError::raiseError(403, JText::_('K2_ALERTNOTAUTH'));*/
if ($this->error->code = '403') {
$return = $_SERVER;
$return = base64_encode($return);
$uri = JRoute::_("index.php?option=com_users&view=login&return=$return");
header('Location:'.$uri); die();
}
}
$languageFilter = $mainframe->getLanguageFilter();
$languageTag = JFactory::getLanguage()->getTag();
if($languageFilter && $category->language!=$languageTag && $category->language!='*') {
return;
}
}
5) This should resolve the issue.
6) You can do the same for [SITE ROOT]\components\com_k2\views\item\view.html.php
7) Find the code "JError::raiseError(403, JText::_('K2_ALERTNOTAUTH'));" which is contained in
if(K2_JVERSION=='16'){
if (!in_array($item->access, $user->authorisedLevels()) || !in_array($item->category->access, $user->authorisedLevels())) {
JError::raiseError(403, JText::_('K2_ALERTNOTAUTH'));
}
}
8 Replace the code "JError::raiseError(403, JText::_('K2_ALERTNOTAUTH'));" with:
if ($this->error->code = '403') {
$return = $_SERVER;
$return = base64_encode($return);
$uri = JRoute::_("index.php?option=com_users&view=login&return=$return");
header('Location:'.$uri); die();
}
9) Final code should look like:
if(K2_JVERSION=='16'){
if (!in_array($item->access, $user->authorisedLevels()) || !in_array($item->category->access, $user->authorisedLevels())) {
/*JError::raiseError(403, JText::_('K2_ALERTNOTAUTH'));*/
if ($this->error->code = '403') {
$return = $_SERVER;
$return = base64_encode($return);
$uri = JRoute::_("index.php?option=com_users&view=login&return=$return");
header('Location:'.$uri); die();
}
}
}
i didn't find this code!!!!
some one have another solution?? - Peter Grube

14 Dec 2012 14:23 Replied by Peter Grube on topic Different size images within one category? Different size images within one category?
Category: English K2 Community
No problems, maybe i didn,t explain to good.
First in K2 parameters, click on the Content Tab then scroll down to Content Cleanup - make sure Introtext HTML cleanup (tag strip) is set to - No.
And make sure Fulltext HTML cleanup (tag strip - set to No
Then go to Edit Item and add the image you want to use at the top before the text, I used the image button at the bottom of editor.
Click at the end of the part of you text you want to display in Cat view. then click enter so you start a new line, the click on the readmore button on bottom of editor.
Your code should then look something like this.
- Peter Grube

14 Dec 2012 13:50 - 14 Dec 2012 13:53 Replied by Peter Grube on topic Different size images within one category? Different size images within one category?
Category: English K2 Community
Hi Simone,
I am sorry your having trouble but I guarantee that method works you can see it Here
All setting are done in the Item Edit Page, just make sure k2 setting are set to not strip tags from categories
- Florian

14 Dec 2012 08:24 "registriert" verschiedene Auswirkungen bei K2 was created by Florian "registriert" verschiedene Auswirkungen bei K2
Category: English K2 Community
Hallo zusammen.
Ich hab ein seltsames Problem.
Ich hab gerade meine Seite mit Joomla 2.5 und K2 neu aufgesetzt. Ein paar Tage hatte ich Probleme damit, daß Nutzer mit dem Status "registriert" keine Artikel in K2 erstellen konnten. Das Problem hatte sich dann geklärt, es lag am Template.
Nun habe ich für mich selbst zum Testen als "registriert" angemeldet. Alles hat wunderbar funktioniert. Dann hat sich ein paar Tage später ein neuer User angemeldet und gesagt er bekommt den Fehler 403 wenn er einen Artikel veröffentlichen möchte. Daraufhin hab ich mich auch nochmal angemeldet und Tatsache: Fehler 403. Mit dem ersten Zugang ging es aber noch. Alle 3 haben aber den gleichen Status "registriert". Kann mir jemand sagen, wie das sein kann?
Vielen Dank für Eure Mithilfe. - Christy

14 Dec 2012 02:08 K2 Items Issues was created by Christy K2 Items Issues
Category: English K2 Community
I just installed K2 and have a few issues I'm hoping one of you experts can help me with. I imported all of my joomla content but when i unpublished the joomla articles all of the existing articles on the front end went to 404 even though they are published under K2. I do have SH404sef installed.
Also, since the K2 install, the one new article I have published strictly through K2 that does not exist in the Joomla articles is inheriting all the modules that are set for only the home page. The same is true of catagory pages.
Lastly, I am using the Graffito RocketTheme and have K2 styling enabled in Gantry but it is not applying to the items. It does style the joomla articles correctly. Any idea why?
here's my site: flipflopsabroad.com
Thanks for any and all help! Displaying 3881 - 3900 out of 6582 results.