Einzelnen Beitrag anzeigen
  #1  
Alt 08.08.07, 18:21
Benutzerbild von robelix
robelix robelix ist offline
Forum Stammgast
 
Registriert seit: 03.12.06
Beiträge: 178

[CODE] Tag macht wilde Sachen


Der CODE-Tag hier kann wilde Sachen machen - wollte einen patch posten, und weil er so schön klein ist wollt ich mir das hochladen sparen - und heraus kam das hier:

im Origina sieht er so aus: http://www.robelix.com/files/class.t...ngleView.patch

Code:
208a209,212
> 			# t3lib_div::debug($this->data);
> 
> 
> 
210,212c214,234
< 				$going = str_replace('<', '&lt;', $this->data['ITEM'][$i]['TITLE']);
< 				$go_the_head = str_replace('>', '&gt;', $going);
< 				$content .= '<DIV class=twrss_bodytext><A href="'.$this->data['ITEM'][$i]['LINK'].'" target="'.$get_theLinkTarget.'" >'.$go_the_head.'</A></DIV>';
---
> 				if ($this->piVars['showUid']) {
> 					if ($this->piVars['showUid'] == md5($this->data['ITEM'][$i]['GUID']) ) {
> 						$content .= '<div class="twrss_bodytext">';
> 						$content .= '<strong>'.$this->data['ITEM'][$i]['TITLE'].'</strong>';
> 						$text = $this->data['ITEM'][$i]['CONTENT:ENCODED'];
> 						$text = preg_replace('/<\/?font.*?>/', '', $text);
> 						$content .= $text;
> 						$content .= '</div>';
> 						return $content;
> 					}
> 
> 				} else {
> 					#$going = str_replace('<', '&lt;', $this->data['ITEM'][$i]['TITLE']);
> 					#$go_the_head = str_replace('>', '&gt;', $going);
> 					$go_the_head = $this->data['ITEM'][$i]['TITLE'];
> 					$content .= '<DIV class=twrss_bodytext>';
> 					$IdHash = md5($this->data['ITEM'][$i]['GUID']);
> 					$link = $this->pi_list_linkSingle($this->data['ITEM'][$i]['TITLE'], $IdHash, 1 );
> 					#t3lib_div::debug($link);
> 					# $content .= '<A href="'.$this->data['ITEM'][$i]['LINK'].'" target="'.$get_theLinkTarget.'" >'.$go_the_head.'</A></DIV>';
> 					$content .= $link;
226a249
> 			}
386c409
< 			$this->parser = xml_parser_create();
---
> 			$this->parser = xml_parser_create('UTF-8');
__________________
mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec)
Mit Zitat antworten