Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • jjfighter
  • jjfighter's Avatar
24 Feb 2011 16:33
Use tags in mod_k2_content was created by jjfighter

Use tags in mod_k2_content

Category: English K2 Community

Is there a mod or a way to select specific tags in mod_k2_content?
  • Yiota
  • Yiota's Avatar
24 Feb 2011 12:39
Replied by Yiota on topic [Solved] labels.txt

[Solved] labels.txt

Category: Simple Image Gallery PRO

SIG Pro does not generate labels.txt file if you use it for K2. Only if you use it the old way with the tags the file is generated automatically. You need to put the file manually to the path of each gallery in media/k2/galleries/gallery item id/
  • Jerry Miszewski
  • Jerry Miszewski's Avatar
23 Feb 2011 23:35

K2 Archive and Tag Cloud showing items from all categories

Category: English K2 Community

Hello,

 

On my Joomla 1.5 site running Rockettheme Mynx theme with Virtuemart 1.1.7, I am having trouble getting the K2 archive and tag cloud modules setup correctly. They are both showing items from all categories even when I select the specific categories for each of them to access.

 

Any ideas?
  • lucasdeg
  • lucasdeg's Avatar
23 Feb 2011 19:54

Error on item.php when author have only 1 article

Category: English K2 Community

The following message displays on my item view when the author of the current item has only one article published...

 

Warning: Invalid argument supplied for foreach() in /home/mixsites/sites/coronel/templates/pangea/html/com_k2/blog/item.php on line 522

 

 

Checking the item.php I have:

 

<!-- Latest items from author -->    <div class="itemAuthorLatest">        <h3><?php echo JText::_("Latest from"); ?> <?php echo $this->item->author->name; ?></h3>        <ul>            <?php foreach($this->authorLatestItems as $key=>$item): ?>            <li class="<?php echo ($key%2) ? "odd" : "even"; ?>">                <a href="<?php echo $item->link ?>"><?php echo $item->title; ?></a>            </li>            <?php endforeach; ?>        </ul>        <div class="clr"></div>    </div>    </div>  <?php endif; ?>    <?php if($this->item->params->get('itemRelated') && isset($this->relatedItems)): ?>  <!-- Related items by tag -->

 

 

Here´s a link to the live site:

 

www.emebcoronel.com/index.php?option=com_k2&view=item&id=60:mat%C3%A9ria-do-1%C2%BA-bimestre

 

Can anyone help me solve this problem?? Thanks
  • Pieter
  • Pieter's Avatar
23 Feb 2011 16:00
Front page featured items was created by Pieter

Front page featured items

Category: English K2 Community

I've been using and tweaking K2 for a while now, but am completely at a loss.

 

Here's the idea:

I made a category home and subcategories in it, which contain all the items. Then I set the home category as a standard menu item showing only featured items from the different subcategories. This works. So far so good.

 

Side note: on certain pages, my main menu is replaced by another menu, so it isn't always visible.

 

However, when I click on read more on one of the featured items on the frontpage, the menu disappears, not even being replaced by the other menu. When I locate the featured item within it's subcategory, or through its tags, the menu remains visible.

 

When I show my main menu on all pages, it remains visible when I click on a featured item on the frontpage, the problem 'disappears', although I do want the menu to be hidden on certain other pages, so it is not a perfect solution?

 

Is there anybody out there who might have a solution to this problem?
  • René Sluiter
  • René Sluiter's Avatar
22 Feb 2011 17:57
Replied by René Sluiter on topic Search - character limit

Search - character limit

Category: English K2 Community

found a workaround to search for three letter K2 items:

give your items a tag with a underscore at the end.

 

If you got an item like 'Car' give it the tag 'car_'.

 

If you search for car it searches for all 4+ letter words with *car* in it, so with the fourth character being an underscore the tags are getting indexed and are used when using the search!
  • Pieter
  • Pieter's Avatar
22 Feb 2011 00:28
Replied by Pieter on topic K2 Tag display module in grid view [solved]

K2 Tag display module in grid view [solved]

Category: English K2 Community

Thank you so much for the hack. It works like a charm. Most of the time...

 

In some instances, I experience that an item has a lot of white space above it, because it clears both sides.

I use two columns. If the second item is longer than the first one, the third only starts below the second one, not directly below the first, which would be perfect:

 

1    2

1    2

      2

3    4

3    4

3

5    6

5    6

etc.

 

Is there a way to tweek it so that items start directly after the item above it, not after the item diagonally above it?
  • JustBe
  • JustBe's Avatar
21 Feb 2011 22:26
Replied by JustBe on topic How can I keep the with bar in my post?

How can I keep the with bar in my post?

Category: English K2 Community

 

Ok, thanks for answer.

I think it is a bit too difficult at this moment to adjust this file.

I mean, I want to apply it for just one catagory.

If it is simple, then let me know. Otherwise I use what I have.

I have found the relevant part about itemToolbar.

 

___________________________________________________________

 

<div class="itemToolbar">        <ul>            <?php if($this->item->params->get('itemFontResizer')): ?>            <!-- Font Resizer -->            <li>                <span class="itemTextResizerTitle"><?php echo JText::_('font size'); ?></span>                <a href="#" id="fontDecrease">                    <span><?php echo JText::_('decrease font size'); ?></span>                    <img src="components/com_k2/images/system/blank.gif" alt="<?php echo JText::_('decrease font size'); ?>" />                </a>                <a href="#" id="fontIncrease">                    <span><?php echo JText::_('increase font size'); ?></span>                    <img src="components/com_k2/images/system/blank.gif" alt="<?php echo JText::_('increase font size'); ?>" />                </a>            </li>            <?php endif; ?>            <?php if($this->item->params->get('itemPrintButton')): ?>            <!-- Print Button -->            <li>                <?php if(JRequest::getCmd('print')==1): ?>                <a class="itemPrintLink" href="<?php echo $this->item->printLink; ?>" onclick="window.print();return false;">                    <span><?php echo JText::_('Print'); ?></span>                </a>                <?php else: ?>                <a class="modal itemPrintLink" href="<?php echo $this->item->printLink; ?>" rel="{handler:'iframe',size:{x:900,y:500}}">                    <span><?php echo JText::_('Print'); ?></span>                </a>                <?php endif; ?>            </li>            <?php endif; ?>            <?php if($this->item->params->get('itemEmailButton') && (!JRequest::getInt('print')) ): ?>            <!-- Email Button -->            <li>                <a class="itemEmailLink" onclick="window.open(this.href,'win2','width=400,height=350,menubar=yes,resizable=yes'); return false;" href="<?php echo $this->item->emailLink; ?>">                    <span><?php echo JText::_('E-mail'); ?></span>                </a>            </li>            <?php endif; ?>            <?php if($this->item->params->get('itemSocialButton') && !is_null($this->item->params->get('socialButtonCode', NULL))): ?>            <!-- Item Social Button -->            <li>                <?php echo $this->item->params->get('socialButtonCode'); ?>            </li>            <?php endif; ?>            <?php if($this->item->params->get('itemVideoAnchor') && !empty($this->item->video)): ?>            <!-- Anchor link to item video below - if it exists -->            <li>                <a class="itemVideoLink k2Anchor" href="<?php echo $this->item->link; ?>#itemVideoAnchor"><?php echo JText::_('Video'); ?></a>            </li>            <?php endif; ?>            <?php if($this->item->params->get('itemImageGalleryAnchor') && !empty($this->item->gallery)): ?>            <!-- Anchor link to item image gallery below - if it exists -->            <li>                <a class="itemImageGalleryLink k2Anchor" href="<?php echo $this->item->link; ?>#itemImageGalleryAnchor"><?php echo JText::_('Image Gallery'); ?></a>            </li>            <?php endif; ?>            <?php if($this->item->params->get('itemCommentsAnchor') && $this->item->params->get('itemComments') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>            <!-- Anchor link to comments below - if enabled -->            <li>                <?php if(!empty($this->item->event->K2CommentsCounter)):?>                    <!-- K2 Plugins: K2CommentsCounter -->                    <?php echo $this->item->event->K2CommentsCounter; ?>                <?php else:?>                    <?php if($this->item->numOfComments > 0): ?>                    <a class="itemCommentsLink k2Anchor" href="<?php echo $this->item->link; ?>#itemCommentsAnchor">                        <span><?php echo $this->item->numOfComments; ?></span> <?php echo ($this->item->numOfComments>1) ? JText::_('comments') : JText::_('comment'); ?>                    </a>                    <?php else: ?>                    <a class="itemCommentsLink k2Anchor" href="<?php echo $this->item->link; ?>#itemCommentsAnchor">                        <?php echo JText::_('Be the first to comment!'); ?>                    </a>                    <?php endif; ?>                <?php endif; ?>            </li>            <?php endif; ?>        </ul>
  • Nicholas Chancy
  • Nicholas Chancy's Avatar
21 Feb 2011 22:09

Author Avatars in the Categorly List view in 2.4.1

Category: English K2 Community

Hello -

 

I am attempting to get the author avatar to show next to the item title in the category list view.

I followed the steps in this post by Simon:

simon.getk2.org/index.php?option=com_k2&view=itemlist&task=tag&tag=avatar&Itemid=18

 

but was unsuccessful. Has anyone managed to get Avatars to display in the category list view, and if so, would you be willing to share the code?

 

Simon - is this code valid for 2.4.1 or is there an update to this?

 

Thanks,

 

 
  • James Anderson
  • James Anderson's Avatar
21 Feb 2011 21:45
introtext stripping html problems was created by James Anderson

introtext stripping html problems

Category: English K2 Community

I'm trying to move the readmore to the end of the last sentence of the itro text in category view. I have managed to do it for all views but one. The only thing i can see that is different is that the intro text for most popular item is wrapped <p> tags, but I have set K2 to strip out all br, p, tags in the intro text. And it has applied to all but most popular. I am modifying the mod_k2_content default.php to change the readmore position.

 

any reason this wouldn't work?
  • patchdoo
  • patchdoo's Avatar
21 Feb 2011 11:23

Adjust spacing for K2 content tag module - google chrome

Category: English K2 Community

Just today I noticed that the spacing for my K2 content tag module in google chrome. It works perfectly in Firefox and Explorer, but not with chrome.

 

I was able to fix this issue before, but now I experience it again.community.getk2.org/forum/topics/line-spacing-or-height-in

I don't know why. I haven't changed anything to the code since then.

 

Anyone experiencing the same?
  • canderson
  • canderson's Avatar
20 Feb 2011 19:52
Replied by canderson on topic How can I move the photo caption?

How can I move the photo caption?

Category: English K2 Community

So, so, so awesome. I cannot thank you enough!

One more issue that's occurring, and this happened when I made the initial change (aka it was happening before your changes). If you look at the page linked in my original post, you'll see the text is red and has a mouseover type of effect. It should be black and static (see: www.witf.info/news/new-school-program-aims-to-help-troubled-teens).

Can you see why this is happening? I can't figure it out - it's happening only when a caption is applied apparently.

 

William White said:

Chris,

I think i have it fixed for you, but take a look and let me know what you think.

I created a k2 override for the template you were using and wrapped the image caption with a center and a bold html tag

Take a look at the category Creative Zone and at the top right notice default has been changed to ItemImage which is the override i created.

With ftp take a look at root/templates/yourtemplate/html/com_k2/templates/ItemImage folder at the item.php file

The default item.php now resides there in the html folder as well and no changes have been made to the core.

Please let me know what you think
  • william white
  • william white's Avatar
20 Feb 2011 06:25
Replied by william white on topic How can I move the photo caption?

How can I move the photo caption?

Category: English K2 Community

Chris,

I think i have it fixed for you, but take a look and let me know what you think.

I created a k2 override for the template you were using and wrapped the image caption with a center and a bold html tag

Take a look at the category Creative Zone and at the top right notice default has been changed to ItemImage which is the override i created.

With ftp take a look at root/templates/yourtemplate/html/com_k2/templates/ItemImage folder at the item.php file

The default item.php now resides there in the html folder as well and no changes have been made to the core.

Please let me know what you think
  • Paolo Orabona
  • Paolo Orabona's Avatar
19 Feb 2011 01:15
Replied by Paolo Orabona on topic Edit Print Pop-up

Edit Print Pop-up

Category: English K2 Community

Thanks! I've put this instructions in the k2.css and it works:

 

#k2Container {padding:0 0 24px 0;}

body.contentpane #k2Container {padding:16px;} /* used in popups */

body.contentpane #k2Container itemAuthorLatest{display:none;}

body.contentpane #k2Container div.itemRatingBlock{display:none;}

body.contentpane #k2Container div.itemHeader span.itemAuthor{display:none;}

body.contentpane #k2Container ul.sig-container{display:none;}

body.contentpane #k2Container span.itemHits{display:none;}

body.contentpane #k2Container div.itemCategory{display:none;}

body.contentpane #k2Container div.itemTagsBlock{display:none;}

body.contentpane #k2Container div.itemSocialLinksBlock{display:none;}

body.contentpane #k2Container div.itemAuthorLatest{display:none;}

body.contentpane #k2Container div.itemRelated{display:none;}

body.contentpane #k2Container span.itemDateModified{display:none;}

body.contentpane #k2Container span.itemTextResizerTitle{display:none;}

body.contentpane #k2Container div.itemToolbar ul li a#fontDecrease img{display:none;}

body.contentpane #k2Container div.itemToolbar ul li a#fontIncrease img{display:none;}

body.contentpane #k2Container table.itemAudio{display:none;}

 

Thanks a lot for your tip! :D
  • Yves Mulkers
  • Yves Mulkers's Avatar
18 Feb 2011 20:48
create menu based upon Extra field was created by Yves Mulkers

create menu based upon Extra field

Category: English K2 Community

Is there a way in K2 to create a lenu based upon an extra field?

 

I know this is possible for authors, tags and ctaegories, but wanted to have more filter criteria.
  • Toshe
  • Toshe's Avatar
18 Feb 2011 07:37

Inserting (code or) social bookmark buttons in category view?

Category: English K2 Community

Here is what I need:

 

Where exactly (which template file and what position) to insert the social button codes I have? When I insert them anywhere in the layout inside category_item.php or category.php my whole page design suddenly disappears, and only the first item is shown, anything after that (including tags) is gone...

 

It can't be that hard to add something else to show under an item in category view can it???

 

Other than that I made some url functions and codes that I want to test if they work in the category view. If they do and i fix the issue I have which I explained I will make a tutorial on how to replace the social sharing buttons in k2 with any buttons you want and with working url and title and image imported to the service (if it supports title or image)...

 

here is the site I am working on:

 

thewordforme.org/test1/

 

I will leave it messed up for the moment so that you can see the problem...

 

also you can click on the item that is shown to see the actual working item view that isn't messed up by the social buttons.

 

The social buttons work on the frontpage too by the way, well all except the twitter and reddit link to the correct item URL.

 

Configuration: Joomla 1.5.22 with probably latest version of K2

 

Please help, thanks in advance.

Toshe.

 

EDIT 1: I inserted A simple line of text and the page breaks again, so it's not the code from the buttons! (image provided in attachment)

 
  • Brett Johnson
  • Brett Johnson's Avatar
18 Feb 2011 01:39

mod_k2_content show rating star system for articles

Category: English K2 Community

Hello everyone, I'm using mod_k2_content on the homepage of my site to display articles.  I want to show the article star rating system in the module to the right of where it says the number of hits.

 

I'm wondering if anyone knows what code I would insert into the modules/mod_k2_content/tmpl/Default/default.php file

 

I found the article rating code below in the components/com_k2/default/item.php file and played around with it a little but couldn't get the rating to match up with the articles rating.

 

<?php if($this->item->params->get('itemRating')): ?>    <!-- Item Rating -->    <div class="itemRatingBlock">        <span><?php echo JText::_('Rate this item'); ?></span>        <div class="itemRatingForm">            <ul class="itemRatingList">                <li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->item->id; ?>" style="width:<?php echo $this->item->votingPercentage; ?>%;"></li>                <li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('1 star out of 5'); ?>" class="one-star">1</a></li>                <li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('2 stars out of 5'); ?>" class="two-stars">2</a></li>                <li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('3 stars out of 5'); ?>" class="three-stars">3</a></li>                <li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('4 stars out of 5'); ?>" class="four-stars">4</a></li>                <li><a href="#" rel="<?php echo $this->item->id; ?>" title="<?php echo JText::_('5 stars out of 5'); ?>" class="five-stars">5</a></li>            </ul>            <div id="itemRatingLog<?php echo $this->item->id; ?>" class="itemRatingLog"><?php echo $this->item->numOfvotes; ?></div>            <div class="clr"></div>        </div>        <div class="clr"></div>    </div>    <?php endif; ?><br>

 

 

If anyone has done this before any could provide the coding that would be great.  I think putting it on the homepage it cant find the itemid to retrieve the rating from but that's just a guess.

 

thanks,

brett
  • Paolo Orabona
  • Paolo Orabona's Avatar
17 Feb 2011 13:42
Edit Print Pop-up was created by Paolo Orabona

Edit Print Pop-up

Category: English K2 Community

Hi everyone, I'm newbie with K2 and I've a problem. I would like to remove some items from the article for printing like "related items by tag", "social sharig", " Tagged under", "rated item", ecc.

 

This is an current image of the print pop-up:

 

Thanks
  • Idan Wizen
  • Idan Wizen's Avatar
17 Feb 2011 12:26

[Help needed !] Creating a tag filter on category page

Category: English K2 Community

Hello,

 

II'm quiet new with K2 and I have (for me) a hudge problem.

 

I'd like to have a page including all the articles of a category (that's Ok ! ) with on top the list of the tags used in the different article, and of course a linked to a page showing only the matching tag in the previous category.

 

I could make a simple joomla menu with link filtering category appearing only on the page of the category... But this is totally manually ! I'd rather to have something a bit more dynamic...And not having to do 100 differents menu...

 

Maybe, I'm taking the problem in a wrong way...I'll try to explain a bit more my project.

 

I have a list of restaurant which have two parameters : city and "kind of restaurant". The idea was to tag the differents restaurant with "the kind of restaurant" and assigned each one in a category (the city.)

 

So, if I'm looking for a restaurant in NYC, i can get the list of all the restaurant. But I'd like a veggie restaurant...I can filtered only the one IN NYC who have it...

 

So I feel a bit lost, and I would be happy to get some help or at least a lead !

 

Thank you very much,

 

Idan
Displaying 5281 - 5300 out of 6582 results.

Powered by Kunena Forum