|
|

29.03.2010, 15:23
|
Neuer Benutzer
|
|
Join Date: 09.2007
Posts: 10
Rep Power: 5
|
|
fehler bei 2 gleichen modulen
hallo zusammen,
ich wollte einem schon bestehenden rss-modul (newsticker), weitere hinzufügen. also habe ich das modul kopiert und ihm einen neuen newsfeed gegeben. leider erscheint nur eine leere seite im system, sobald ich beide module einer seite zuweise. einzeln angewählt, funktioniert jedes modul wunderbar. doch zusammen erhalte ich nur eine leere weisse seiten.
 was habe ich falsch gemacht?
|

30.03.2010, 08:26
|
vbdesigns Guru
|
|
Join Date: 03.2006
Posts: 528
Rep Power: 8
|
|
|
Poste doch mal bitte den Inhalt deines zweiten Moduls.
|

30.03.2010, 10:43
|
Neuer Benutzer
|
|
Join Date: 09.2007
Posts: 10
Rep Power: 5
|
|
der inhalt der modul-kopie sieht so aus:
Code:
<?php
function marquee_direction($column)
{
global $vbulletin, $show;
$show['middlecolumn'] = iif($column == 0, true, false);
if($show['middlecolumn'])
{
if($vbulletin->vbcmsoptions['rssnt_direction1'] == 1)
{
return 'left';
}
elseif($vbulletin->vbcmsoptions['rssnt_direction1'] == 2)
{
return 'right';
}
}
else
{
if($vbulletin->vbcmsoptions['rssnt_direction1'] == 2)
{
return 'down';
}
elseif($vbulletin->vbcmsoptions['rssnt_direction1'] == 1)
{
return 'up';
}
}
}
function fetch_item_count($items)
{
global $vbulletin;
if(!$vbulletin->vbcmsoptions['rssnt_number1'])
{
return count($items);
}
elseif($vbulletin->vbcmsoptions['rssnt_number1'] < count($items))
{
return $vbulletin->vbcmsoptions['rssnt_number1'];
}
elseif($vbulletin->vbcmsoptions['rssnt_number1'] >= count($items))
{
return count($items);
}
}
//Get Class
require_once('./includes/class_rss_poster.php');
//Change the Function
$addtemplatename = $vbulletin->options['addtemplatename'];
$vbulletin->options['addtemplatename'] = false;
if($vbulletin->vbcmsoptions['rssnt_use_cache1'])
{
if($vbulletin->rssntcache['nextupdate'] <= TIMENOW OR !is_array($vbulletin->rssntcache))
{
//Actaize datastore - Cahe :)
$feed =& new vB_RSS_Poster($vbulletin);
$feed->fetch_xml($vbulletin->vbcmsoptions['rssnt_url1']);
if (!empty($feed->xml_string) AND !$feed->parse_xml() === false)
{
foreach($feed->fetch_items() as $item)
{
$dsitems[] = $item;
}
$dsinsert['nextupdate'] = TIMENOW + 1762;
$dsinsert['lastupdate'] = TIMENOW;
$dsinsert['items'] = $dsitems;
build_datastore('rssntcache', serialize($dsinsert), is_array($dsinsert));
devdebug("RSS Cache aktuslisiert ...");
}
}
if(empty($vbulletin->rssntcache) OR !is_array($vbulletin->rssntcache))
{
//We n entries
$show['rssnt_module'] = false;
}
else
{
$show['rssnt_module'] = true;
$items = $vbulletin->rssntcache['items'];
}
}
else
{
//Read Feed
$feed =& new vB_RSS_Poster($vbulletin);
$feed->fetch_xml($vbulletin->vbcmsoptions['rssnt_url1']);
if (empty($feed->xml_string))
{
//Feed empty
$show['rssnt_module'] = false;
}
else if ($feed->parse_xml() === false)
{
//Feed empty
$show['rssnt_module'] = false;
}
else
{
$show['rssnt_module'] = true;
$items = $feed->fetch_items();
}
}
if($show['rssnt_module'])
{
$show['rsnt_item_new_window'] = iif($vbulletin->vbcmsoptions['rssnt_new_item_window1'], true, false);
$ntdirection = marquee_direction($module_row['colum']);
$itemcount = fetch_item_count($items);
if($vbulletin->vbcmsoptions['rssnt_use_cache1'])
{
$lastupdate['time'] = vbdate($vbulletin->options['timeformat'], $vbulletin->rssntcache['lastupdate']);
$lastupdate['date'] = vbdate($vbulletin->options['dateformat'], $vbulletin->rssntcache['lastupdate'], true);
$lastupdate = $lastupdate['date'].', '.$lastupdate['time'];
$show['lastupdate'] = true;
}
//PROCESS ITEMS START
foreach ($items AS $item)
{
$i++;
if($i > $vbulletin->vbcmsoptions['rssnt_number1'] AND $vbulletin->vbcmsoptions['rssnt_number1'])
{
break;
}
// attach the rssfeedid to each item
$item['title'] = htmlspecialchars_uni($item['title']);
$item['link'] = htmlspecialchars_uni($item['link']);
$show['spacer'] = iif($i == $itemcount, false, true);
eval('$rssntbits .= "' . fetch_template('Portal_rssnt_bit1') . '";');
}
//PROCESS ITEMS END
//PRINT OUTPUT
if($vbulletin->vbcmsoptions['rssnt_colapsable1'])
{
eval('$this->portal_array["$module_row[id]"]["$module_row[colum]"] = "' . fetch_template('Portal_rssnt_collapsable1') . '";');
}
else
{
eval('$this->portal_array["$module_row[id]"]["$module_row[colum]"] = "' . fetch_template('Portal_rssnt1') . '";');
}
}
$vbulletin->options['addtemplatename'] = $addtemplatename;
?>
|

30.03.2010, 10:52
 |
Web Design
|
|
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
Rep Power: 10
|
|
|
Ist dass das RSS Modul von Surviver?
Last edited by Christian : 30.03.2010 at 11:28.
|

30.03.2010, 12:48
|
Neuer Benutzer
|
|
Join Date: 09.2007
Posts: 10
Rep Power: 5
|
|
 öh..., keine ahnung. ich hab das schon seit 2-3 jahren in benutzung.
kann es daran liegen, dass ich zwar vb auf 3.85 geupt habe, aber bei vbcms noch auf 2.3.3 stehen geblieben bin? 
|

30.03.2010, 13:14
 |
Web Design
|
|
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
Rep Power: 10
|
|
|
Keine Ahnung, da es aber einen Datastorcache nutzt der nur einmalig vergeben werden kann, würde ein kopiertes Modul immer das selbe ausgeben wie das Original, wende dich am besten an den Modulersteller.
Last edited by Christian : 30.03.2010 at 13:29.
|

30.03.2010, 14:45
|
Neuer Benutzer
|
|
Join Date: 09.2007
Posts: 10
Rep Power: 5
|
|
es ist das modul von surviver. wollte ihm grad ne pm schicken, doch sein postfach ist voll und nimmt nix mehr an. 
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
HTML code is Off
|
|
|
|