%name:Callname Mod% %version:V0.9% %description:This mod adds support for call names. Any uppercase word in the first names list will be underlined (for display only, no data is changed). Underlining is the official method to mark call names in germany. Example: Wagner, Michael JAMES William will be converted to Wagner, Michael James William.
For a full description see TNG Wiki link will follow article. %target:genlib.php% %location:% echo "$title$siteprefix\n"; %end:% %replace:% // begin change: replaced code by callname mod echo "".strip_tags($title)."$siteprefix\n"; // end change: callname mod %end:% %location:% if( $row['allow_living'] || !$nonames ) { $firstname = trim( $title." ".$row['firstname'] ); %end:% %insert:after% // begin change: added code by callname mod $firstnameparts = explode (" ", $firstname); $firstname = ""; foreach ($firstnameparts as $part) { if ($part == strtoupper($part)) { $part = "".ucfirst(strtolower($part)).""; } $firstname = $firstname.trim($part)." "; } $firstname = trim($firstname); // end change: callname mod %end:% %location:% if( $row[allow_living] || !$nonames ) { $firstname = trim( $title . " " .$row['firstname'] ); %end:% %insert:after% // begin change: added code by callname mod $firstnameparts = explode (" ", $firstname); $firstname = ""; foreach ($firstnameparts as $part) { if ($part == strtoupper($part)) { $part = "".ucfirst(strtolower($part)).""; } $firstname = $firstname.trim($part)." "; } $firstname = trim($firstname); // end change: callname mod %end:% %target:pedjson.php% %location:% $nameinfo = xmlcharacters( getName( $row ) ); %end:% %insert:after% // begin change: added code by callname mod $nameinfo = str_replace("<u>", "", $nameinfo); $nameinfo = str_replace("</u>", "", $nameinfo); // end change: callname mod %end:% %location:% $sp .= "\"spname\":\"" . xmlcharacters( getName( $spouseIDrow ) ) . "\","; %end:% %replace:% // begin change: added code by callname mod $sp .= "\"spname\":\"" . str_replace("</u>", "", str_replace("<u>", "", xmlcharacters( getName( $spouseIDrow ) ))) . "\","; // end change: callname mod %end:% %location:% $children .= "{\"childID\":\"" . $child['pID'] . "\",\"name\":\"" . xmlcharacters( getName( $child ) ) . "\"}"; %end:% %replace:% // begin change: added code by callname mod $children .= "{\"childID\":\"" . $child['pID'] . "\",\"name\":\"" . str_replace("</u>", "", str_replace("<u>", "", xmlcharacters( getName( $child ) ))) . "\"}"; // end change: callname mod %end:% %target:browsetrees.php% %location:% $firstname = $line['firstname']; %end:% %insert:after% // begin change: added code by callname mod $firstnameparts = explode (" ", $firstname); $firstname = ""; foreach ($firstnameparts as $part) { if ($part == strtoupper($part)) { $part = "".ucfirst(strtolower($part)).""; } $firstname = $firstname.trim($part)." "; } $firstname = trim($firstname); // end change: callname mod %end:% . : downloads.ormus.info : .