Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Suba
  • Suba's Avatar
17 May 2013 18:07
Replied by Suba on topic How to strip tags in Module K2 comments

How to strip tags in Module K2 comments

Category: English K2 Community

Yes.
 <?php if($params->get('commentLink')): ?> <a href="<?php echo $comment->link; ?>"><span class="lcComment"><?php echo strip_tags($comment->commentText); ?></span></a> <?php else: ?> <span class="lcComment"><?php echo strip_tags($comment->commentText); ?></span> <?php endif; ?>

I have confirmed that the template overriding is working by putting some string inside <span class="lsComment"></span>
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
17 May 2013 17:44
Replied by Krikor Boghossian on topic How to strip tags in Module K2 comments

How to strip tags in Module K2 comments

Category: English K2 Community

Did you strip tags for both instances?
  • Suba
  • Suba's Avatar
17 May 2013 16:53
Replied by Suba on topic How to strip tags in Module K2 comments

How to strip tags in Module K2 comments

Category: English K2 Community

Yiota Ziaggou wrote: You could make a template override for the module and comment out the link part.

What should I edit?
I tried to add strip_tags() to $comment->commenText, but that didn't work.

<?php if($params->get('commentLink')): ?> <a href="<?php echo $comment->link; ?>"><span class="lcComment"><?php echo $comment->commentText; ?></span></a> <?php else: ?> <span class="lcComment"><?php echo $comment->commentText; ?></span> <?php endif; ?>
  • Uldis
  • Uldis's Avatar
16 May 2013 13:36

[SOLVED] How to show extra fields for related items

Category: English K2 Community

But If I use k2 content module I can only select specific items or items from category.

I would also need to create new module for each item :(

I really needed related by tag functionality because each items will have different related items.

Is there really no way? Related items by tag can get almost any information using
<?php echo $item->introtext; ?>

It just doesn't work with extra fields :(
  • Lech Zbigniew Dutkiewicz
  • Lech Zbigniew Dutkiewicz's Avatar
16 May 2013 10:46
How to get tag's id in url? was created by Lech Zbigniew Dutkiewicz

How to get tag's id in url?

Category: English K2 Community

Hi,

My site uses tag's cloud as one of sidebar menus.
I need to be able to add "active" class to chosen option when viewing items list by tag.
I tried to copy solutions from category menu in K2 tools but this needs category id in url to compare. How can I implement it to my site?

Here's what I made with tags.php (now it compares by tag-name, but JRequest gets it without polish letters and without spaces):
<div id="k2ModuleBox<?php echo $module -> id; ?>" class="k2TagCloudBlock<?php if ($params -> get('moduleclass_sfx')) echo ' ' . $params -> get('moduleclass_sfx'); ?>"> <?php $tagname = JRequest::getCmd('tag'); $task = JRequest::getCmd('task'); $output; $output .= '<ul class="level' . $level . ' menu">'; foreach ($tags as $tag) : if (!empty($tag -> tag)) : if (($task == 'tag')&& ($tagname == $tag -> tag)) { $active = 'active'; } else { $active = ''; } $output .= '<li class="' .$active.'" "'. $tag -> tag . '"><a href="' . $tag -> link . '">' . $tag -> tag . '</a></li>'; endif; endforeach; $output .= '</ul>'; echo $output; ?> <div class="clr"></div> </div>
  • Yiota
  • Yiota's Avatar
16 May 2013 08:55

Different images for item in blog catagory and full text

Category: English K2 Community

If you are using K2 v.2.6.5 and above you could set up some extra fields, type: image and load the extra images you like through them.
  • Yiota
  • Yiota's Avatar
16 May 2013 08:26
Replied by Yiota on topic How to strip tags in Module K2 comments

How to strip tags in Module K2 comments

Category: English K2 Community

You could make a template override for the module and comment out the link part.
  • Suba
  • Suba's Avatar
15 May 2013 22:28

How to strip tags in Module K2 comments

Category: English K2 Community

I have created a latest comment module with Module K2 comments. Is there an option to prevent it from parsing html in the module? I don't want the links to be clickable in the module, all should appear as plain text.
  • Chandan Kumar
  • Chandan Kumar's Avatar
15 May 2013 13:29 - 24 May 2016 16:54
Replied by Chandan Kumar on topic Item Title h2 to h1

Item Title h2 to h1

Category: English K2 Community

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.

geekflare.com/change-title-header-to-h1-joomla/
  • Yiota
  • Yiota's Avatar
15 May 2013 10:05

[SOLVED] Tag Results - Items per page setting?

Category: English K2 Community

There is an option through the K2 General Parameters under Layout & view options for tag listings, the "Item count for tag listings". You can change that to your preference.
  • Tom
  • Tom's Avatar
14 May 2013 13:56
Replied by Tom on topic [SOLVED] Author in Tag Listings

[SOLVED] Author in Tag Listings

Category: English K2 Community

I have no idea whether this is the most sensible way of fixing the above - very much open to correction...

But on the off chance anyone has similar requirements, I have been able to hide the "JUser" text by wrapping it in <p> tags and hiding with CSS.

Final code to insert (can also confirm this works with filter.php and presumably generic.php) is:
 
  • Tom
  • Tom's Avatar
14 May 2013 12:12
Replied by Tom on topic [SOLVED] Author in Tag Listings

[SOLVED] Author in Tag Listings

Category: English K2 Community

Thanks Krikor, that's great - I'm 99% of the way now.

I've got the following code in tag.php:
<div class="tagauthoredit"> <?php echo $user = JUser::getInstance($item->created_by) ?> <a href="<?php echo $link = K2HelperRoute::getUserRoute($user->id) ?>"><?php echo JUser::getInstance($item->created_by)->name; ?></a> </div>

The links are working perfectly.... but I'm getting "JUser" before the author name/link.

I'm terrible with PHP - my apologies. Is there anything you can spot above that would need to be changed?

I have tried taking a few bits out, but it breaks the link and gives an error of "JUser: :_load: Unable to load user with ID: xxxx"

Thanks again for your help thus far.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
14 May 2013 11:21
Replied by Krikor Boghossian on topic [SOLVED] Author in Tag Listings

[SOLVED] Author in Tag Listings

Category: English K2 Community

Hello Tom,

You should put this code in tag.php ( in your template overrides ).
For the search result the template file used is generic.php indeed but since I have not uses K2 filter before, I think the extension's developers will provide you with a better answer.

As for the links you use the following variables and echo them inside your HTML code
 
  • Jake Knight
  • Jake Knight's Avatar
14 May 2013 01:26
Replied by Jake Knight on topic K2 Plugins (specifically K2Mart) on Tag and Search

K2 Plugins (specifically K2Mart) on Tag and Search

Category: English K2 Community

I've done this now... Ticket number 7783
  • BBC
  • BBC's Avatar
13 May 2013 17:04
Replied by BBC on topic K2 Tools - Tag cloud - Styling

K2 Tools - Tag cloud - Styling

Category: English K2 Community

I dont use is foremost for modules, but for K2 categories styling. Then also for modules too.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
13 May 2013 17:00
Replied by Krikor Boghossian on topic K2 Tools - Tag cloud - Styling

K2 Tools - Tag cloud - Styling

Category: English K2 Community

Unfortunately I cannot help you with Css4K2. This plugins is not developed by us and I have never used it personally so I do not have any experience on it.

I am not sure you really need this plugin, why don't you try disabling this plugin and moving the k2.css file to your template's /css folder.

For different instances and views of the modules you can simply use the module class suffix.

As for the JS you can select from the backend to work with the remote 1.8 version ( although I think this has been fixed ).
  • BBC
  • BBC's Avatar
13 May 2013 16:18
Replied by BBC on topic K2 Tools - Tag cloud - Styling

K2 Tools - Tag cloud - Styling

Category: English K2 Community

JS conflicts is it not. I disabled all modules that call JS scripts, disabled/enabled K2 JS. Plus implemented this hack for K2 jQuery.

code.google.com/p/getk2/issues/detail?id=533
  • BBC
  • BBC's Avatar
13 May 2013 15:32 - 13 May 2013 15:35
Replied by BBC on topic K2 Tools - Tag cloud - Styling

K2 Tools - Tag cloud - Styling

Category: English K2 Community

I dont know what is happening.

Things i am 100% sure for:

- Override CSS is loaded, and path is OK, all changes in code respected.
- Default k2.css is not loaded, never doesnt matter how i play with options (it is good because i want it that way to exclude conflict between classes)

I just moved my Tag module to same place where other 4 K2 Content modules are and even those 4 lost a little bit of its styling. Not completely, some half-half results. And of course Tag module still doesnt pick classes from K2 CSS (same CSS those 4 K2 content modules use all the time)

I have to ask again. Is it even theoretically possible for modules to pick some parts of CSS, ignore other parts in same file ?
I beleive it is not, but such effects i get.

I mean modules HTML part of code is OK, CSS is OK. What is wrong.


Template it is not, i checked with one of the Joomla default.
  • BBC
  • BBC's Avatar
13 May 2013 14:23
Replied by BBC on topic K2 Tools - Tag cloud - Styling

K2 Tools - Tag cloud - Styling

Category: English K2 Community

Here is answer maybe, article not so old.
But i have no clue where to put this part of code.

y-designs.com/support/tutorials/how-to-inject-css-prior-to-the-css4k2-system.html#.UZDyaT7iNGE
  • BBC
  • BBC's Avatar
13 May 2013 14:18
Replied by BBC on topic K2 Tools - Tag cloud - Styling

K2 Tools - Tag cloud - Styling

Category: English K2 Community

Seems as bug in K2 - Css4K2 plugin. It is not ready for Joomla 3.

Why is it not in the core ? More than 7 billion people in this world and such important K2 thing depend on only one person.

Next question and search for answer is what K2 - Css4K2 plugin does so that K2 modules in one positiona are styled, modules in another position not, on the same subpage ?
Displaying 3501 - 3520 out of 6582 results.