Hi
Hab wieder eine "kleine" Hilfe nötig
Hab das Modul Blogview runtergeladen und es installiert, funktioniert einwandfrei! Und ist eigentlich genau was ich suche.
Nur schreib ich Blogs mit dem Mamblog und der
speichert Blogs wie folgt:
Titel: Blogtitel Mamblog
Introtext: Nicht verfügbar mit Mamblog (bleibt leer)
Fulltext: Der eigentliche Blog
Das Modul stehlt aber wie folgt die Blogs dar in einer Liste:
Titel: Blogtitel Mamblog
Introtext: Würde angezeigt werden, nur in meinem Fall immer Leer :'( '(
Fulltext: Wird nicht angezeigt auch nichts zum auswählen
Ich möchte aber das es den Blog anzeigt .... also anstatt den Introtext den Fulltext.....
denke das sollte gehen eine kleine Zugabe in der ganzen Sache wäre natürlich nur etwa 5-10 Zeilen vom Fulltext Anzeigen lassen... und zum weiterlesen muss man auf den Titel klicken wie man das schon kann.
Hab jetzt sicher 1.5 Stund geübt mit der SelfHTML Hilfe etc. aber komm einfach nicht weiter kenne mich im Programmieren auch nicht aus, hmm
Ich denke es ist im unteren Teil vom Code .... oder anders gefragt ist das überhaupt möglich so was schnell schnell schreiben/ ändern

D
Danke schon mal für eure Antworten .... Gruss Michu
Code:
<?php
/******************************************************************/
/* Title........: MusicGallery Component
/* Description..: MusicGallery component for !Joomla display and play your media files under Cat and Files Desc.
/* Author.......: Itamar Elharar
/* Version......: 1.0 (For Joomla! 1.0.12 Stable ONLY)
/* Created......: 20/02/2007
/* Contact......: itamar@elharar.biz
/* Copyright....: (C) 2007 Itamar Elharar, El-Tech Elharar Technology. All rights reserved.
/* License......: Released under GNU/GPL http://www.gnu.org/copyleft/gpl.html
/******************************************************************/
###################################################################
//Blog Display Module for Joomla CMS Websites.
//Copyright....: (C) 2007 Itamar Elharar, El-Tech Elharar Technology. All rights reserved.
//
//This program is free software; you can redistribute it and/or
//modify it under the terms of the GNU General Public License
//as published by the Free Software Foundation; either version 2
//of the License, or (at your option) any later version.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//GNU General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with this program; if not, write to the Free Software
//Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// Based on:
/**
* @version $Id: mod_latestnews.php 4500 2006-08-13 22:45:33Z eddiea $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
global $mosConfig_offset, $mosConfig_live_site, $mainframe;
require_once( $mainframe->getPath( 'front_html', 'com_content') );
$type = intval( $params->get( 'type', 1 ) );
$count = intval( $params->get( 'count', 5 ) );
$catid = trim( $params->get( 'catid' ) );
$secid = trim( $params->get( 'secid' ) );
$show_front = $params->get( 'show_front', 1 );
$now = _CURRENT_SERVER_TIME;
$access = !$mainframe->getCfg( 'shownoauth' );
$nullDate = $database->getNullDate();
//setup the section and category lists.
if($secid){
$query = "SELECT *"
. "n FROM #__content"
. "n WHERE catid IN ($secid) ";
$database->setQuery( $query );
$category = $database->loadObjectList();
//echo 'section :'.count($section);
}else{
$query = "SELECT *"
. "n FROM #__content"
. "n GROUP BY sectionid";
$database->setQuery( $query );
$section = $database->loadObjectList();
//echo 'section :'.count($section);
}
if($catid){
$query = "SELECT *"
. "n FROM #__content"
. "n WHERE catid IN ($catid) ";
$database->setQuery( $query );
$category = $database->loadObjectList();
//echo 'category :'.count($category);
}else{
$query = "SELECT *"
. "n FROM #__content"
. "n GROUP BY catid";
$database->setQuery( $query );
$category = $database->loadObjectList();
//echo 'category :'.count($category);
}
//foreach($section as $sec){
foreach($category as $cat){
$i=0;
//echo '<br/>';
$query = "SELECT *"
. "n FROM #__categories"
. "n WHERE id<>6 and id=".$cat->catid;
$database->setQuery( $query );
$cat_row = $database->loadObjectList();
// select between Content Items, Static Content or both
switch ( $type ) {
case 2:
//Static Content only
$query = "SELECT a.id, a.title"
. "n FROM #__content AS a"
. "n WHERE ( a.state = 1 AND a.sectionid = 0 )"
. "n AND ( a.publish_up = '$nullDate' OR a.publish_up <= '$now' )"
. "n AND ( a.publish_down = '$nullDate' OR a.publish_down >= '$now' )"
. ( $access ? "n AND a.access <= $my->gid" : '' )
. "n ORDER BY a.created DESC"
;
$database->setQuery( $query, 0, $count );
$rows = $database->loadObjectList();
break;
case 3:
//Both
$query = "SELECT a.id, a.title, a.sectionid, a.catid, a.introtext, cc.access AS cat_access, s.access AS sec_access, cc.published AS cat_state, s.published AS sec_state"
. "n FROM #__content AS a"
. "n LEFT JOIN #__content_frontpage AS f ON f.content_id = a.id"
. "n LEFT JOIN #__categories AS cc ON cc.id = a.catid"
. "n LEFT JOIN #__sections AS s ON s.id = a.sectionid"
. "n WHERE a.state = 1"
. "n AND ( a.publish_up = '$nullDate' OR a.publish_up <= '$now' )"
. "n AND ( a.publish_down = '$nullDate' OR a.publish_down >= '$now' )"
. ( $access ? "n AND a.access <= $my->gid" : '' )
//. ( $catid ? "n AND ( a.catid IN ( $catid ) )" : '' )
."n AND a.sectionid =".$cat->sectionid
."n AND a.catid =".$cat->catid
. "n ORDER BY a.created DESC"
//. "n LIMIT ".$count
;
$database->setQuery( $query, 0 ,$count);
$temp = $database->loadObjectList();
//echo 'count temp: '.count($temp);
$rows = array();
if (count($temp)) {
foreach ($temp as $row ) {
if (($row->cat_state == 1 || $row->cat_state == '') && ($row->sec_state == 1 || $row->sec_state == '') && ($row->cat_access <= $my->gid || $row->cat_access == '' || !$access) && ($row->sec_access <= $my->gid || $row->sec_access == '' || !$access)) {
$rows[] = $row;
}
}
}
unset($temp);
break;
case 1:
default:
//Content Items only
// $query = "SELECT a.id, a.title, a.sectionid, a.catid"
$query = "SELECT a.id, a.title, a.sectionid, a.catid, a.introtext, cc.access AS cat_access, s.access AS sec_access, cc.published AS cat_state, s.published AS sec_state"
. "n FROM #__content AS a"
. "n LEFT JOIN #__content_frontpage AS f ON f.content_id = a.id"
. "n INNER JOIN #__categories AS cc ON cc.id = a.catid"
. "n INNER JOIN #__sections AS s ON s.id = a.sectionid"
. "n WHERE ( a.state = 1 AND a.sectionid > 0 )"
. "n AND ( a.publish_up = '$nullDate' OR a.publish_up <= '$now' )"
. "n AND ( a.publish_down = '$nullDate' OR a.publish_down >= '$now' )"
. ( $access ? "n AND a.access <= $my->gid AND cc.access <= $my->gid AND s.access <= $my->gid" : '' )
. ( $catid ? "n AND ( a.catid IN ( $catid ) )" : '' )
. ( $secid ? "n AND ( a.sectionid IN ( $secid ) )" : '' )
."n AND a.sectionid =".$cat->sectionid
."n AND a.catid =".$cat->catid
. ( $show_front == '0' ? "n AND f.content_id IS NULL" : '' )
. "n AND s.published = 1"
. "n AND cc.published = 1"
. "n ORDER BY a.created DESC"
;
$database->setQuery( $query, 0, $count );
$rows = $database->loadObjectList();
break;
}
// needed to reduce queries used by getItemid for Content Items
if ( ( $type == 1 ) || ( $type == 3 ) ) {
$bs = $mainframe->getBlogSectionCount();
$bc = $mainframe->getBlogCategoryCount();
$gbs = $mainframe->getGlobalBlogSectionCount();
}
// Output
?>
<!--ul class="latestnews<?php echo $moduleclass_sfx; ?>"
<table class="blogview<?php echo $moduleclass_sfx; ?>" cellpadding="0" cellspacing="2" width="99%">
<?php
if($cat_row[0]->title!=''){
//echo ' <tr><th><h3 class="blogview'.$moduleclass_sfx.'">'.$cat_row[0]->title.'</h3></th></tr>';
//$link = sefRelToAbs( 'index.php?option=com_content&task=category§ionid='.$cat->sectionid.'&id='.$cat->catid.'&Itemid='. $row->id . $Itemid );
$query = "SELECT id"
. "n FROM #__menu"
. "n WHERE type = 'content_typed'"
. "n AND componentid = ".$cat->sectionid
;
$database->setQuery( $query );
$Itemid = $database->loadResult();
$link = sefRelToAbs( 'index.php?option=com_content&task=blogcategory&id='.$cat->catid.$Itemid );
echo ' <tr><th>--ALTER LINK WURDE ENTFERNT--</th></tr>';
}
foreach ( $rows as $row ) {
// get Itemid
switch ( $type ) {
case 2:
$query = "SELECT id"
. "n FROM #__menu"
. "n WHERE type = 'content_typed'"
. "n AND componentid = $row->id"
;
$database->setQuery( $query );
$Itemid = $database->loadResult();
break;
case 3:
if ( $row->sectionid ) {
$Itemid = $mainframe->getItemid( $row->id, 0, 0, $bs, $bc, $gbs );
//$Itemid = $mainframe->getItemid( $row->id, 0, 0, 4, 1, 1 );
} else {
$query = "SELECT id"
. "n FROM #__menu"
. "n WHERE type = 'content_typed'"
. "n AND componentid = $row->id"
;
$database->setQuery( $query );
$Itemid = $database->loadResult();
}
break;
case 1:
default:
$Itemid = $mainframe->getItemid( $row->id, 0, 0, $bs, $bc, $gbs );
break;
}
// Blank itemid checker for SEF
if ($Itemid == NULL) {
$Itemid = '';
} else {
$Itemid = '&Itemid='. $Itemid;
}
$params->set( 'intro_only', 1 );
$params->set( 'hide_author', 0 );
$params->set( 'hide_createdate', 0 );
$params->set( 'hide_modifydate', 1 );
$params->set( 'link_titles', 1 );
$row->text = $row->introtext;
$row->groups = '';
$row->readmore = (trim( $row->fulltext ) != '');
$row->metadesc = '';
$row->metakey = '';
$row->access = '';
$row->created = $now;
$row->modified = '';
$link = sefRelToAbs( 'index.php?option=com_content&task=view&id='. $row->id . $Itemid );
?>
<tr>
<td class="blogview<?php echo $moduleclass_sfx; ?>">
<div class="blogview<?php echo $moduleclass_sfx; ?>"><a href="<?php echo $link; ?>" class="latestnews<?php echo $moduleclass_sfx; ?>">
<h2 class="blogview<?php echo $moduleclass_sfx; ?>"><?php echo $row->title; ?></h2>
<?php HTML_content::show( $row, $params, $access, 0 ); ?>
</div>
<? if ($i<count($rows)-1) echo '<hr>'; ?>
</td>
</tr>
<?
$i++;
}
?>
</table>
<?php
}
?>
Edit:
Von diesem Modul ist die rede: --ALTER LINK WURDE ENTFERNT--