jayat1familytree Posted October 13, 2017 Report Share Posted October 13, 2017 I would like to change or add to the text listed on the descendant text+ page but cannot find where the text variable is coming from or stored at? Specifically the phrase " Descendancy chart to this point," Thanks in advance for any help. Jay Quote Link to comment Share on other sites More sharing options...
bhemph Posted October 14, 2017 Report Share Posted October 14, 2017 $text['graphdesc'] is the variable and it is a core TNG variable name, not one added by a mod. Quote Link to comment Share on other sites More sharing options...
tngrlkrz Posted October 14, 2017 Report Share Posted October 14, 2017 Jay, The easiest is to just override the variable $text['graphdesc'] with your own in cust_text.php. Then you need not change anything else. It is also used in descendtext, descendtables and register.php. However, if you offer languages, you would have to input your translations to the appropriate cust_text.php. Otherwise, if you just want your example tab of 'text+' changed, It could be swapped out with your own new variable put into cust_text.php and descendtextplus.php at these lines (in version Textplus_charts_v10.1.0.12) I am using version ~.14 beta . ~line 257 echo "<p><img src=\"{$cms['tngpath']}img/dchart.gif\" width='10' height='9' alt='' border='0'/> = {$text['graphdesc']}, <img src=\"{$cms['tngpath']}img/tng_plus.gif\" width='9' height='9' alt='' border='0'/> = {$text['expand']}, <img src=\"{$cms['tngpath']}img/tng_minus.gif\" width='9' height='9' alt='' border='0'/> = {$text['collapse']}</p>\n"; ~line 549 $rval .= " <a href=\"$desctracker_url" . "trail=$newtrail&tree=$tree\" title=\"{$text['graphdesc']}\"><img src=\"{$cms['tngpath']}img/dchart.gif\" width='10' height='9' alt=\"{$text['graphdesc']}\" border='0'/></a> "; Ron Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.