Page 1 of 1

External link bug in Phoca Gallery 3.0.0 RC4

Posted: 24 Mar 2011, 16:09
by kvasir
Hi,

I was trying to add second external link when editing picture added from Picasa. First external worked good, but when i entered second and clicked Approve, or Save the link disapeared... Strange i think... But long story short, in file:

Code: Select all

administrator/components/com_phocagallery/views/phocagalleryimg/tmpl/edit.php
There is at line 191 only this:

Code: Select all

if ($data['extlink1link'] != '') {
			$extlink1			= str_replace('http://','', $data['extlink1link']);
			$data['extlink1'] 	= $extlink1 . '|'.$data['extlink1title'].'|'.$data['extlink1target'].'|'.$data['extlink1icon'];
		}
No code for extlink2 , i've added after mentioned code:

Code: Select all

if ($data['extlink2link'] != '') {
			$extlink1			= str_replace('http://','', $data['extlink2link']);
			$data['extlink2'] 	= $extlink1 . '|'.$data['extlink2title'].'|'.$data['extlink2target'].'|'.$data['extlink2icon'];
		}
And everything is working like a charm :) :)

Re: External link bug in Phoca Gallery 3.0.0 RC4

Posted: 24 Mar 2011, 20:59
by Jan
Hi, thank you for this info, I will fix it in next version.

Jan