External link bug in Phoca Gallery 3.0.0 RC4
Posted: 24 Mar 2011, 16:09
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:
There is at line 191 only this:
No code for extlink2 , i've added after mentioned code:
And everything is working like a charm

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.phpCode: Select all
if ($data['extlink1link'] != '') {
$extlink1 = str_replace('http://','', $data['extlink1link']);
$data['extlink1'] = $extlink1 . '|'.$data['extlink1title'].'|'.$data['extlink1target'].'|'.$data['extlink1icon'];
}Code: Select all
if ($data['extlink2link'] != '') {
$extlink1 = str_replace('http://','', $data['extlink2link']);
$data['extlink2'] = $extlink1 . '|'.$data['extlink2title'].'|'.$data['extlink2target'].'|'.$data['extlink2icon'];
}