×
Kunena 5.2 RC3 Released (29 Nov 2020)

The Kunena team is thrilled to announce the third public release candidate of Kunena 5.2, a native Joomla extension for Joomla 3.9. This is a development release and should be only be used for testing; this version is not recommended for live websites at this stage.

The purpose of this release is to encourage testing by downloading, installing and identifying any problems or shortcomings that people may discover. K 5.2.0 RC3 is stable and we are aware that people will discover defects. We encourage you to use the forum to report defects, as soon as they are discovered, so that the development team can work through the problems before the release of K 5.1 as a stable product. Reporting defects does not mean that the problems can or will be fixed. The Kunena team is looking forward to hearing your feedback on how well we have achieved our design goals.

× Themen, die in diesen Bereich verschoben wurden, gelten allgemein als beendet. Falls es dazu noch zusätzliche Fragen gibt, können diese zwar noch gestellt werden, aber diese alten Themen sollten auf keinen Fall wieder auferstehen, um neue Probleme zu erörtern.
Eröffnet dazu bitte ein eigenes neues Thema.

Solved Kunena Latest Module: Absatz vor Beitrags Anzeige.

More
8 years 7 months ago - 8 years 7 months ago #1 by Mosios
Hi,
wie mache ich einen Zeilenumbruch vor die Beitrags Anzeige?




Ich weiß das es um sh_postcount geht, aber wie bekomme ich da einen Zeilenumbruch hinein?
<?php
			if ($this->params->get ( 'sh_sticky' )) {
				if ($item->ordering) {
					echo '<img src="' . JURI::root () . 'modules/mod_kunenalatest/tmpl/images/sticky.png" alt="' . JText::_ ( 'MOD_KUNENALATEST_STICKY_TOPIC' ) . '" title="' . JText::_ ( 'MOD_KUNENALATEST_STICKY_TOPIC' ) . '" />';
				}
			}
				if ( $this->params->get ( 'choosemodel' ) != 'latestposts' && $this->params->get ( 'choosemodel' ) != 'latesttopics'  ):
				echo CKunenaLink::GetThreadLink ( 'view', $item->catid, $item->id, JString::substr ( htmlspecialchars ( $item->subject ), '0', $this->params->get ( 'titlelength' ) ), JString::substr ( htmlspecialchars ( KunenaParser::stripBBCode($item->message) ), '0', $this->params->get ( 'messagelength' ) ), 'follow' );
			else :
				if ($this->topic_ordering == 'ASC') :
					echo CKunenaLink::GetThreadPageSpecialLink ( 'view', intval($item->catid), intval($item->thread), $threadPages, intval($this->kunena_config->messages_per_page), JString::substr ( htmlspecialchars ( $item->subject ), '0', $this->params->get ( 'titlelength' ) ), intval($item->id), '','', JString::substr ( htmlspecialchars ( KunenaParser::stripBBCode($item->message) ), '0',  $this->params->get ( 'messagelength' ) ) );
					if ( $this->params->get ( 'sh_postcount' ) ) : echo ' ('.$item->msgcount.' '.JText::_('MOD_KUNENALATEST_MSG').')';
					endif;
				else :
					echo CKunenaLink::GetThreadPageSpecialLink ( 'view', intval($item->catid), intval($item->thread), 1, intval($this->kunena_config->messages_per_page), JString::substr ( htmlspecialchars ( $item->subject ), '0', $this->params->get ( 'titlelength' ) ), intval($item->id), '','', JString::substr ( htmlspecialchars ( KunenaParser::stripBBCode($item->message) ), '0',  $this->params->get ( 'messagelength' ) ));
					if ( $this->params->get ( 'sh_postcount' ) ): echo ' ('.$item->msgcount.' '.JText::_('MOD_KUNENALATEST_MSG').')';
					endif;
				endif;
			endif;
			if ($item->unread) {
				echo '<sup class="knewchar">(' . JText::_($this->params->get ( 'unreadindicator' )) . ")</sup>";
			}
			if ($this->params->get ( 'sh_favorite' )) {
				if ($item->favcount) {
					if ($item->myfavorite) {
						echo '<img class="favoritestar" src="'.$this->ktemplate->getImagePath('icons/favoritestar.png').'"  alt="' . JText::_ ( 'MOD_KUNENALATEST_FAVORITE' ) . '" title="' . JText::_ ( 'MOD_KUNENALATEST_FAVORITE' ) . '" />';
					} else {
						echo '<img class="favoritestar-grey" src="'.$this->ktemplate->getImagePath('icons/favoritestar-grey.png').'"  alt="' . JText::_ ( 'MOD_KUNENALATEST_FAVORITE' ) . '" title="' . JText::_ ( 'MOD_KUNENALATEST_FAVORITE' ) . '" />';
					}
				}
			}
			if ($this->params->get ( 'sh_locked' )) {
				if ($item->locked) {
					echo '<img src="'.$this->ktemplate->getImagePath('icons/lock_sm.png').'"  alt="' . JText::_ ( 'MOD_KUNENALATEST_LOCKED_TOPIC' ) . '" title="' . JText::_ ( 'MOD_KUNENALATEST_LOCKED_TOPIC' ) . '" />';
				}
			}
			?>

MfG
Mosios
Attachments:
Last edit: 8 years 7 months ago by Mosios.

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

More
8 years 7 months ago - 8 years 7 months ago #2 by Mosios
Lösung:

if ( $this->params->get ( 'sh_postcount' ) ): echo '<br />('.$item->msgcount.' '.JText::_('MOD_KUNENALATEST_MSG').')';

MfG
Mosios
Last edit: 8 years 7 months ago by rich. Reason: Themenicon geändert

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.400 seconds