Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • william white
  • william white's Avatar
26 Mar 2011 19:45
Replied by william white on topic Reduce the font size of title in K2 Latest articles

Reduce the font size of title in K2 Latest articles

Category: English K2 Community

Probably the eaisest way to do this so it doesnt change the entire site is use a page class suffix in the menu choice that calls the category listing. Then go into k2.css or youroverride_style.css if using css4k2 and find the block latestItemHeader

and under it add latestItemTitle.yoursuffix with a height tag that is approporiate
  • william white
  • william white's Avatar
26 Mar 2011 07:28
Replied by william white on topic Overriding Add Item Background

Overriding Add Item Background

Category: English K2 Community

search for div.k2Frontend in k2.css or if your using css4k2 search in youroverride_style.css

add a background tag
  • Samuel Rydström
  • Samuel Rydström's Avatar
25 Mar 2011 22:43
Remove borders in lists was created by Samuel Rydström

Remove borders in lists

Category: English K2 Community

Hi!

 

In articles I want to remove the dotted borders under the icons in the sociallinks list (Google Buzz, Facebook, Delicious etc.).

I am trying to remove the borders under the div.itemSocialLinksBlock ul li a items in the k2.css but it will not work. By default there are dotted borders under the items. I set the border-style to none but it doesnt work..

I have also tryed to remove the borders under the links in the div.itemTagsBlock but same result there.

 

So how do I remove those borders? Are there any parent style that I should change instead? :)

 

Thanks!

 

//Samuel R
  • stavroch
  • stavroch's Avatar
24 Mar 2011 17:14
head description was created by stavroch

head description

Category: English K2 Community

I use the sh404sef and I have realize that the meta - description of html tag takes the intro text of k2 item.

Can I set the k2 title as the description of meta tag?
  • Silence G
  • Silence G's Avatar
24 Mar 2011 14:32

Is there a way of applying a K2 template to tag/s for a particular category

Category: English K2 Community

Thanks. I will look into that. All I'm trying to do is place articles in pseudo-multiple categories. Tags seemed a natural point to start.
  • Yiota
  • Yiota's Avatar
24 Mar 2011 10:24

Is there a way of applying a K2 template to tag/s for a particular category

Category: English K2 Community

The page you see when visiting a tag is generic.php. The problem with that is that it loads also for the author list view and the search view (if you use K2 search, of course). You will probably need to hack a little bit that file and with an if statement to control what will be the output when viewing tags, what for author list and what for search.
  • ljk
  • ljk's Avatar
23 Mar 2011 23:53 - 24 Mar 2011 01:41
Replied by ljk on topic Remote Preview Image

Remote Preview Image

Category: AllVideos

Hi,

I have found that the plugin is not using flv but flvremote even when the video is on your website. So, to get the preview image to display I have made the following changes to the plugin version 3.3.

Backup the two files below, before you make the changes so you can fall back to a working copy if anything goes wrong.

In /plugins/content/jw_allvideos.php:
Around line 162 you will find this code:
 $tagcontent = preg_replace("/{.+?}/", "", $match); $tagparams = explode('|',$tagcontent); $tagsource = trim(strip_tags($tagparams[0])); $final_vwidth = (@$tagparams[1]) ? $tagparams[1] : $vwidth; 

Change it to:
 $tagcontent = preg_replace("/{.+?}/", "", $match); $tagparams = explode('|',$tagcontent); $tagsource = trim(strip_tags($tagparams[0])); /* Hack to display the preview image for flvrremote type videos */ if ($plg_tag == 'flvremote') { // Need to get the filename, without the extension so we can make the image filename $imagefile = substr($tagsource, 0, strrpos($tagsource,'.')); } else { $imagefile = ''; } /* End hack */ $final_vwidth = (@$tagparams[1]) ? $tagparams[1] : $vwidth;

Find this code:
 // source elements $findAVparams = array( "{SOURCE}", "{SOURCEID}", "{FOLDER}", "{WIDTH}", "{HEIGHT}", "{AUTOPLAY}", "{TRANSPARENCY}", "{BACKGROUND}", "{BACKGROUNDQT}", "{CONTROLBAR}", "{SITEURL}", );

Replace it with this code:
 // source elements $findAVparams = array( "{SOURCE}", "{SOURCEID}", "{FOLDER}", "{WIDTH}", "{HEIGHT}", "{AUTOPLAY}", "{TRANSPARENCY}", "{BACKGROUND}", "{BACKGROUNDQT}", "{CONTROLBAR}", "{SITEURL}", "{IMAGEURL}", // Add image url to parameters list );

Find this code:
 // replacement elements if(in_array($plg_tag, array("mp3","mp3remote","wma","wmaremote"))){ $replaceAVparams = array( $tagsource, substr(md5($tagsource),1,8), $afolder, $awidth, $aheight, $final_autoplay, $transparency, $background, $backgroundQT, $controlBarLocation, $siteUrl, ); $output->playerWidth = $awidth; $output->playerHeight = $aheight; } else { $replaceAVparams = array( $tagsource, substr(md5($tagsource),1,8), $vfolder, $final_vwidth, $final_vheight, $final_autoplay, $transparency, $background, $backgroundQT, $controlBarLocation, $siteUrl, );

Replace it with this code:
 // replacement elements if(in_array($plg_tag, array("mp3","mp3remote","wma","wmaremote"))){ $replaceAVparams = array( $tagsource, substr(md5($tagsource),1,8), $afolder, $awidth, $aheight, $final_autoplay, $transparency, $background, $backgroundQT, $controlBarLocation, $siteUrl, $imagefile,  // Add image url to parameters list ); $output->playerWidth = $awidth; $output->playerHeight = $aheight; } else { $replaceAVparams = array( $tagsource, substr(md5($tagsource),1,8), $vfolder, $final_vwidth, $final_vheight, $final_autoplay, $transparency, $background, $backgroundQT, $controlBarLocation, $siteUrl, $imagefile,  // Add image url to parameters list );

Finally in /plugins/content/jw_allvideos/includes/sources.php on line 39 in the flvremote section replace:
 <param name=\"flashvars\" value=\"file={SOURCE}&autostart={AUTOPLAY}{CONTROLBAR}&fullscreen=true\" />

with:
 <param name=\"flashvars\" value=\"file={SOURCE}&image={IMAGEURL}.jpg&autostart={AUTOPLAY}{CONTROLBAR}&fullscreen=true\" />

Making these changes should now give you a preview images as long as you have the image in the same folder as your flv file and you name the image file the same as the flv file, but with a .jpg extension. If you wanted a different extension on your image file change it in the line above (.jpg for .png, if you wanted png images instead).

To get the image to display properly in K2 you need to add the following hack to remove the beginning / from the video path:

/administrator/components/com_k2/views/item/tmpl/fielbrowser.php line 42 remove the beginning / from the <a href="
                    <a href="/<?php echo $this->path.'/'.$file;?>" class="<?php echo $this->type;?>File">                         <img width="64" alt="<?php echo $file;?>" src="<?php echo ($this->type=='video')? JURI::root().'administrator/components/com_k2/images/system/video.png':JURI::root().$this->path.'/'.$file;?>">

becomes:
                    <a href="<?php echo $this->path.'/'.$file;?>" class="<?php echo $this->type;?>File">                         <img width="64" alt="<?php echo $file;?>" src="<?php echo ($this->type=='video')? JURI::root().'administrator/components/com_k2/images/system/video.png':JURI::root().$this->path.'/'.$file;?>">


I hope this helps others get their preview image for flv files.

Good luck.
  • Denis Devine
  • Denis Devine's Avatar
23 Mar 2011 22:34
K2 & JomSocial Profile Types was created by Denis Devine

K2 & JomSocial Profile Types

Category: English K2 Community

I have built a site using the following:


Joomla 1.5
K2 v2.4.1
JomSocial 2.0.6
Kunena 1.6.3
Joomlaxi JomSocial Profile Types 3.0.508
Joomlaxi Admin Approval
AutoGroup (latest version)
Styleware's K2 User Plugin

It's a website for Steiner schools. The idea is anyone can sign up and use the forum (Kunena). But only parents can sign up, access the community (JomSocial) and write articles (K2).

So I'm using JomSocial Profile Types to register people as parents (who require approval using Admin Approval) and non-parents (who don;t require approval). And I'm using AutoGroup to automatically assign parents to the main group for their school.

The site worked fine before I installed JSPT. Until then, people could register, use the community and write articles. 

But now they can't. It seems that the Styleware plugin fails to pass profile entries to JomSocial and fails to create a K2 profile because JSPT interrupts the registration process midway (just before the avatar upload stage).

I'm not a coder, but it seems to me this should be a relatively easy 'fix' for a really good coder. And it would open up a lot of opportunities for some great sites if people could integrate Joomla, JomSocial, K2 and JSPT in one site.

Would anyone be interested in helping to 'fix' this?

I don't want ownership. I just need to be able to use it.

And I'm *sure* other people would love this fix too. :)

Thanks,

Dom
  • Silence G
  • Silence G's Avatar
23 Mar 2011 20:26

Is there a way of applying a K2 template to tag/s for a particular category

Category: English K2 Community

I have a menu link that applies to all tags in a blog section on my test site. I would like to apply a K2 template to these particular tags...Is this possible?thanks in advance.
  • jo
  • jo's Avatar
23 Mar 2011 07:16
Replied by jo on topic K2 Search not finding tags

K2 Search not finding tags

Category: English K2 Community

Okay, I have managed it with a 4 digit number but that involves changing all tags, files names and category titles, AND convincing the client to make this change to his entire project listing structure. Anyone got any better suggestions?

Thanks again

 
  • jo
  • jo's Avatar
23 Mar 2011 07:13
Replied by jo on topic K2 Search not finding tags

K2 Search not finding tags

Category: English K2 Community

I have been reading some other forum entries about this problem. Someone suggested that it should be 4 digit number but this has not worked either. This is a little bit bizarre really - why would you NOT want to search your database by number?

My project is a list of charitable projects which are identifiable by their project number. The names of the projects are Asian, Chinese and Myanmarese so not exacty words that an native european speaker (which the majority of the donors are) would normally use and they are often difficult to spell.

 

I have no way around this, it must be searchable by a 3 (or at a push 4) digit number. If anyone can help I'd be very grateful.

 

Many thanks
  • jo
  • jo's Avatar
23 Mar 2011 06:16
K2 Search not finding tags was created by jo

K2 Search not finding tags

Category: English K2 Community

Hello

I have put the K2 search module on my site but it is not finding numberical tags. These are the most important search criteria. Am I doing something wrong?

 

I am using: Joomla 1.5.22

K2 v2.4.1

 

Many thanks

 

Jo
  • Dan Wood
  • Dan Wood's Avatar
18 Mar 2011 18:58
Show tags in back-end Items view? was created by Dan Wood

Show tags in back-end Items view?

Category: English K2 Community

Is there any way to show "Tags" as a column in the Items view in K2 back-end (/administrator/index.php?option=com_k2&amp;view=items&amp;filter_trash=0)?

 

In WordPress you can see all the tags that each article belongs to in the list of articles. This is really helpful in seeing which tags are on which posts/items.

 

In K2 so far, the only way I've found to see which tags each Item has is to go through opening each Item one-by-one. This is tedius and labour-intesive. 

Is there a better way??
  • matthew turner
  • matthew turner's Avatar
18 Mar 2011 15:42
Replied by matthew turner on topic K2mart generic.php

K2mart generic.php

Category: English K2 Community

Hi,

Just noticed you had quite a few errors in the code above (spaces where there should be none, single colon where there should be 2 ::) -  I have corrected it and tested working in the tags page (generic.php):

 

&lt;?php

$dispatcher = &amp;JDispatcher:: getInstance (); JPluginHelper:: importPlugin('k2', 'k2mart');

?&gt;                &lt;?php foreach($this-&gt;items as $item): ?&gt;&lt;?php$results = $dispatcher-&gt;trigger('onK2AfterDisplayContent', array (&amp;$item, $item-&gt;params, 0));$item-&gt;event-&gt;onK2AfterDisplayContent = trim(implode ("\n", $results));echo $item-&gt;event-&gt;onK2AfterDisplayContent;?&gt;

Regards

Mat
  • Dan Wood
  • Dan Wood's Avatar
17 Mar 2011 21:54
Replied by Dan Wood on topic Import existing Wordpress Blog in K2 ?

Import existing Wordpress Blog in K2 ?

Category: English K2 Community

Brilliant! Just tried it with Joomla 1.5.22. K2 items are there with tags and categories.
  • Paul
  • Paul's Avatar
17 Mar 2011 09:57
Replied by Paul on topic k2 2.3 break google maps plugin

k2 2.3 break google maps plugin

Category: English K2 Community

Can you help me? I need to get rid of the code in point number 1 that you solved?

What line is the code that you altered?

 

"First problem has easy solution. In K2.css file deleted background: #FFF for tags div.itemFullText the same for cat line."

 

Paul
  • Niyi Omikunle
  • Niyi Omikunle's Avatar
17 Mar 2011 09:36

K2 Item Thumbnails not Showing up when Posted on Facebook

Category: English K2 Community

Hello

 

I discovered that all other pictures that are not k2 on the page I am posting as a link on Facebook show up as thumbnails (from which you can select one) but the main picture for the articles fails to show up.

I decided to include a picture directly in the body of the article too but this fails to show up too. This is an obvious disadvantage and I have attempted resolving it with a similar post I saw here but it did not work.

Can anyone help me out here please?

 

Niyi
  • Steven
  • Steven's Avatar
16 Mar 2011 11:52

Benefits of K2 over normal Joomla content publishing.

Category: English K2 Community

I'm new to K2.  Can you tell me the advantage of using K2 over the normalcontent management system? 

 

I don't yet see any differences between the 2.
  • Paul Corujo
  • Paul Corujo's Avatar
16 Mar 2011 04:11
Template Monster Template was created by Paul Corujo

Template Monster Template

Category: English K2 Community

Hi All,

 

I have a template I purchased from templatemonster.com and have been working with.  I want to take advantage of K2 social media and commenting features so I installed the extension.  I created a test category and assigned it a test article (item).  I cannot seem to get the article in the column box which come with the template.  Can somebody please help?
  • Jordan Ivanov
  • Jordan Ivanov's Avatar
15 Mar 2011 00:31
Change multipleSelect with check boxes was created by Jordan Ivanov

Change multipleSelect with check boxes

Category: English K2 Community

I want to change the multipleselect extra field list of K2 Add new article, with check boxes. I did something but not perfect, similar to radiolist:in file administrator/components/com_k2/models/extrafield.php
Code:
         case 'multipleSelect':         $output=JHTML::_('select.genericlist', $defaultValues, 'K2ExtraField_'.$extraField-&gt;id.'[]', 'multiple="multiple"', 'value', 'name',$active);         break;

I changed with:
Code:
         case 'multipleSelect':         $output=JHTML::_('select.checkboxlist', $defaultValues, 'K2ExtraField_'.$extraField-&gt;id.'[]', '', 'value', 'name',$active);         break;

in file libraries/joomla/html/html/select.phpI add:
Code:
/*custom checkbox*/   function checkboxlist( $arr, $name, $attribs = null, $key = 'value', $text = 'text', $selected = null, $idtag = false, $translate = false )   {      reset( $arr );      $html = '';      if (is_array($attribs)) {         $attribs = JArrayHelper::toString($attribs);       }      $id_text = $name;      if ( $idtag ) {         $id_text = $idtag;      }      for ($i=0, $n=count( $arr ); $i &lt; $n; $i++ )      {         $k   = $arr[$i]-&gt;$key;         $t   = $translate ? JText::_( $arr[$i]-&gt;$text ) : $arr[$i]-&gt;$text;         $id   = ( isset($arr[$i]-&gt;id) ? @$arr[$i]-&gt;id : null);         $extra   = '';         $extra   .= $id ? " id=\"" . $arr[$i]-&gt;id . "\"" : '';         if (is_array( $selected ))         {            foreach ($selected as $val)            {               $k2 = is_object( $val ) ? $val-&gt;$key : $val;               if ($k == $k2)               {                  $extra .= " selected=\"selected\"";                  break;               }            }         } else {            $extra .= ((string)$k == (string)$selected ? " checked=\"checked\"" : '');         }         $html .= "\n\t&lt;input type=\"checkbox\" name=\"$name\" id=\"$id_text$k\" value=\"".$k."\"$extra $attribs /&gt;";         $html .= "\n\t&lt;label for=\"$id_text$k\"&gt;$t&lt;/label&gt;&lt;br&gt;";      }      $html .= "\n";      return $html;   }/*end custom checkbox*/

I save the article and everything is normal, the extra field appears as I want.The only problem is when I edit the artcile, the check boxes are not selected, I have to check every option again.If someone can help me to solve this problem I'll be thankfull.
Displaying 5221 - 5240 out of 6582 results.

Powered by Kunena Forum