Member
Member
sketchy   2010-03-11, 23:03
#1
Hi, i had a mod that i did in the old zenphoto that allowed me to disable the editability of an Album Title if it was a Root album and was NOT a sub-album.

IN: admin-functions.php

this is the OLD:
`
$disableEdit = $album->getParent() == null ? 'onFocus="this.blur();"' : '';
echo "Album Title: <input type=\"text\" name=\"".$prefix."albumtitle\" value=\"" .
$album->getTitle() .'" '.$disableEdit.';
`
this is the NEW:
`
print_language_string_list($album->get('title'), $prefix."albumtitle", false) ?>
`
how do i make this fit the new coding?
thanx!
Member
Member
sketchy   2010-03-11, 23:23
#2
got it:
`
<?php
if ($album->getParent() == null){
echo gettext($album->get('title'));
} else {
print_language_string_list($album->get('title'), $prefix."albumtitle", false); }
?>
`
Administrator
Administrator
acrylian   2010-03-12, 10:43
#3
`print_language_string_list` is not that new actually. If you don't use that you disable possible multilingual use of titles for those albums
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.