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

Question [Gelöst] Infobox (Welcome...)

More
15 years 1 month ago - 15 years 1 month ago #1 by lastboyscout
Hallo an alle!

Hab ein Problem, dass ich schon beim FB hatte und nie lösen konnte: ich würde gerne die Infobox oben (dort wo "Welcome ..." ect. steht) fix ausblenden. Hab leider bis jetzt noch keine Lösung gefunden.
Seit heute hab ich Kunena am laufen und irgendwie sah es schon immer unschön aus, wenn ein Benutzer sich übers Forum anmelden bzw. registrieren muss - verwende auf meiner Seite den Community Builder mit eigenem Login und möchte, dass sich die Benutzer NUR dort einloggen bzw. registrieren.
Wäre toll, wenn jemand eine Lösung für mich hätte.

Danke und liebe Grüße.
Last edit: 15 years 1 month ago by Lintzy. Reason: [Gelöst] ins topic eingefügt

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

More
15 years 1 month ago #2 by Lintzy
Replied by Lintzy on topic Re:Infobox (Welcome...)
Das Problem hatte ich für Firefox und CB gelöst. Ich werde demnächst ein Workaround dafür schreiben, (How-to für die "Wie kann ich..." Rubrik) allerdings kann das etwas dauern. Da ich erst mal die sticky-threads an 1.0.8 anpassen muss, und am Wochenende beginne, zwei Kapitel (oder mehr) für die Kunena Dokumentation zu verfassen.

Ich kann dir kurz ein paar Hinweise geben, nachfolgend das, was ich mir damals für die Firebox-Modifizierung !!!notiert hatte. Verändert wird die Datei profilebox.php (findest du im template)


Zeile 114 u. 115 von:
$registerlink = sefRelToAbs('index.php?option=com_user&task=register&Itemid=' . $Itemid);
$lostpasslink = sefRelToAbs('index.php?option=com_user&view=reset&Itemid=' . $Itemid);
}

ändern in:
$registerlink = sefRelToAbs('index.php?option=com_comprofiler&task=registers');
$lostpasslink = sefRelToAbs('index.php?option=com_comprofiler&task=lostPassword');
}

Zeile 195 folgendes löschen:
<a href = "<?php echo $loginlink;?>"> und </a>
also aus:
<a href = "<?php echo $loginlink;?>"><?php echo _PROFILEBOX_LOGIN; ?></a> <?php echo _PROFILEBOX_OR; ?> <a href = "<?php echo $registerlink;?>"><?php echo _PROFILEBOX_REGISTER; ?></a>.
das machen:
<?php echo _PROFILEBOX_LOGIN; ?> <?php echo _PROFILEBOX_OR; ?> <a href = "<?php echo $registerlink;?>"><?php echo _PROFILEBOX_REGISTER; ?></a>.

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

More
15 years 1 month ago #3 by lastboyscout
Danke für den Lösungsansatz. Hatte allerdings nur zur Folge, dass die Links zum Profil angepasst wurden. Die Box ist immer noch da.

Hab mich evtl. vorhin nicht präzise genug ausgedrückt: ich möchte die ganze Box oben verstecken - also gleicher Effekt, der kommt, wenn man das "Minus" neben der Search-Box oben anklickt.

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

More
15 years 1 month ago #4 by Lintzy
Replied by Lintzy on topic Re:Infobox (Welcome...)
Datei profilebox.php aus
/components/com_kunena/template/default/plugin/profilebox


Zeile 229-341 auskommentieren mit <!-- -->

<!-- <table width = "100%" border = "0" cellspacing = "0" cellpadding = "0" class = "fb_profilebox" >

<tbody id = "topprofilebox_tbody">

<tr class = "<?php echo $boardclass ;?>sectiontableentry1">

<td class = "td-1 fbm" align="left" width="5%">

<?php echo CKunenaLink::GetProfileLink($fbConfig, $my->id, $jr_avatar);?>

</td>



<td valign = "top" class = "td-2 fbm fb_profileboxcnt" align="left">

<?php echo _PROFILEBOX_WELCOME; ?>, <b><?php echo $jr_username; ?></b>



<br />



<a href = "<?php echo $jr_latestpost ; ?>"><?php

echo _PROFILEBOX_SHOW_LATEST_POSTS; ?> </a> | <?php echo $jr_profilelink; ?> | <a href = "<?php echo $logoutlink;?>"><?php echo _PROFILEBOX_LOGOUT; ?></a>

<?php

$user_fields = @explode(',', $fbConfig->annmodid);



if (in_array($my->id, $user_fields) || $my->usertype == 'Administrator' || $my->usertype == 'Super Administrator') {

$is_editor = true;

}

else {

$is_editor = false;

}



if ($is_editor) {

$annlink = 'index.php?option=com_kunena&amp;func=announcement&amp;do=show'.KUNENA_COMPONENT_ITEMID_SUFFIX;



?>

| <a href = "<?php echo $annlink;?>"><?php echo _ANN_ANNOUNCEMENTS; ?> </a>

<?php } ?>



</td>

<?php

if (mosCountModules('kunena_profilebox'))

{

?>



<td>

<div class = "fb_profilebox_modul">

<?php
if (CKunenaTools::isJoomla15())
{
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('modules');
$options = array('style' => 'xhtml');
$position = 'kunena_profilebox';
echo $renderer->render($position, $options, null);
}
else
{
mosLoadModules('kunena_profilebox', -2);
}

?>

</div>



</td>

<?php

}

?>



</tr>

</tbody>

</table> -->

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

More
15 years 1 month ago - 15 years 1 month ago #5 by lastboyscout
Das mit der Profilebox hat mir soeben keine Ruhe gelassen ;) Hab ein wenig herumgesucht und meine Lösung gefunden.

In der Datei components/com_kunena/kunena.php ganz einfach folgende Zeilen ausdokumentieren: 544, 547 bis 554.

544:
Code:
// $obj_KUNENA_tmpl->addVar('jb-header', 'pb_imgswitchurl', KUNENA_URLIMAGESPATH . "shrink.gif");
Bewirkt das Ausblenden des Plus/Minus

547 bis 554:
Code:
//BEGIN: PROFILEBOX // if (file_exists(KUNENA_ABSTMPLTPATH . '/plugin/profilebox/profilebox.php')) { // include (KUNENA_ABSTMPLTPATH . '/plugin/profilebox/profilebox.php'); // } // else { // include (KUNENA_ABSPATH . '/template/default/plugin/profilebox/profilebox.php'); // } //FINISH: PROFILEBOX
Blendet die ganze Box aus.

Hab's mal kurz getestet und es scheint problemlos zu funktionieren.

Ich häng hier noch die veränderte kunena.php für die 1.0.8 an, falls das jemand brauchen kann (einfach in einen Textfile kopieren und als kunena.php ins Verzeichnis uploaden).

File Attachment:

File Name: kunena-071...430c.txt
File Size:38 KB
Attachments:
Last edit: 15 years 1 month ago by lastboyscout.

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

More
15 years 1 month ago #6 by Lintzy
Replied by Lintzy on topic Re:Infobox (Welcome...)
Oder aber, so wie von mir beschrieben :silly:

Das Minuszeichen hatte ich dabei außer Acht gelassen, wurde auch nicht nach gefragt :P

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

More
15 years 1 month ago #7 by lastboyscout
;) kannst ja beides in die HowTo's aufnehmen ;)

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

More
15 years 1 month ago #8 by Matias
Replied by Matias on topic Re:Infobox (Welcome...)
@ Lintzy: You should send developers your changes or write a new messages in User contributions forum. You have already fixed many problems, but developers won't find them or do not remember them when it's time to fix those..

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

More
15 years 1 month ago - 15 years 1 month ago #9 by Lintzy
Replied by Lintzy on topic Re:Infobox (Welcome...)
Hi, matias, this was no bugfix. The task: The welcome box should be hide.

Other solutions are written in sticky threads (german), fxstein will read them, and decide, what is important enough to become part of new Kunena-Version. I have not so much time, to write all in german AND in english. ;)
Last edit: 15 years 1 month ago by Lintzy.

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

More
15 years 1 month ago #10 by Matias
Replied by Matias on topic Re:Infobox (Welcome...)
Hehe, my fault. I didn't read the messages, just saw that there is some code. I try to save some time by just going through messages (without reading them properly) and picking the ones that needs some answer.

The problem is, that when I'm tired (mostly 4-5 hours of sleep for 3 weeks) I tend to do things too quickly. I will get some rest soon, but before that I'd like to know if there are any problems with the release.

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

Time to create page: 0.393 seconds