External link bug in Phoca Gallery 3.0.0 RC4

kvasir
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 24 Mar 2011, 15:48

External link bug in Phoca Gallery 3.0.0 RC4

Post 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 :) :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49134
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: External link bug in Phoca Gallery 3.0.0 RC4

Post by Jan »

Hi, thank you for this info, I will fix it in next version.

Jan
If you find Phoca extensions useful, please support the project
Post Reply