<?xml version="1.0" encoding="utf-8"?>
	
		<feed xmlns="http://www.w3.org/2005/Atom">
			<title type="text">MODX Deutschland - Forum - jquery fancybox und php 5.3.5</title>
			<updated>2013-05-22T17:00:15+02:00</updated>
			<id>http://www.modxcms.de/forum/</id>
			<link rel="alternate" type="text/html" hreflang="en"
				href="http://www.modxcms.de/forum/comments.php?DiscussionID=5539&amp;page=1"/>
			<link rel="self" type="application/atom+xml"
				href="http://www.modxcms.de/forum/comments.php?DiscussionID=5539&amp;Feed=ATOM&amp;page=1"/>
			<generator
				uri="http://getvanilla.com/"
				version="1.1.2">
				Lussumo Vanilla &amp; Feed Publisher
			</generator>
			<entry>
		<title>jquery fancybox und php 5.3.5</title>
		<link rel="alternate" href="http://www.modxcms.de/forum/comments.php?DiscussionID=5539&amp;Focus=31444#Comment_31444" type="application/xhtml+xml" hreflang="en"/>
		<id>http://www.modxcms.de/forum/comments.php?DiscussionID=5539&amp;Focus=31444#Comment_31444</id>
		<published>2012-01-03T14:35:05+01:00</published>
		<updated>2013-05-22T17:00:15+02:00</updated>
		<author>
			<name>Andy</name>
			<uri>http://www.modxcms.de/forum/account.php?u=94</uri>
		</author>
		<summary type="text" xml:lang="en">
			Hallo zusammen,

zuerst einmal wünsche ich euch allen ein frohes neues Jahr :smile:

So, nun zu meiner Frage. Ich habe bzw. hatte seit fast einem Jahr eine Seite mit fancybox (Version 1.3.4) mit ...
		</summary>
		<content type="html">
			<![CDATA[Hallo zusammen,<br /><br />zuerst einmal wünsche ich euch allen ein frohes neues Jahr <img src="http://www.modxcms.de/forum//extensions/Smile/tango/face-smile.png" class="smiley" alt=":smile:"/><br /><br />So, nun zu meiner Frage. Ich habe bzw. hatte seit fast einem Jahr eine Seite mit fancybox (Version 1.3.4) mit phpthumb am laufen. MODx: Evo 1.0.5<br />Nun hat mein Provider gegen Ende des Jahres ein Update von php 5.0.45 auf 5.3.5 eingespielt -&gt; fancybox läuft nicht mehr.<br /><br />Die Firefox Fehlerkonsole meldet einen Fehler in Zeile 4 des Scriptes<br /><br /><em>link is undefined<br />..../jquery.fancybox-script.js    Zeile 4</em><br /><br /><code>       jQuery(document).ready(function() { <br />			jQuery('img.fancybox').each(function(){<br />			var link = jQuery(this).attr("src").split("&")[0].split("=")[1];<br />			<strong>link = link.replace('[(site_url)]','');</strong><br />			link = link.replace('_thumb','');<br />			jQuery(this).wrap('&lt;a href="'+link+'" rel="gruppe" class="fancybox" title="'+this.title+'"&gt;&lt;/a&gt;');<br />			});<br /><br />			jQuery('a.fancybox').fancybox({ <br />							"padding": 1,<br />							"speedIn": 500,<br />							"speedOut": 500,<br />							"changeSpeed": 300,<br />							"transitionIn": "elastic",<br />							"transitionOut": "elastic",<br />							"titlePosition": "over",<br />							"titleShow": true,<br />							"easingIn": "swing",<br />							"easingOut": "swing",<br />							"showCloseButton": true,<br />							"showNavArrows": true,<br />							"enableEscapeButton": true,<br />							"overlayShow": true,<br />							"overlayOpacity": 0.7,<br />							"overlayColor": "#000",<br />							"centerOnScroll": false,<br />							"hideOnContentClick": true,<br />			});<br />        }); </code><br /><br />Dieser Fehler blockiert auch ein weiteres jquery Script, deaktiviere ich das jquery.fancybox-script.js läuft der Rest wie gewohnt.<br /><br />Könnt ihr mir mal kurz helfen wo ich da ansetzten muss.<br /><br />Danke vielmals<br /><br />Grüße Andy]]>
		</content>
	</entry>
	<entry>
		<title>jquery fancybox und php 5.3.5</title>
		<link rel="alternate" href="http://www.modxcms.de/forum/comments.php?DiscussionID=5539&amp;Focus=31445#Comment_31445" type="application/xhtml+xml" hreflang="en"/>
		<id>http://www.modxcms.de/forum/comments.php?DiscussionID=5539&amp;Focus=31445#Comment_31445</id>
		<published>2012-01-03T14:53:53+01:00</published>
		<updated>2013-05-22T17:00:15+02:00</updated>
		<author>
			<name>ganeshXL</name>
			<uri>http://www.modxcms.de/forum/account.php?u=478</uri>
		</author>
		<summary type="text" xml:lang="en">
			Zeile 4 wäre
[code]link = link.replace('[(site_url)]',''); [/code]

Wenn du das genau so siehst mit Firebug / Firefox, heisst das soviel wie &quot;die MODX Tags werden nicht verarbeitet&quot;, ...
		</summary>
		<content type="html">
			<![CDATA[Zeile 4 wäre<br /><code>link = link.replace('[(site_url)]',''); </code><br /><br />Wenn du das genau so siehst mit Firebug / Firefox, heisst das soviel wie "die MODX Tags werden nicht verarbeitet", d.h. [(site_url)] bleibt so stehen, statt dass aus diesem Tag irgendwas wie <a href='http://www.deinedomain.de/'>http://www.deinedomain.de/</a> wird. Versuch mal, den Browser- und MODX Cache zu leeren.]]>
		</content>
	</entry>
	<entry>
		<title>jquery fancybox und php 5.3.5</title>
		<link rel="alternate" href="http://www.modxcms.de/forum/comments.php?DiscussionID=5539&amp;Focus=31446#Comment_31446" type="application/xhtml+xml" hreflang="en"/>
		<id>http://www.modxcms.de/forum/comments.php?DiscussionID=5539&amp;Focus=31446#Comment_31446</id>
		<published>2012-01-03T15:00:25+01:00</published>
		<updated>2013-05-22T17:00:15+02:00</updated>
		<author>
			<name>ganeshXL</name>
			<uri>http://www.modxcms.de/forum/account.php?u=478</uri>
		</author>
		<summary type="text" xml:lang="en">
			Nachdem ich das nochmals gelesen habe, fand ich es erstaunlich, dass es bis anhin funktioniert hat. Werden externe .js Dateien denn auch von MODX geparst, d.h. wurde vorher jedes externe .js auf ...
		</summary>
		<content type="html">
			<![CDATA[Nachdem ich das nochmals gelesen habe, fand ich es erstaunlich, dass es bis anhin funktioniert hat. Werden externe .js Dateien denn auch von MODX geparst, d.h. wurde vorher jedes externe .js auf MODX-Tags überprüft? Oder lag dieses JS in einem Chunk?]]>
		</content>
	</entry>
	<entry>
		<title>jquery fancybox und php 5.3.5</title>
		<link rel="alternate" href="http://www.modxcms.de/forum/comments.php?DiscussionID=5539&amp;Focus=31447#Comment_31447" type="application/xhtml+xml" hreflang="en"/>
		<id>http://www.modxcms.de/forum/comments.php?DiscussionID=5539&amp;Focus=31447#Comment_31447</id>
		<published>2012-01-03T15:44:39+01:00</published>
		<updated>2013-05-22T17:00:15+02:00</updated>
		<author>
			<name>Andy</name>
			<uri>http://www.modxcms.de/forum/account.php?u=94</uri>
		</author>
		<summary type="text" xml:lang="en">
			Das jScript liegt in einer externen Datei, diese wird über ein Chunk in das Template geladen...

Im Template:
[code]{{js-maintemplate}}[/code]

Chunk js-maintemplate
[code][/code]

Grüße ...
		</summary>
		<content type="html">
			<![CDATA[Das jScript liegt in einer externen Datei, diese wird über ein Chunk in das Template geladen...<br /><br />Im Template:<br /><code>{{js-maintemplate}}</code><br /><br />Chunk js-maintemplate<br /><code>&lt;script type="text/javascript" src="[(base_url)]assets/templates/baf-site/js/fancybox-134/jquery.fancybox-script.js"&gt;&lt;/script&gt;</code><br /><br />Grüße Andy]]>
		</content>
	</entry>
	<entry>
		<title>jquery fancybox und php 5.3.5</title>
		<link rel="alternate" href="http://www.modxcms.de/forum/comments.php?DiscussionID=5539&amp;Focus=31448#Comment_31448" type="application/xhtml+xml" hreflang="en"/>
		<id>http://www.modxcms.de/forum/comments.php?DiscussionID=5539&amp;Focus=31448#Comment_31448</id>
		<published>2012-01-03T17:45:36+01:00</published>
		<updated>2012-01-03T17:47:50+01:00</updated>
		<author>
			<name>sam</name>
			<uri>http://www.modxcms.de/forum/account.php?u=1689</uri>
		</author>
		<summary type="text" xml:lang="en">
			Die Fehlermeldung würde ich so erklären:
Mit der Zeile [code]link = link.replace('[(site_url)]','');[/code]wird versucht &quot;[(site_url)]&quot; aus der Zeichenketten-Variablen namens ...
		</summary>
		<content type="html">
			<![CDATA[Die Fehlermeldung würde ich so erklären:<br />Mit der Zeile <code>link = link.replace('[(site_url)]','');</code>wird versucht "[(site_url)]" aus der Zeichenketten-Variablen namens "link" zu entfernen, und schlägt fehl, weil "link" nicht definiert ist. (Mit <code>alert(link);</code> in Zeile 4 dürfte dann auch "undefined" erscheinen.)<br /><br />Die Frage ist also: Warum ist die Variable "link" nicht definiert? Sollte doch in Zeile 3 geschehen sein.<br />Befindet sich auf der Seite mit dem Script vielleicht kein &lt;img class="fancybox" src="...&gt;?]]>
		</content>
	</entry>
	<entry>
		<title>jquery fancybox und php 5.3.5</title>
		<link rel="alternate" href="http://www.modxcms.de/forum/comments.php?DiscussionID=5539&amp;Focus=31453#Comment_31453" type="application/xhtml+xml" hreflang="en"/>
		<id>http://www.modxcms.de/forum/comments.php?DiscussionID=5539&amp;Focus=31453#Comment_31453</id>
		<published>2012-01-04T10:58:00+01:00</published>
		<updated>2013-05-22T17:00:15+02:00</updated>
		<author>
			<name>Andy</name>
			<uri>http://www.modxcms.de/forum/account.php?u=94</uri>
		</author>
		<summary type="text" xml:lang="en">
			Hallo Sam, verstehe ich auch nicht. Im Quelltext sieht´s gut aus

[code][/code]

Grüße Andy
		</summary>
		<content type="html">
			<![CDATA[Hallo Sam, verstehe ich auch nicht. Im Quelltext sieht´s gut aus<br /><br /><code>&lt;img class="fancybox" style="float: right;" title="" src="assets/images/2010-baf-aussen.jpg" alt="" width="150" height="100" /&gt;</code><br /><br />Grüße Andy]]>
		</content>
	</entry>
	
		</feed>