Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • stavroch
  • stavroch's Avatar
21 Jul 2011 12:52
mod_k2_content clear html tags was created by stavroch

mod_k2_content clear html tags

Category: English K2 Community

I use the mod_k2_content and I want to use the html tags (<p>) that I have on the k2 item.

How can I do this?
  • Yiota
  • Yiota's Avatar
21 Jul 2011 10:55
Replied by Yiota on topic Help with css on a Tag Menu page

Help with css on a Tag Menu page

Category: English K2 Community

Go to the general K2 parameters and change the number through there.
  • josh tischer
  • josh tischer's Avatar
21 Jul 2011 03:56
Replied by josh tischer on topic Adding HTML code into Extra Fields

Adding HTML code into Extra Fields

Category: English K2 Community

If the image html tag is being removed you need to ensure that html is allowed for that field when its saved.

 

originally when I worked on this issue I found that you needed to allow html content in the if statement before the variables are set then saved to the database.

 

Open up Administrator/components/com_k2/models/extrafield.php

 

You can always put in a die() command and print_r sections just after the variables are set so you know whats about to be saved, then adjust as needed. The below should help.

 

//line 32 - replaced if (!$row->bind(JRequest::get('post',JREQUEST_ALLOWHTML))) //around line 53 - replaced $objects = array (); $values = JRequest::getVar('option_value','','post','string',JREQUEST_ALLOWRAW); $names = JRequest::getVar('option_name','','post','string',JREQUEST_ALLOWRAW);
  • matthew turner
  • matthew turner's Avatar
21 Jul 2011 03:30

Show "Related items (by tag)" without showing "Author options"

Category: English K2 Community

Hi,

An alternative would be to create a k2 template for the category that you want to display the extra field info, create a module with the required info in it (instead of using the extrafield?), and then call the module within the k2 template code... this module would then display on all of the items within this category - and only the categories you select to use the template....if you need fuller instructions let me know

I do not know the answers,or the reasons why this happens (stripping of html tags within the extra fields editors)

I do remember trying to find a fix but got distracted..... which happens. !
  • matthew turner
  • matthew turner's Avatar
21 Jul 2011 03:05

Show "Related items (by tag)" without showing "Author options"

Category: English K2 Community

Hi,

Amazing isn't it...!

Using this with the template over rides that you can now asign by category... plus the extra custom css it allows you to add too..

Best subscription money I've spent - saved hours and hours too, and its helped me to learn lots along the way !

Off subject, try out Jiliko's Alpha template - a-z sorting of K2 items in the front end! (downloadable for paid subscription - in the forum - worth it alone for for the subscription - also searchable extra fields - Sherpa - WOW!)
  • Odin Mayland
  • Odin Mayland's Avatar
21 Jul 2011 02:03

Show "Related items (by tag)" without showing "Author options"

Category: English K2 Community

OMG!!!!  LOL!!!!   I just paid for a subscription to jiliko and the Admin Template ext is awesome!!!  I have used some of his free ext and couldn't do without them.

Thanks!


mat said:

Hi,

I would recommend using Jiliko.net K2 Template Admin for editing K2 template over rides, 
  • matthew turner
  • matthew turner's Avatar
21 Jul 2011 01:39

Show "Related items (by tag)" without showing "Author options"

Category: English K2 Community

Hi,

I would recommend using Jiliko.net K2 Template Admin for editing K2 template over rides, this allows you to create a new k2 template quickly (either by copying your existing "almost" k2 template for you or the K2 default one), assign it to a category, edit it, test it, then switch the assign back once you know where the code error/issue is.... then use the same process to edit the "almost" there template with your modified bit (or the understanding of where to cut and paste...!!).

Using the above method, you can just switch it back to the "almost" template at anytime...

 

 
  • Odin Mayland
  • Odin Mayland's Avatar
21 Jul 2011 01:21

Show "Related items (by tag)" without showing "Author options"

Category: English K2 Community

You are correct sir!    This is the first template I have tried to modify a template.  I indeed see that the "related items" code is inside the div for the the author.

 

This is the template I started with:  k2joom.com/k2-templates/rounded-k2joom-template/about-rounded

 

I will have to try editing the item.php after hours when my client is not likely to check the site, if I mess anything up.

 

Thank you for all your effort and help on this site:   www.primocraft.com/
  • matthew turner
  • matthew turner's Avatar
21 Jul 2011 01:15

Show "Related items (by tag)" without showing "Author options"

Category: English K2 Community

Hi,

I had a bit more time on my hands to see if I could help, as it is a feature of K2 I have not had the need to use yet and tend to switch it off at the begining of a new website....

One by one I switched all of the item display options to not display - apart from "related items by tag", and the number of Related items to display (5)

I refreshed the browser between each individual option switched off, until Related Items by tag was the only thing displayed on the Item page !!

Points to note - this is a local test server, there is only one "author", the items I have used are within the same K2 category - this may be a factor ?

Good luck!
  • matthew turner
  • matthew turner's Avatar
21 Jul 2011 00:51

Show "Related items (by tag)" without showing "Author options"

Category: English K2 Community

Hi Modernmagic,

Just tested this and related items display correctly with all of the author options switched off...including the "written by" bit.(k2 2.5SVN)

I have looked at the default template code for item display and the related items code section does not seem to be wrapped in a PHP "if....end if" check for author block display....

So the template that you are using has been customised, it may have the related items section inside the Author block dsiplay check - which is just above the related items bit in the template :

<?php if($this->item->params->get('itemAuthorLatest') && empty($this->item->created_by_alias) && isset($this->authorLatestItems)): ?>
  • Gameinatrix
  • Gameinatrix's Avatar
20 Jul 2011 18:47
Newsletter suggestions and feature request was created by Gameinatrix

Newsletter suggestions and feature request

Category: English K2 Community

I was wondering if anyone could suggest a newsletter plugin or mod that works with k2?

 

Also I'd like to see a feature that alphabetizes the tags you add to an article.  As it were my people keep adding tags and sometimes we end up with 2 or 3 of the same one.

 

Thanks!
  • John
  • John's Avatar
20 Jul 2011 17:57

Metadata issues in 'Displaying item by tag'

Category: English K2 Community

Hi, anyone know how I can set the metadata for displaying items by tags? Basically Google picks up the following which while it's nice it's being indexed is a pretty meaningless title and description:

 



Displaying items by tag: SEO Cambridge

www.swaysearch.com/component/k2/itemlist/.../SEO%20Cambridge - Cached
You are here: Displaying items by tag: SEO Cambridge. Subscribe to this RSS feed. Wednesday, 29 June 2011 13:17 ...

 

If I could get a snippet of the blog itself to appear as the description that'd be an improvement and removing the 'Displaying items by tag' would help. 

 

Many thanks

 

John

 

www.swaysearch.com
  • Odin Mayland
  • Odin Mayland's Avatar
19 Jul 2011 10:00

Show "Related items (by tag)" without showing "Author options"

Category: English K2 Community

I must be doing something wrong.

 

It seems to be, that the only way to show "Related items (by tag)" in a k2item is to have at least one "Author options" shown.  Even though  "Related items (by tag)" is NOT listed in the Author Options list of the "Item View Options".

 

I do not want to show any Author Options.

 

How do I show just the 
"Related items (by tag)"?

 
  • jorge mejia gallegos
  • jorge mejia gallegos's Avatar
19 Jul 2011 04:07
Google shows too many results for my k2 items was created by jorge mejia gallegos

Google shows too many results for my k2 items

Category: English K2 Community

I use k2 to create a directory listing for restaurants, hotels, services etc... When i make a search on google for one of my listings, i get the item page, the category page, the tag page (on some items several entries) since they all display the intro text. Sometimes the category or tag page would even rank higher than the item page.

Isn't it wrong from a SEO point of view? what can i do to give more predominance to my item page?

Thanks a lot!
  • Oskar Pieta
  • Oskar Pieta's Avatar
18 Jul 2011 14:09
Replied by Oskar Pieta on topic My lightbox looks messed up

My lightbox looks messed up

Category: Simple Image Gallery PRO

I tried them all..

I noticed one more thing to specify a little bit more the issue..

The plugin is working when a gallery is assigned with tags in the article {gallery}the_gallery{/gallery}

but not working when the gallery is read through k2 component! When reading the galley from k2 the format of the presentation of the gallery is changing when i choose layout templates but the pop up engine stays the same, no matter what i choose. (i think it is stack on slimbox)

When i mean messed up, the first image is cut in half but when you move next/previous the other images expand correctly.. I disabled many components that might cause conficts but i just can't sort it out..

The only thing working properly is the galleria solution, which i use as a temporar solution..

Please, i am open to any suggestion.. The format of the images and galleries are all correct.. So it is something more complicated than that

Thank you
  • Pierre de Mûelenaere
  • Pierre de Mûelenaere's Avatar
18 Jul 2011 11:46
Replied by Pierre de Mûelenaere on topic item author in generic.php

item author in generic.php

Category: English K2 Community

Hello Could you be more precise about which files has to be changed exactly, where modify the code, etc.

Displaying author name on tag display looks like a very usefull (and needed) modification.

 

thanks in advance...


Mark Schultz said:
Pull the author name using this code:

 

<?php                             $config=new JConfig();                             $query = " SELECT a.id as thisid, a.created_by as createdby, b.id as thisauthorid, b.name as thisauthor "                             ." FROM #__k2_items AS a "                             ." LEFT JOIN #__users AS b ON a.created_by=b.id "                              ." WHERE a.id=$item->id ";                              $db =& JFactory::getDBO();                             $db->setQuery( $query );                              $row = $db->loadObject();                             $thisauthor = $row->thisauthor;                             $thisauthorid = $row->thisauthorid;?>

 

display it using something like this code:

<a href="<?php echo $config->live_site?>/index.php?option=com_k2&view=itemlist&task=user&id=<?php echo $thisauthorid;?>&Itemid=<?php echo $_REQUEST["Itemid"];?>"><?php echo $thisauthor; ?></a>
  • Dave Marshall
  • Dave Marshall's Avatar
18 Jul 2011 11:00
Replied by Dave Marshall on topic Getting k2 modules to display on all K2 related pages

Getting k2 modules to display on all K2 related pages

Category: English K2 Community

Hi all, I was having the same problem and found this fix somewhere on the net but cannot remember where. I am using Joomla 1.5.23, K2 2.41 and SH404sef 2.2.7.981. This is a simple hack to the components/com_k2/helpers/route.php and seems to be working fine for me. After doing the hack, when I click on tags or going to a users page or in K2 all K2 modules are staying in place. I have attached the fix as a file below as this forum sometimes will not let you paste any type of code. Hope this helps someone!

CheersDave
  • Helen
  • Helen's Avatar
18 Jul 2011 00:56
K2 Categories and Items won't add was created by Helen

K2 Categories and Items won't add

Category: English K2 Community

Hi Everyone,

 

I am very new to both Joomla and K2. I have a template which has done all the hard work for me.

 

I am trying to add items and categories. Tags work fine. When I go to add either an item or category, it goes to the add screen fine, I can put in all the information and setting without an issue. When I click save, save and new or apply - I go to a white blank page.

 

When I check back, the category or item has not been added. What could be causing the problem? Is there something I could do to fix this?

 

Thanks in advance for any help anyone could give me.

 

Regards,

 

Helen

 
  • eric67
  • eric67's Avatar
16 Jul 2011 23:05

I'm just trying to add a png watermark on image upload

Category: English K2 Community

Hi,

Below the error message I get:There was a problem rendering your image gallery. Please make sure that the folder you are using in the Simple Image Gallery PRO plugin tags exists and contains valid image files. The plugin could not locate the folder: media/k2/galleries/143

The folder "media/k2/galleries/143" exists. It seems that Simple Image Gallery plugin creates automatically the final folder, I mean "143". 143 is the K2 article ID in fact.

The root folder in Simple Image Gallery plugin is "media/k2/galleries". Is that correct?

I tried to set the root folder with  the same string + "/143", and modified the same article (the one with ID 143) but I get the same error...

 

Images are not saved neither in images/ nor images/stories/ but in media/k2/galleries/xxxxxx

xxxxxx is the ID of K2 items. So, there are as many folders than items...

The PHP version is 5.2.16 with GD library bundled (2.0.34 compatible).I did not modify the php.ini. In fact, I can't access it because the site is not on a dedicated server.I use very small file to test the process. The main image is 108Ko and the zip file, which contains only 2 images is 215Ko.

What do you mean with "Are you sure you modified the correct file? ". Did you mean item.php? In that case, yes.The process works cause I can have the main image with the watermark. Only the gallery does not work.

Eric.
Displaying 4961 - 4980 out of 6582 results.

Powered by Kunena Forum