Kunena 6.3.0 released

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

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.

Question How to change the title in Kunena forum

More
14 years 9 months ago - 14 years 9 months ago #1 by Lord Zedd
Hello,

I have a problem with my forum. I allready created a thread when I was using an older version of Kunena. Meanwhile I have switched to 1.5.3.

The thread with the problem is locked because the moderator Matias thought his answer had resolved the problem but it didn't.

This is the thread.

www.kunena.com/forum/93-solved--support/...itle-in-kunena-forum

The user sozzled understood my question. I don't mind it says : Categories on the forum but I do have a problem with in Internet Explorer or in Firefox in the title it says : Categories! I do not want that at all. I just want to have it in the title of the browser to say : My website forum's name. But first you see that 'Category'.

This is what I would like to see changed! But how???

Also I'm searching for another problem : changing the position of the avatar, posts, ... to the left side but the search function isn't very helpfull. If you could point me into the right direction, would be great. Thanks!
Last edit: 14 years 9 months ago by Lord Zedd.

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

More
14 years 9 months ago - 14 years 9 months ago #2 by sozzled
Instead of removing the words categories, recent discussions and my discussions from the window title, how about changing the order of the words a little?

Here's what you would need to do (assuming that you're using the default_ex Kunena template):

1. For the categories: edit the file ../components/com_kunena/templates/default_ex/fb_layout.php at line 148
From:
Code:
$mainframe->setPageTitle(($jr_topic_title ? $jr_topic_title : $fr_title_name) . ' - ' . stripslashes($fbConfig->board_title));
To:
Code:
$mainframe->setPageTitle(stripslashes($fbConfig->board_title) . ' - ' . ($jr_topic_title ? $jr_topic_title : $fr_title_name));
2(a) For the my discussions: edit the file ../components/com_kunena/templates/default_ex/latestx.php at line 153
From:
Code:
$mainframe->setPageTitle(_KUNENA_MY_DISCUSSIONS . ' - ' . stripslashes($fbConfig->board_title));
To:
Code:
$mainframe->setPageTitle(stripslashes($fbConfig->board_title) . ' - ' . _KUNENA_MY_DISCUSSIONS);
2(b) For the recent discussions: change the same file as 2(a) at line 166
From:
Code:
$mainframe->setPageTitle(_KUNENA_ALL_DISCUSSIONS . ' - ' . stripslashes($fbConfig->board_title));
To:
Code:
$mainframe->setPageTitle(stripslashes($fbConfig->board_title) . ' - ' . _KUNENA_ALL_DISCUSSIONS);
I actually think this is a better solution that what you asked for.

Cheers

sozz :)

PS Thank you for your eventual acknowledgement in relation to the older discussion. We don't always get thanked for the help we provide. I spent about an hour-and-a-half looking into this matter on your behalf. I hope that it was worth the effort. ;)
Last edit: 14 years 9 months ago by sozzled.

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

More
14 years 9 months ago - 14 years 9 months ago #3 by sozzled
As far as the second question that you asked, about rearranging your message view so that user information is show to the left of the message instead of to the right, that question has been asked before and I'm sure a quick search of the forum will point you to the solution.
Last edit: 14 years 9 months ago by sozzled. Reason: change subject

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

More
14 years 9 months ago #4 by Lord Zedd
Hello Sozzled,

Thank you for responding. I will give it a go. As for changing the left side, I have searched before but will look again.

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

More
14 years 9 months ago #5 by Spock

As for changing the left side, I have searched before but will look again

That can be found here for Kunena 1.5.3: www.kunena.com/forum/114-hacks/20161-kun...-on-right-side#20565

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

More
14 years 9 months ago #6 by Lord Zedd
Hello Sozz,

Thanks for your help. I'm currently trying it. I use indeed the default_ex template but the codes you told me to look for are a bit different than what I found in my default_ex template. I have no idea why that is.

I found the following code on row 135 :
Code:
$document->setTitle(_KUNENA_MY_DISCUSSIONS . ' - ' . stripslashes($fbConfig->board_title));

and I changed it into
Code:
$document->setTitle(stripslashes($fbConfig->board_title) . ' - ' . _KUNENA_MY_DISCUSSIONS);

But for the Categories I seem to be stuck :s In the fb_layout file I can only find this code for the categories:
Code:
$header .= '<li '; if ($func == 'listcat' ) $header .= ' class="Kunena_item_active" '; $header .=' >'.CKunenaLink::GetCategoryListLink('<span>'.(array_key_exists('home', $fbIcons) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['home'] . '" border="0" alt="' . _KUNENA_CATEGORIES . '" title="' . _KUNENA_CATEGORIES . '" />' : _KUNENA_CATEGORIES).'</span>'); $header .= '</li>';

Can you perhaps help me again with this?

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

More
14 years 9 months ago - 14 years 9 months ago #7 by sozzled
I must confess to you that I was using K 1.0.10 as my basis for suggesting which areas of code needed to be changed. I wasn't sure whether K 1.5.3 is significantly different in this regard. It appears my assumptions were probably incorrect.

I'll have a look at K 1.5.3 to see what changes are indicated. I would suspect that, even if the line numbers are different, the structure of the PHP code that needs to be changed should be roughly similar. I won't be able to test the results until I have upgraded to K 1.5.3 myself.

The relevant area has to do with a call (or calls) to to the setTitle class/function.
Last edit: 14 years 9 months ago by sozzled.

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

More
13 years 10 months ago - 13 years 10 months ago #8 by drnda
I've found the solution in a harder way :
fb_layout.php
fb_pathway.php
latestx.php
listcat.php

I've edited every single file of the above, and looking for the line where "board_title" is mentioned, then moved it to left, and what was left, I've moved it to right - simple change the order in code, but you have to be very careful, always download it first, save, then edit so,in case of some mistake - you will be able to restore it later.
So the key is to find "board_title" and move it.
example :
before

$document->setTitle(_KUNENA_ALL_DISCUSSIONS . ' - ' . stripslashes($fbConfig->board_title));

after editing

$document->setTitle($fbConfig->board_title . ' - ' . stripslashes(_KUNENA_ALL_DISCUSSIONS));


You must not move the phrase "stripslashes", only move what's in brackets.
I am sorry for my english, but I hope you've understood.

p.s. I am a simple user, If I did it, anyone can :)
Last edit: 13 years 10 months ago by drnda.

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

Time to create page: 0.594 seconds