Kunena 7.0.4 Released

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

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

More
17 years 2 months ago - 17 years 2 months ago #4119 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: 17 years 2 months ago by Lintzy. Reason: [Gelöst] ins topic eingefügt

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

More
17 years 2 months ago #4126 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
17 years 2 months ago #4160 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
17 years 2 months ago #4168 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
17 years 2 months ago - 17 years 2 months ago #4178 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.01 KB
Last edit: 17 years 2 months ago by lastboyscout.

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

More
17 years 2 months ago #4183 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.

Time to create page: 0.219 seconds