Foren / Cotonti / Extensions / X-Tra pics

DemptD
#1 16. Februar 2010, 03:59
http://neocrome.net/page.php?id=2340

Is not working anymore...

Deprecated: Function eregi() is deprecated in /httpd.www/plugins/extrapics/extrapics.php on line 122

$dir = opendir($folder);
while(false !== ($file = readdir($dir))){
	for ($i = 0; $i < count($xt); $i++){
Line 122------>		if (eregi("\.". $xt[$i] ."$", $file)){
			$files[] = $file;
			}
	}
}
Trustmaster
#2 16. Februar 2010, 05:11
It is deprecated since PHP 5.3.0. A fix:
$dir = opendir($folder);
while(false !== ($file = readdir($dir))){
	for ($i = 0; $i < count($xt); $i++){
Line 122------>		if (preg_match('#\.'. $xt[$i] .'$#', $file)){
			$files[] = $file;
			}
	}
}
May the Source be with you!
DemptD
#3 16. Februar 2010, 05:30
thank you, worked great!
foxhound
#4 14. März 2010, 19:26
This plugin does not work for me, or at least not without errors. Its included prototype.js conflicts with jQuery.
I tried the to add this:
<script type="text/javascript">jQuery.noConflict();</script>
in my header as suggested here:
http://www.cotonti.com/forums.php?m=posts&p=10312&highlight=PROTOTYPE.JS#10312

But to no avail. Not sure if you found a way around it or wether you just disabled Jquery on your website.
<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />