#1 (permalink)  
Old 29.03.2010, 15:23
Neuer Benutzer
 
Join Date: 09.2007
Posts: 10
Rep Power: 5
Ballernase is on a distinguished road
Frage 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?
Reply With Quote
  #2 (permalink)  
Old 30.03.2010, 08:26
vbdesigns Guru
 
Join Date: 03.2006
Posts: 528
Rep Power: 8
WeserInfo has a spectacular aura aboutWeserInfo has a spectacular aura about
Poste doch mal bitte den Inhalt deines zweiten Moduls.
Reply With Quote
  #3 (permalink)  
Old 30.03.2010, 10:43
Neuer Benutzer
 
Join Date: 09.2007
Posts: 10
Rep Power: 5
Ballernase is on a distinguished road
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;

?>
Reply With Quote
  #4 (permalink)  
Old 30.03.2010, 10:52
Christian's Avatar
Web Design
 
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
Rep Power: 10
Christian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond repute
Ist dass das RSS Modul von Surviver?
__________________
Meine kleinen Engel ... Die Rabauken ...

Last edited by Christian : 30.03.2010 at 11:28.
Reply With Quote
  #5 (permalink)  
Old 30.03.2010, 12:48
Neuer Benutzer
 
Join Date: 09.2007
Posts: 10
Rep Power: 5
Ballernase is on a distinguished road
ö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?
Reply With Quote
  #6 (permalink)  
Old 30.03.2010, 13:14
Christian's Avatar
Web Design
 
Join Date: 12.2003
Location: In Spocks Quartier
Age: 34
Posts: 16,869
Rep Power: 10
Christian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond reputeChristian has a reputation beyond repute
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.
__________________
Meine kleinen Engel ... Die Rabauken ...

Last edited by Christian : 30.03.2010 at 13:29.
Reply With Quote
  #7 (permalink)  
Old 30.03.2010, 14:45
Neuer Benutzer
 
Join Date: 09.2007
Posts: 10
Rep Power: 5
Ballernase is on a distinguished road
es ist das modul von surviver. wollte ihm grad ne pm schicken, doch sein postfach ist voll und nimmt nix mehr an.
Reply With Quote
Reply

Lesezeichen

Stichworte
rss modul

Thread Tools
Display Modes

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.

BB-Code ist On.
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lin per VB Code im gleichen fenster claudimedia vBCMS® Fragen 5 24.11.2007 07:07
Ein/Ausklappen von Modulen Eisu vBCMS® Fragen 4 03.05.2007 18:46
Kopieren von Modulen SpiderFive vBCMS® Bugs(alt) 2 10.04.2007 20:48
Titelanzeige bei Modulen Stefan11 vBCMS® Fragen 0 12.02.2007 11:46
Duplizieren von Modulen.. Wildthinks vBCMS® Fragen 1 11.02.2007 11:31


Copyright © 2006, Reuter & Bloeß GbR.
| Datenschutz | Sitemap | Unsere Partner | Top |
Home Products Forum Über uns Support & FAQs
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Tipp: Fussball | Heilerde
Shopsystem, Shop System, CMS, Webkatalog mit vBCMS CMS