Kunena 6.2.5 & module Kunena Latest 6.0.7 released

The Kunena team has announce the arrival of Kunena 6.2.5 [K 6.2.5] which is now available for download as a native Joomla extension for J! 4.3.x/4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Merged How to create category and sub-category icons in K 3.0

More
10 years 9 months ago #1 by nickb
hey kunena community !
I wanna change this path
kunena/category_images//19_notlogin.gif
to this path
kunena/category_images//19_notlogin.png

how i can do it ?

Thanks in advanced.

Best,
Nick :)

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago - 10 years 9 months ago #2 by sozzled
G'day, nckb, and welcome to the forum.

If I correctly understand your question, you want to use .PNG images instead of .GIF images.

Some help is available here: Category icons .
Last edit: 10 years 9 months ago by sozzled.
The following user(s) said Thank You: nickb

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #3 by nickb
i cant find the solution there... i see for gif icons ... sorry my english language is low and i cant understand ... at ../media/kunena/category_images. i can upload only gif or i can upload png ? i wanna upload png images.
Please answer me ! Thank you !

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago - 10 years 9 months ago #4 by sozzled
To change .GIF to .PNG I think you need to modify the file ../components/com_kunena/funcs/listcat.php; the file may have been renamed in K 3.0 and so I cannot be sure. Perhaps someone else in the community can confirm this information?

Change all occurences of '.gif' (_on.gif, and _off.gif), replace with '.png', and this will probably do the job. I haven't tested the solution. Good luck. Let us knw hw you go. :)
Last edit: 10 years 9 months ago by sozzled.
The following user(s) said Thank You: nickb

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago - 10 years 9 months ago #5 by rich

../components/com_kunena/funcs/listcat.php

No, there is no longer this path. But it works if you change the ending of images from png to gif. It does not matter whether the ending is correct. The browsers display the image with quality png.
Last edit: 10 years 9 months ago by rich.
The following user(s) said Thank You: nickb

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #6 by nickb
thank's guys, i will try at 13 hours ... and i will reply again here ! :lol:

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago - 10 years 9 months ago #7 by sozzled
nickb wrote:

I want [to use] ../media/kunena/category_images/19_notlogin.png

You cannot use this in K 3.0.

If you read footnote #2 of Category icons you will see that the "feature" that displayed a different category icon when users are not logged-in to your forum (which was done by having a file called <cat_id>_notlogin.gif uploaded to the folder ../media/kunena/category_images), this feature was removed in K 2.0.

Therefore, the question of whether you can use a .PNG file instead of a .GIF file for this third [not logged-in] state is irrelevant.

In terms of the general question about using .PNG files instead of .GIF files for custom category icons, the information given in the Wiki article (and which I reproduced, in part, in my reply in msg #4 of this topic) is out of date and incorrect.

In a future version of Kunena we would like to allow users to upload either .PNG or .GIF files. Obviously, though, if you had two files, for example
  • 19_on.gif
  • 19_off.png
only one of these files would actually be used.

As a temporary workaround, a simple way to use .PNG files instead of .GIF files is to look at the code in the file ../components/com_kunena/views/category/view.html.php between lines 156 and 164. The original source code is this:
Code:
// Check Unread Cat Images if (is_file ( JPATH_ROOT."/media/kunena/{$this->config->catimagepath}/{$category->id}_on.gif" )) { return "<img src=\"" . JUri::root(true) . "/media/kunena/{$this->config->catimagepath}/{$category->id}_on.gif\" border=\"0\" class='kforum-cat-image' alt=\" \" />"; } else { return $this->getIcon ( $this->ktemplate->categoryIcons[1], JText::_ ( 'COM_KUNENA_GEN_FORUM_NEWPOST' ) ); } } else { // Check Read Cat Images if (is_file ( JPATH_ROOT."/media/kunena/{$this->config->catimagepath}/{$category->id}_off.gif" )) { return "<img src=\"" . JUri::root(true) . "/media/kunena/{$this->config->catimagepath}/{$category->id}_off.gif\" border=\"0\" class='kforum-cat-image' alt=\" \" />";
You could simply change the ".gif" references to ".png" instead. However, here's another solution that may do the job easier for you:

===========This is untested and may result in your forum not functioning properly===========

(1) Download the attached file

File Attachment:

File Name: view.html.zip
File Size:5 KB


(2) Extract the file view.html.php to your personal hard drive.

(3) Using your favourite FTP program, rename the file ../components/com_kunena/views/category/view.html.php as ../components/com_kunena/views/category/view.html.old

(4) Using your favourite FTP program, copy the file you extracted in step (2) above to the folder ../components/com_kunena/views/category/

(5) This change will allow you to use any one (but only one) of the similarly named files:
  • .GIF
  • .PNG
  • .JPG
In other words, if you have three files called 19_on.gif, 19_on.png and 19.jpg, the .GIF one will be used.

I hope this helps.

(Thanks to LittleJohn for providing me with the solution)
Attachments:
Last edit: 10 years 9 months ago by sozzled.
The following user(s) said Thank You: nickb

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #8 by nickb
ok i will try it... i just wanna use only png because i dont like the Q of gif convert.

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #9 by robinwave
This is nice. I will try it with my website too.

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago - 10 years 6 months ago #10 by YonisHobby
Hi,

I'm using the latest version of Kunena installed on the latest version of Joomla.
I would like to have a different icon for every category. The solution I found is for early Kunena versions.
How do I implement it on the latest?

Many thanks!

Edit:
Placed it here by mistake. The solution found here:
Found the solution here:
www.kunena.org/docs/Category_icons

And this is my forum . :)
Last edit: 10 years 6 months ago by YonisHobby.

Please Log in or Create an account to join the conversation.

Time to create page: 0.790 seconds